I have developed a strategy and using the following code to take a position and the Calculation is OnBarClose.
if(Close[0] > Open[0])
EnterLong();
else if(Close[0] < Open[0])
EnterShort();
Is there a way to change the Calculation to OnEachTick and have exact same functionality(I mean detect when bar is closed).
Comment