I'm attempting to develop a simple indicator, but I'm new to NinjaScript and to C# and have an error that has me stuck and that I need help with.
The purpose of the indicator is to draw simple horizontal lines with specific colors, styles and widths when a button on the chart is pressed.
I draw these buttons by hand each day when I arrive at a chart to mark off certain support and resistance levels and other such things on the different time-frames that I trade and drawing them by hand for each market that I trade takes too long.
I want to be able to have the indicator instantly draw all the horizontal lines that I need formatted in the way where I can quickly recognize what each one is for, so that all I have to do is re-position them on my charts.
Screenshots attached. The orange boxes show code that I added. The red box shows code that I added which is giving me the error message.
The .cs file for this indicator is also attached.
Please assist and advise.
Thanks,
i2w8am9ii2
Comment