I am creating an indicator which has an auto position sizing feature and I want orders to be placed with limit orders and stop market orders to be green and red respectively, as if they were placed by an ATM strategy.
I know I can modify this in the properties of chart trader, but I have to do this every time and I plan to share my indicator with others who don't like pink/blue colours for our exit orders. I want to set these colours as the indicator loads up so that they will be defaulted to green and red regardless of who is using the indicator.
I'm just not sure how to access these properties via script. Can you help with the code to get this data and overwrite with a new brush?
Thanks,
Rapine

Comment