Thank you for the reply.
Because you are using the Plot override, you can forget any concept of "Tags" you know from the DrawingObjects. DrawingObjects use a tagging system to know if a new object is needed or to use the existing object, in the plot override there are no Tags or Objects but only what you program to render.
As for price levels, do you mean at each TickSize interval, for example on the ES every 0.25? Or at the Even price levels with no remainder?
The for loop can be made to iterate how you need it to, for example you can do 10 iterations of X tick size to achieve a loop at each TickSize
for([COLOR="SeaGreen"]double i = Close[0];[/COLOR] [COLOR="purple"]i < [B]Close[0] + 10 * TickSize[/B][/COLOR]; [COLOR="darkorange"]i += [B]1 * TickSize[/B][/COLOR][B][/B]) { Print(i); }
It would really just depend on what Price level you want to set it at, and would need to configure the Loop to do a dynamic loop over X price levels. The counter part to this would be to write out one line for every price level you want to see. Remember there is no Tag, so 1 syntax line to Draw is needed for each level you want to see. The for loop makes this dynamic instead of having X number of lines of levels pre made.
I look forward to being of further assistance.
Leave a comment: