Trying to make a EMA Crossover that only does one trade at a time
-
Does anybody know how to make an EMA Crossover that when two EMA's cross it enters ( a buy or a sell depending on what you want) one trade until it hits TP or SL and it doesn't enter again until another crossover. I am just having trouble making that. If need be i can but a link to what i have.
-
No Trade > Condition > Buy@Sell
-

So delete the condition and close trades to the right and everything on the left is good or am i doing it wrong? cause it just enters multiple times.
-
Yes @ninjowolf, delete right. Make sure you put Candle ID in condition blocks =1
-
So I did that and I feels like its really close. Its still doing multiple trades. I only want it to take one trade until it hits TP or SL then when it crosses over again to make another trade doing the same thing where it either hits TP or SL
-
Did you check the result if the single trade closed before open another or not? Becoz i don't see anything that makes it open multiple trades. Your work is in On Tick tab, right?
-
so it looks like it is opening and closing a trade almost immediately but its doing it multiple times. yep i'm on the On Tick tab
-
So it's working just like you want. Only you need to play with the settings.
-
@biztet Man im so sorry im dumb. yea i see that it is working. The Tp and the SL are working. The sells and buys are kinda working in the sense that it opens the sell correctly but exits way above the candle and vice versa the buy enters way above the candle and but exit correctly. Could that be because of spread? I'll try and see if i can figure that out thanks!!
-
Why does the EA open another trade after hitting TP
Its a simple SAR open above the candle and close after hitting TP ,
can anyone please help me
ive been trying different variables with no luck
https://fxdreema.com/shared/AAs69rxye
thanks -
@BrettEvans Until PSAR changes from one side to the other your conditions are correct, 1st condition check if< or > on ID1, second condition check if > or < on ID0, this will only activate when PSAR changes.
-
Thanks for the tip
DO i place the second condition in the same row below the 1st condition
As i only want sell trades when PSAR is above the candle
The setup currently works ,but takes another trade after TP hit for some reason
I thought it would be something like trade once rule ?
I have tried every combination and searched the net aswell for examples -
@BrettEvans Put it in a row so it checks condition 1, then checks condition 2.
-
HI
Does this scenario not just cancel the 1st condition as per below
https://fxdreema.com/shared/boZQ6qgwc
Thanks pal -
OK i tried it ,still opens another trade after hitting TP in the same direction
I must be missing something ? -
@BrettEvans This is correct, it will only reopen a trade if it closes with the PSAR still < > on the same candles it opened the first trade.

