EA to take another trade while one is currently running
-
Hi everyone, ive tried to search in the forum but cant find an exact answer, so if i dont put the no trade block i get several trades open on the same bar, so for example my EA will store a price level on the high of a candle and when im in this trade and price crosses another candle i have price stored at it will not take it as im already in a trade. Is there a way around this? thanks
-
I think you want something like this, under a no trade block for group 2, for each trade group0, check price is <or > trade + pips offset, conditions for new trade, buy/sell group2
-
@jstap said in EA to take another trade while one is currently running:
check price is <or > trade + pips offset,
thanks for your input, how would i do this part -check price is <or > trade + pips offset
thanks
-
@JL516 In a condition block candle 0 close (will give you current price) < > loop for the each trade , in adjust field put something like +10 pips make sure this is under a for each trade block.
-
@jstap for some reason its taking the same trades twice, i originally built the EA based on entry orders and it works well but i wanted live entries so i can turn it on and off with a time filter but i cant seem to get it to work anywhere like the one with orders at all.
with Modify variables - https://fxdreema.com/shared/VsFyuRjhdwith
entry orders -https://fxdreema.com/shared/Hhe57IGX -
@JL516 Your variable project won't load, you don't want once per bar, atleast not at top, this if needed should go under your conditions, this way it chechs all blocks before activating the once per bar.
-
@jstap sorry not sure what happened there https://fxdreema.com/shared/gTIfKQJxc
I sent you a message in discord didn’t realise we are in a same group on there. -
@JL516 What's your name on discord? haven't looked at that much recently, maybe you need to do something like, pass once block and then in a separate tree reset block, or reset sell when you buy, or reset buy when you sell.
-
@jstap it’s Josh. #0477 I’m not sure what you mean would you be able to show me an example please?
-
@JL516 The pass once block will allow blocks above to pass once, you can then reset this to pass again when you want it to, try on back test and you'll see how it works.
-
@jstap how would i reset after a buy and sell?