Is there a way to cancell all plotted info on a chart from the code. I would like to have a cleaner chart when I look at my chart using a narrow bar spacing.
I'm able to read the bar spacing using getappinfo(aiBarSpacing). I see that the value is modified whenever I use the icone on my bar to increase or decrease the spacing. But I did not succeed to cancel the already plotted info yet.
The only way that i found is by unselecting the indicator.
Martin
Code exemple:
Code: Select all
Barspacing = getappinfo(aiBarSpacing) ;
If barspacing <> Barspacing_ex then begin
Barspacing_ex = Barspacing;
Arrowstyle_show = 1;
Print ( barspacing, " ", Barspacing_ex);
end
else begin
Arrowstyle_show = arrowstyle;
end;
if barspacing >=1.3 then begin