Check Profit > Close Trade - What am I doing wrong.
-
Hi,
I placed blocks to check from profit > $1 and < -$5 and if so close the trade but neither are executing in Live Demo MT4.
I'm assuming I'm doing something wrong?
https://fxdreema.com/shared/JNWKhaW3b
Thank you.
-
The yellow output in most blocks is "else". The yellow output of a block named "If trade" is the opposite, it's like "No trade exists". And then from the yellow output of block 167 you have connected "For each Trade". But there is no trade at that moment, how can "For each Trade" work, if there is not a single trade?
You probably want to put both "check profit" under 161. I'm not exactly sure that "check profit" worked for negative values... if not, try "check loss" with positive value.
Otherwise now that group under block 161 should work, but not the group of block 164.
-
Sorry the yellow connector was a complete mistake! I have made corrections.
However, the profit/loss blocks are still not executing the closure of a trade when the conditions are met in a live demo environment?
https://fxdreema.com/shared/0cX2VOFLb
Thank you.
-
But this EA makes new trade on every tick. What is this, it doesn't look as it should be... Look at what I got:
http://prntscr.com/ad8xg2
http://i.imgur.com/oPYLE85.pngThese "AND" blocks are not needed there.