[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Indicator on last bar only - needed help.



PureBytes Links

Trading Reference Links

Dear List,

I have an indicator based on hidden data as Plot1.

I need  this indicator to show HLC 
on the last bar on chart.

I coded:

....
Plot1(MyEL,"MyEL");

If LastBarOnChart then begin
	Plot2(C,"C");
	Plot3(H,"H");
	Plot4(L,"L");
end 
else begin
	NoPlot(2);
	NoPlot(3);
	NoPlot(4);
end;

The problem is that if new bar (Plots 2-4) is created,
the previous one is also displayed.

Is there any way to have only one and last bar displayed
for plots 2-4 (eventually as a separate indicator)?

TIA, Regards
ian.b



PS. 
For Text, Trendline tools there are functions to delete
"old" items (Text_Delete,...), what about indicator?