I have in my strategy calculateOnBarClose = false. And I need set on my indicators calculateOnBarClose=true;
Now i have this in my code:
CalculateOnBarClose = false;
LPcurrentBidAsk.CalculateOnBarClose = false;
BBdown.CalculateOnBarClose = true;
BBup.CalculateOnBarClose = true;
SBdown.CalculateOnBarClose = true;
SBup.CalculateOnBarClose = true;
emATRdown.CalculateOnBarClose = true;
emATRup.CalculateOnBarClose = true;
,but it doesnt work :-(. All indicators are being drawn and redrawn on actual bar after each newcoming tick.
I need this for cross for 2 SMA's calculation on bar close (cross must was in bar in past). So i try use a CrossBelow(SMA1,SMA2,1) , but it still dont calculate on bar close.
Thanks for help
Kellerstein Lukas
[email protected]
Comment