EA crashes often!
-
What is wrong with my ea?
After years of years of spending into market, I discovered a strategy and finally it works, but it is to be programmed, a normal human can't sit on screen all day, Amzaing work by fxdreema eas are so easy to create but..
Here is the probelm,
- The strategies work when tested
- I use time filters apply them at night, coz it has to start midnight, when i wake up i notice none of the eas are working when shut mt5 and i reopen boom suddenly the trades are placed
- sometime it looks like it works, it opens trade but the strategy is on 1 min so you often face stop outs it suddenly stops working after a few trades,
is running on 1 min causing the ea to crash, im mad confused on why it acts that way...
it is working i have tested it no problem with the fundamental code of the strategy but something is causing it to stop/crash
@fxDreema plsss help!!!
-
Shutting your computer will always stop the EA to work. You need your computer to be open 24/7 or, more conveniently, pay a VPS service.
-
@chupdkasjgd I had been running it on a VPS, I figured the issue out finally after blaming thousands of things.
It was due to stop levels of the broker. I used buy/sell stops at the high/low of the candle, so when the candle closes at high/low it was causing the ea to crash, now after adjusting for stop levels it works smoothly.
But still I have a question, the stop levels are a lot i.e 1 pip, cause the strategy is on M1, is there any way to solve this.?? I wanna be able to the buy stop order at high/low of the candle but i wouldn't be able to do it if the close is within the 1 pip range of high/low.
-
I'm afraid that is not possible. Your broker will use that pips distance rule no matter what you do in your bot, I'm afraid. The easiest option is finding a new broker.
-
@chupdkasjgd
A high spread makes your stop order invalid.First of all, the spread during a day start is horrible, even unbelievable for some broker. I often add a spread filter block to disable trading during high spread, or simply suspend trading during the first 1 or 2 or 3 hours when day starts.
Many broker promises they would have normal liquidity only after 3 hours after day start. In reality, it is requires about 2 hours before getting a normal spread,
Secondly, you may need to take care of the bid/ask price to calculate the 1 pip away price, rather than using the high/low price directly
-
@l-andorrà Well, that makes sense! but how about opening a market order when the current price is =>/=< the high/low of the candle, can that be done?
-
Hola, puedes compartir el enlace de tu proyecto para poderlo analizar y ayudarte de ser posible a mejorarlo
-
@chupdkasjgd Hello, what is the name of your broker and what assets do you operate with that strategy that you have identified?