
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
Well, I have to say you're right...but I have a problem with the order...look at this:
It just opens a sell order, but the EA doesn't close it any more or opens a new position...
The aim of the code is to open a position, and to close the old position and open a new position in the different direction if there is the signal!
Thanks for your help!
leMai
I'm sorry, but this time you're wrong...I can just close and open and order in 2 lines while one tick. The code above works, but if I try something I always copy many things around, in this case a few parameters were wrong. But unfortunatelly I have a new problem with I new indicator...I don't want to ask every time because the faults are often similar, but I try to find a solution for hours and nothing works:
Again, there are to many arrows on the same position in the online chart, and I didn't find out why!
What is the solution this time? Please help me, and what can I do that I find it the next time by my own, and not only because I was trying it long enough?
Thank you!
leMai
I'm sorry, but this time you're wrong...I can just close and open and order in 2 lines while one tick.
Again, there are to many arrows on the same position in the online chart, and I didn't find out why!
What is the solution this time? Please help me, and what can I do that I find it the next time by my own, and not only because I was trying it long enough?
Wrong is a poor choice of words on your part. You will be sorry in the future when you will come back with questions like " why do I get errors when trying to open a trade". I shall laugh and think of the old adage "you can lead a horse to water but you can't make it drink".
There are still fundamental errors in your code where you are not considering the size of the arrays.
I found my mistake yesterday morning...the for-loop was wrong!
The reasons for the wrong parameters are, that if something doesn't work and I don't knowhow to fix the problem, I try each possibility, also if I already know that it won't work, just to see what happens!
The code I have send was the last code I was testing...so don't wonder why is seems completely illogic!
leMai