Pending Order Issue
-
Hello,
I open a pending order using costum price,but the result which i take is not that i say the EA to do.
Please look the images above:

It opens the pending orders very close,but i use highest/lowest price for 0-32 candle id.Why this happened?
Thank you
-
This candle is 33. The most right candle is 0, the current candle. The first already closed candle is 1 and so on. Start to count from 0

-
@fxdreema ok,that you told is true,but there is no sense where the pending orders opened.As you can see i told the ea to open the pending sell order on the lowest price from 0-32 candle and the pending buy order on the highest price from 0-32.As you can see in the image in metatrader, that didn't happened.
-
Is it because of your adjust value?
For the buy you are placing your order at the highest price of the last 32 candles + 6 pips?
For the sell you are placing your order at the lowest price of the last 32 candles + 6 pips?
-
@sydneyfox Thank you,i didn't notice that on sell peding order should put adjust -6pips.
Although the result is not right for sell pending order.There isn't that the lowest price for candles 0-32.
I change it to 0-24 candles and looks it work now. -
Here is some test EA that I made to see what is going on: https://fxdreema.com/shared/f9R4lpRS
I see no problems now, but if you can make it so it shows wrong results, I will fix it