In Signal code :
I compute some data on data3 store in RSI3 var and want to read previous value in last Box.
I make some code to reproduce the issue, i store Symbol_CurrentBar in this RSI3 var for better undestanding.
Code: Select all
vars: intrabarpersist RSI3(0,data3);
//first tick on new box
if barstatus(3)=0 then
begin
// put computation in var
RSI3 = (Symbol_CurrentBar) data3;
//print last value and new value Symbol_CurrentBar here
//
messagelog("Previous box var ",numtostr(RSI3[1],0) ," / new var ",numtostr(RSI3,0) );
end;
Previous box var 1883 / new var 1884
Previous box var 1883 / new var 1884
Previous box var 1883 / new var 1884
Previous box var 1883 / new var 1884
in offline mode, Barstatus(3)= 0 is trigger four time by box ! (seems O,H,L,C)
barstatus(3) = 0 would be trigger only on the first tick => open of new box
only one ligne by box in messagelog (one trigger)
same for last tick here
barstatus(3) = 2 would be trigger only on last tick => close of the box
only one ligne by box in messagelog (one trigger too)
need help please, my signals don't work on multi datas.