I use two data series, data1 is 1min, and data2 is 10min bars.
There is no intrabarpersist.
Here's a snippet of the code.
Here's the Print() result.IF BARSTATUS(2)=2 and time<>lastbartime THEN BEGIN
lastbartime = time;
......
if date=1170103 and time=310 then print(date," ",time," ", ...bunch of variables here...);
.....
END;
This shows the MC script is run 4 times.1170103.00 310.00 1.04564 1.04552 1.04907 1.04881 1.05290 1.04550
1170103.00 310.00 1.04564 1.04552 1.04907 1.04881 1.05290 1.04550
1170103.00 310.00 1.04564 1.04552 1.04907 1.04881 1.05290 1.04550
1170103.00 310.00 1.04564 1.04552 1.04907 1.04881 1.05290 1.04550
First of all, why is this run 4 times, and secondly could anyone advise on how to have the script run only once?
As you can see in the script, I use lastbartime<>time to try to force it to run only once but that doesn't work. Please advise.
Thank you in advance.