Can i change one plot color dynamicly? I mean that suppose we need sma. if sma < price.close plot pen color must be red and reverse sma >= price.close plot color must be blue. Yes i know if i use two plot plotUp and plotDown, and write this:
sma < price.close {only set plotDown}
else {only set plotUp}
my problem is solving. But i'm traying to solve this only one plot. Like this:
sma < price.close {plot.pen.color = red}
else {plot.pen.color = blue}
then setplotvalue
is it possible? And i'm newbe for ninja, could you please explain me shortly what is ninja drawing logic? I think first OnBarUpdate trigered each tick at this time we set plot values then ninja calling OnDrawing method and new values drawing on the chart.
Comment