Sorry - I can not see the problem, but thanks for the test of a new bar - so simple but I had been racking my brains for a while!
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
as i figured out all my problems in the beginning i got stuck with that here.
This ea should enter on the break of an inner bar (doesn't matter if long or short) with exiting on the open of the nex bar. Sl is 25% of the range of the ib.
If i cut the last part of the code (Close condition 2 - see below- blue part), the ea works wonderful, with exiting on the bar after the position-opening-bar (the second bar after the inner bar). But if the code is there, somehow nothing works, the ea even doesn't open position, although the code, for opening a position is BEFORE the "Close condition 2-part". Additionally i get the error that the ticket number is invalid, which emphasizes once more that the opening part gets somehow leaped.
I hope you can help me, i'm completely baffled.
Thank you very much in advance!