There is such a situation, a Roboforex broker, an ECN account, an adviser on moving averages. The problem is that the expert Advisor sometimes does not close the transaction at the intersection and accordingly does not open, that is, it does not react in any way, it manifests itself on different currency pairs. There are no gaps in the chart, everything is smooth, the problem manifests itself about once a day. Can who faced and how to win?
Share
vitales
I don’t remember in what lines. But I think you’re right. I changed the condition > to >>= and the condition < on <= , in functions that are responsible for generating a signal to open and close positions. But this is not the fact that the problem has been solved, it is necessary to test and analyze transactions. 🙂
grs
)))) Once again, many thanks to everyone who responded.
starij
Well, you have awakened telepathy and intuition, you will be a programmer
grs
vitales
Yes, exactly, the code has a strict condition of either more or less. Equality is not taken into account.
starij
It’s very simple. Most likely, you define the intersection as follows: if there is less on the last bar, and now there is more, then … And what happens if the last or this bar is equal?
grs
I agree, that’s actually the adviser and the signal on which it trades. Clarification, maybe this affects something, the terminal includes two of these expert advisors for different currency pairs, with optimization for their own currency.
vitales
They can’t help you here. There are no telepaths on this forum. To understand the essence of your problem, you need to see the source code of your expert Advisor.