thanks for the sample script. It helped a lot.
I am drawing rectangles with Draw.Rectangle(NinjaScriptBase owner, string tag, bool isAutoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, Brush brush, Brush areaBrush, int areaOpacity) syntex. But problem I am facing is, though the indicator is drawing the rectangles, but all are gone after I refersh or remove the indicator. is there any way to save them so that later those are plotted whenever I add the indicator?
I thought creatig a list so that I can call them. but it did not work for me. Any advise or quick sample will be really great. thanks in advance.
Comment