The EA miss entries and closing
-
I created EA using custom indicator that is not repainting and the buffers are correct. The problem the EA execute trades but sometimes it doesn't close them. My condition is buy when lime green is visible and close buy when Red is visible. Sell when Red is visible and close sell when lime green is visible. My EA is based on buy sell strategy. Can somebody please tell me what's the problem. "George" https://fxdreema.com/shared/H5wGlQiHb
-
@jstap any Idea what it might be the problem!
-
Try : Removing the "if trade" block
-
@sktsec okay let me try it
-
@sktsec still the now working. Let say the sell buy is still running and when sell signal appears it doesn't close the buy and enter the sell signal but sometimes it close and executes the trade based on signals but sometimes it doesn't
-
It is straightforward and should have worked, provided your indicator could give the signal
-
Sometimes this happens, I do not know of anyway to prevent this happening
-
@jstap
I find custom indicator itself may even not work consistently by itself.In particular, in M1 timeframe and after hours/days of running (MT4).
Recently I coded an indicator buffer to simply record the open price at particular conditions.
The result is very strange: After a long run (1 or 2 days), it would then take prices that never exist ! I saw this happened only in M1 timeframe.
That is both strange and interesting. How come it would take an open price that never exists ?
There is obvious computation error. But my indicator is relatively simple.
Not sure if my PC being not fastest enough or having glitch due to high temperature.
-
@jstap That's unfortunate because I tried all custom indicator buffers to execute and close trades but going forward the EA sometimes miss those trades
-
@jstap forex_sweepmod.V2.2.mq4 @jstap I just wanna bother you a little, if you've a time can you please take a look in this indicator code maybe there's a problem that cause the EA NOT to perform properly in terms of executing and closing trade. N.B.. When you get a chance