Nothing?
Andrea Fontanini #: Nothing?
You have provided insufficient information and/or code for us to reach a proper conclusion. All we can do is speculate:
- Are you checking if the position is still open?
Is the deal being tracked by the event the one creating the position or is it perhaps closing the position?
If you don't verify this, you will get an error if the position is no longer open ("doesn't exist"). - Are you checking if the resulting stop-loss or take-profit is a valid price quote?
It does not seem like you are doing that, given that one of your errors was a stop-loss with a price of "-0.001" which obviously is not valid ("invalid request"). - Are you verifying that the "new" stop-loss or take-profit is different from the previous ones set?
If not, and they are the same, you will get an error. - Are you verifying that the distance of the stops are outside the Stops Level?
If not, you will get an error?
Thanks for your attention. The code was taken from the internet as a free resource. the code is not a part but all. The algorithm starts when an operation is opened automatically or manually. As soon as the trade is opened, set the stop loss (the idea would be to put the possibility to also make the take profit in the same EA. Here I put the stamps of the two accounts where the netting account works on the hedge account no. NETTING: OK HEDGE: NO
No?
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
Good evening, First of all, thank you for taking your time on this topic. I have problems with this code. The EA is programmed to insert stoploss automatically once a trade is opened in the same exchange (both automatic and manual). With some brokers I have no problem while with others it returns the following error:
Small note:
on the account where it works it is NO HEDGE while on the other it is HEDGING
how can i solve ?? Thank you!!!