indicator to ea
-
I have an indicator which i want to turn to EA.
now, my challenge is if the buy buffer prints the ea will take the signal, which is okey as expected, then when it hit tp, the ea take the signal again as the buy buffer is still active, now i want it to be once.if buy signal is vaild ea takes the trade, and when tp is hit, ea should not take buy again despite the buy signal is still active, the ea now untill opposite signal becomes active and then buy signal again,
meaning one trade per signal appearance, buy or sell -
try to put "once per bar" just above buy block
-
use a bool variable which you set to true once you've entered the buy trade and only set it to false when the sell is activated, filter your buy entries on the bool variable and vice versa for the sells. Lemme know if you need further assistance?
-
@ambrogio i have done that, not working
-
@Foz How do i do that.
-
Try
after buy trade: disable buy trade block and enable sell trade block.
after sell trade: disable sell trade block and enable buy trade block -
@Intechs said in indicator to ea:
@ambrogio i have done that, not working
please, can you share the link to your project?
-
@sktsec yeah, this should work, pls. how do i get it done, the connections
-
@Intechs He means like this:
