I can code
Code: Select all
if (barnumber=1) then
print(MarketPosition);
Code: Select all
if (barnumber=1) then
print(MarketPosition);
You mean like this?print current market position first time indicator is applied? I was wondering how can I do this cleanly.
I can code
but this will print the MarketPosition of bar number 1. I need the current market position.Code: Select all
if (barnumber=1) then
print(MarketPosition);
Code: Select all
Variables:
printOnce(false);
if (LastBarOnChart_s = true) and (printOnce = false) then begin
Print("The current market position is: ", i_MarketPosition);
printOnce = true;
end;