question is:
I make comparisons within current bar[0] and previous bar[1]. If conditions are true, then i want to execute an order in current bar[0]. In practice it makes comparisons, but at the execution it skips bar[0] and establishes position on next bar.
I think the problem is that it makses the calculation on bar[0] close.How can I solve this issue?
My code is:
if (
//HHQ3
//HHQ3->Op<Cp->Hp-L>kv->Cp>O>op->Lp<L
(High[1] - Low[1]) <=400 * TickSize
&& (High[1]-Low[1])>300*TickSize
&& Open[1]<Close[1]
&& (High[1]-Low[0])>100 * TickSize
&& Close[1]>Open[0]
&& Open[1]<Open[0]
&& Low[1]<Low[0])
{
//Enters long position: quantity 1@market
EnterLongStop(High[1],"Target 50ticks");
}

Comment