hello support,
i have a trouble in my code.
if my syntax is that :
if(askBar1.getOpen() < askBar1.getClose() && askBar2.getOpen() < askBar2.getClose()
&& askBar3.getOpen() < askBar3.getClose()) {
buySign = true;
buyPrice = askBar2.getOpen() - getPipPrice(pipsBelow);
}
no problem the strategy open a trade when the condition is right
but if my syntax is that :
if(askBar1.getOpen() < askBar1.getClose() && askBar2.getOpen() < askBar2.getClose()
&& askBar3.getOpen() < askBar3.getClose() && askBar2.getHigh() < askBar3.getClose()) {
buySign = true;
buyPrice = askBar2.getOpen() - getPipPrice(pipsBelow);
}
the strategy doesn't open a trade even if conditions are right and i have no error messages.
i don't understand why.
best regards