I'm trying to display the spread on my chart, the problem is, it shows a value for each candle.
How can i display it, only for the last candle.
here is my code :
Code: Select all
variable : monhigh(0);
if LastBarOnChart then begin
monhigh = getappinfo(aihighestdispvalue);
value1 = text_new(date, time,monhigh, "Spread: " & numtostr((CurrentAsk-CurrentBid),3));
Value1 = Text_SetColor(value1 ,black);
print (PriceScale);
end;