Alert once the price reaches a certain distance
-
Hi guys,
I need that my EA alert me once the price reaches a certain % fixed distance. I make an example:- EUR/USD closing price at 23 O'clock of every day
- price reaches a distance from the price (mentioned above) of +0,50% or -0,50%
I need only an e-mail or sms alert. Someone can help me?
Thank you very much and have a nice day
L. -
Ok I am almost done, but I am not able to set the sell condition. It doesn't recognize negative values. Any idea?
-
Because your 2 conditions is totally different
Buy =
Open price (current)
Closed price (M5) with timestamp
then 55 pipsSell =
Open price (m5)with timestamp
Open price ( current)
Then - 55 pipsit should be open compaired to close at both sides not open open

-
@timmyhanke Thank you very much. I tried also the setting that you suggest, but anyway mt4 doesn't open short trades. I really don't know why. If you have suggestions it would be great for me. Thank you anyway for your help.
bye
L. -
its because you are looking for a 5 min candle close to be 55 pips separated from current candle open , And if im not mistaken on exactly the moment 2355 .
You are looking for an insane jump that only happends in an insane crach of the market , to make a leap of 55 pips on 5 min and it has to be exactly at 2355 on your setting for it to see and react to it
-
@timmyhanke I mean that once the price reaches 55 pips from the candle of 23:55 the EA must open a trade. It must not happen at 23:55, this time is only the reference price to calculate the distance of 55 pips as price fraction. In fact my question is why on long position I have 8 signals on january and no short signals (I made also a 1 year backtest but only long singals in a year). I attach a screenshot of a long trade that open exactly at +0,55% from the price taken at 23:55 candle close price of the day before. I really don't understand why on short command the EA don't take the entry. I also checked manually on previous charts and this condition happened for sure during January. Thank you anyway for your suggestion.

-
i saw you have 0 pips slippage on the buy block buy 4 on the sell , maybe it can be that thing that messes it up ?
-
@timmyhanke Nothing. I tried but nothing happens. thank you anyway
-
im not giving up , try this value as is instead of as price fraction .
if it dosnt work try absolute distance to yes