Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 57
|
What is the way to get a Single Line, EMA SMA HMA etc. to Change colour when it is in a direction according to me.
My idea was to have a Primary line displayed, so if a secondary line, a smaller line, it crosses over say tell the indicator to change my Primary Lines colour. When secondary crosses up above Primary, to paint another colour for the Primary Line, & when Primary Line crosses down below secondary to paint Primary Line another colour.
Although in the Strategies my options are to paint the entire background, and that is set then there is no change in any background colour.
A new Indicator created set to do the same as the strategy code says; actually produces no line at all and no colour change.
How can code work in in that a Primary Lines colour change on a cross of a secondary line to it, and also then Primary Lines colour change when the Primary Line crosses the secondary line.
Ex. Yellow up for a direction, and then BlueMagenta down for a direction.
Thank you.
|