![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I am great at copying, but not at scritting... It was part of another EA which was applying the case. here is a copy:
Also my appology, my code was missing the OrderSymbol & OrderMagicNumber.
here is what I am working with.
I grabed the idea from another EA, where it was opening orders based on the (switch(type) & CASE) and was trying to apply the same principle here. Yes, I could out line each type of order, but was thrying to get the same result with the (switch & case).
RaptorUK:
OK, carry on then . . . are you saying you have no idea of how to do it and you need someone to do it for you ?
I don't know how, but this code is working now.
Thank you.
I don't know how, but this code is working now.
Yes it would do . . . you removed the line of code I mentioned.
If I understand correctly your OP_BUY and OP_SELL Order are being modified but not your limit orders, isn't this causing the issue ?
and similar for the code that modifies the Buy orders.
For a Sell Limit (OP_SELLLIMIT) or Sell Stop (OP_SELLSTOP) the OrderModify() will not be called but the lines that follow will, result will be false even though no error has been generated.
Yes it would do . . . you removed the line of code I mentioned.
Thank you,
Now I understand.