here is a short video of the pronlem live. At the end I changed the timeframe and then it works fine:
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello Community,
I have programmed an EA that is supposed to enter trades based on fractal breaks. I have programmed my own fractal indicator for this, as I want to adjust the period. The logic is quite simple: as soon as a high fractal is broken with a close above it, a long trade should be placed and the same applies to short.
For this I get the fractals from my 'Indicator' and save them in a separate struct variable (simplified code! Complete code in the appendix) every time a fractal is formed, highFractal/lowFractal is overwritten and the "trend line" is set to the new fractal. Every time a fractal is broken, highFractal/lowFractal is set to 0 and the "trend line" is deleted :
Now my problem:
After an undefined time (usually at night), the fractals are neither deleted if they are broken nor are they updated. In the tester, everything ran smoothly and the logic worked even with complex follow-up purchases. In the test run on a demo account, it usually ended after the day had changed. So I reduced the code to a minimum to find the error, but I can't find the error because there are no outputs in the journal tab that indicate an error.
I hope someone can tell me why these interruptions occur in the live/demo account.
I hope I have shared all the necessary information and thank you in advance for your support.
Best regards
Stefan