Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 385
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
Please point out, kindly, where you found "mistake upon mistake"?
Have your eyes swollen yet? Hint: see order opening prices (other than the closing price already mentioned earlier).
And more details.
Done, but that doesn't solve the problem with the owl above. I think when closing, the EA just doesn't see the orders on the symbol and the majors it needs to close.
It shouldn't see the symbol or the magician, your EA says it correctly. Look at the logs to see what error it produces.
Guys, please help me very much to find a bug in the board, it doesn't compile.
Look at this line
else if(order_type = OP_SELL()
Thanks, took your code apart. There is indeed an error on opening (my eye is already soaking wet). I put the modified EA to a demo where there are already open positions on our Meijic with total positive profit. However, the position has not closed.
I see in the new code (which is below in the post) the default parameter passed to the function has changed:
The original version had a different Magik. I've corrected the reference to this function in my code. Look under which Magik orders are open now and set this Magik number in your EA.
P.S. And using different encodings when naming variables is not a sign of good form... I mean: