closed profit block
-
is someone know why the robot will close at $40 for the first time like ask for
but for the second time it will reach over $50 but will not close.
https://fxdreema.com/shared/Z1aaDsL8b -
Because you used to pink 'close' blocks below the same 'for each trade' block. You should remove the yellow one on the right. That way all trade will be closed at $40.
-
@ykmark i want them to close when reach $40. but the second time it will go over. why is that? also i found out that to over come the fifo rule i just close them like that, what do you think ?
-
Because you selected profit should be >40 and 50 is above 40. That means occasionally when there is a sudden move in the price your profit will be beyond that figure.
-
@l-andorrà can i insert greater or equal >= to the check profit (unrealized) block so it will close at $40 ?
-
Yes, but as I explained, there is no guarantee it will stop exactly at $40.00 all the time. That will depend on the quote arriving to the terminal when conditions is true.