trade doesn't execute
-
hi, im trying to make a hedging strategy but i saw that my 7th trade does not get executed.

and it makes the ea to lose the trades:

also somtimes the ea executes a trade but not in the right place:

here is a link to the ea: https://fxdreema.com/shared/MLqePsKhd
please help
thenks. -
@guy111 Candle close 0 is the current value.
-
what do you mean?
-
@guy111 I mean if you look for candle 0, as soon as price goes slightly <> current trade a new trade will be placed.
-
i changed it to candle open 0
-
@guy111 Should work, may want to use ID1 so is working on last candle.
-
it worked! thank you
-
hi, i tried to see what's wrong with the ea but i just don't understand why it's not executing the 5th trade now.
here's the link: https://fxdreema.com/shared/8yKLu9yLc
hope u could help
thenks. -
@guy111
If that's correct, you don't need Block54681 and 59040.

-
@rgoo I tried it but it’s still having issues
-
@rgoo it's still not placing the trades in the correct place and it's not because of the spread:

here's the link: https://fxdreema.com/shared/aKK9w8k0c -
@guy111 Someone help??
-
@guy111
Hello guy111 , it's difficult to help you here, try to bring some more structure into your EA first. So that it is easier for others to quickly understand the idea behind the EA. For example: use smaller numbers for the blocks, because the blocks on a level are executed according to the size of the number. Label the conditions clearly to immediately recognize what this condition will do etc. e.g. like this:

-
@rgoo alright I’ll try
-
@rgoo there, i numbered all the blocks:
https://fxdreema.com/shared/wQZmcyuce -
@guy111 the 7th trade still doesn't get executed
-
OK, looks good. Now of course you have to check the structure of the EA again step by step. So what happens next. For example: if you now get to block 19 you have to check what block 19 would do. Currently block 19 toggles block 1 on or off, but block 1 is not found here. And so you have to test each block, then you will surely find the error yourself. It is best to arrange the blocks according to their course, this will also help you to check the function of the EA.

-
@rgoo Ok, but how do I test each block?
-
@rgoo And I thought that the numbers of the blocks are not related to the order of the EA's operations
-
@rgoo said in trade doesn't execute:
block 1 is not found here
block 1 does found there, its the first trade (buy) to execute