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
Hmm....Raptor. Thanks for replying to my thread. I think you are the only 1. Im very grateful fo it. Since im learning. If you are kind enough. Just let me know what codes is it for me to bring out the pending order price and do i need to calculate the Sl and TP if i want to modify it. I'll try and firgure it out myself first.
OK. Fundamentally there is no difference to any of the calculations you need to do for SL & TP between ECN and non-ECN Brokers . . . the difference is that for ECN Brokers you send the order with SL & TP at 0 and then use OrderModify to add in the SL & TP after the OrderSend has worked . . .
Your code looks OK, you do need to check return values from the OrderModify and report any errors . . . but I suspect that your issue is still in calculating StopLevel . . maybe it should be this ?
You need to understand the code you are trying to use, if you don't understand a line read the documentation on each command in the line . . and understand what is going on. It's the only way . . unless you simply want to go here: https://www.mql5.com/en/job
Oh...that is a Programmer For Hire website. lol.....nah. i wanted to learn this. What do u mean by read the documentation on each command in the line?
What do u mean by read the documentation on each command in the line?
Oh...ok. I will get on with it. Thanks.