But one thing it did that I haven't figured out in NinjaScript yet relates to drawing horizontal lines.
I'd like to draw lines on my chart to mark certain levels of support/resistance but be able to turn the lines off if certain conditions aren't met.
In thinkscript this was done with an if statement whose ELSE section returned Nan (not a number). So you'd have something that went:
if (mycondition) then 140 else Nan;
That sort of statement would draw a line if the condition was met and nothing if it wasn't met. Is there a way to do this in NinjaScript?
I'm not so sure when to use static number plots to draw horizontal lines and when to draw line objects, or whether either of these could do this for me.
Comment