Need Help to stop continuous alert
-
Hi, I have made this EA. but its giving alert in each candle when the condition are met. Can anyone please help me to stop continuous alert. I just need alert once for buy and alert once for sell.

Thanks
-
@mtrader4 The problem is deciding when the combination happens 'once'. You can do it with a variable, but you will need to specify when the condition is supposed to happen again.
-
I want to build the EA based on the following condition
if ClosePrice>EMA(200) && RSI>50 && Closeprice>ParaboliceSar then Buy
and if ClosePrice<EMA(200) && RSI<50 && Closeprice<ParaboliceSar then Sell
The alerm triggers once when there is a buy signal. After that when a sell signal triggers there will be one sell signal untill again a buy signal triggers.
Can you please help me with the variable based on this conditions.
-
@mtrader4 Ok. Can you please share the link to your project?
-
-
@mtrader4 You should add a 'no trade' block immediately above both 'alert' blocks. One for sells and another one for buys. That way there will be just one alert each time a new trade is open.
-
@l-andorrà Sorry for the inconvenience. I dont want to open a trade automatically. I want to open trade manually. I just need to get the alert and will decide manually if I want to open a trade. I cant stop the alert which goes on in every candle.
-
@mtrader4 But what if several crossing happen for 10 minutes for example? Which one should be the correct one, the first one or the last one?
-
@l-andorrà If several BUY Crossing happens it will alert only first one (BUY alert) not the last one. After that it will give SELL alert when the condition met for SELL signal first time only.
-
@l-andorrà would increasing the width of the crossings help?
-
@majinrex Use a once per bar block.
-
I think I have figured this out. I have tested BUY signal and its working fine. But the complete project ( both BUY and SELL) is more than 10 blocks. I am afraid I am not using the paid version. Thats why cant test the complete project. If I share my project can you please provide me the mq4 file if you are using the paid version.
-
@majinrex That depends on the whole strategy. What will that make for sure is increasing the numbers of checkings per tick.