cayenne:
Hello everyone. I have this code which works perfectly for me when testing it with EURUSD.a. However, when doing it with EURUSD I get error 131. It should be noted that I use the Pepperstone broker. Thank you!
4 things.
1) your code is either very old, OR is created by AI. This is "frowned upon" and even ops are criticised for posting such code.
2) I doubt that it is "working" as you wish. It might be opening trades, but the take profits and stop losses might not be right.
3) change Point to Point() or _Point.
4) search help in metaeditor or this website for "Normalize" and use this on all of the OrderSend(s), on every takeprofit and stoploss calculation.
EDIT: I could be wrong, but I think that you can only use 1 set of symbols. The set of symbols you are allowed to trade on, depends on your account type. It should be easy to see on your marketwatch list. If 1 set of symbols are grey or the bid and ask prices do NOT change, then these are the symbols that you do not use. If it is unclear, then, you need to chat to your broker support and ask them which ones to use.
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
Hello everyone. I have this code which works perfectly for me when testing it with EURUSD.a. However, when doing it with EURUSD I get error 131. It should be noted that I use the Pepperstone broker. Thank you!