Support Board
Date/Time: Mon, 27 Oct 2025 23:30:03 +0000
Post From: Can a custom function return a color?
| [2017-02-03 23:04:32] |
| reticent67 - Posts: 4 |
|
I'm coding a trading strategy based on several custom studies. I want to evaluate the studies and based on certain conditions, plot a subgraph for my strategy. It would be easier to make a helper function return a color that can directly be assigned to the subgraph rather than have my helper function return an integer and use a switch to color the subgraph. Is this possible in SC? Example: subgraph[1].DataColor[sc.Index] = calcCustomStudy(params)
|
