I want to code a custom drawing tool that draws not only one horizontal line when I click the high or the low of a bar with the crosshair but multiple horizontal lines around these points.
I looked at "Using SharpDX for Custom Chart Rendering" in NinjaScript Reference Guide. I would like to know if this kind of tool needs ShardDX. Could it be coded in standard NinjaScript?
I also read two or three other users' solutions for plotting labeled lines, but I'm not interested in labels, just in multiple horizontal lines above and below a price.
So, I started stripping unnecessary text-handling code but ended up in a mess. I still need to sort out the overall code structure of this tool, meaning understanding where to create my logic and custom resources like brushes and strokes and how to integrate it into the Drawing Panel of NinjaTrader.
Last but not least, how do we configure it to be used and exported?
What structure should the final .zip file have?
Comment