t0mbfunk:
Hi! Here is my entry function. Before I've added RefreshRates(), it didn't place any orders and did not show any errors..Now that I've added RefreshRates,it shows "OrderSend Error 130" although the SL and TP are 0 as you can see.
Please Advice,thank you.Why aren't you testing the OrderSend() return value to check for errors ? don't you want to know when they fail and what the relevant variables are when they do fail ? for example, Bid, Ask, LotSize, sleve1, magic, etc
Read this: What are Function return values ? How do I use them ?
Why are you checking that your trading parameters are valid according to this: Requirements and Limitations in Making Trades ?
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
Hi! Here is my entry function. Before I've added RefreshRates(), it didn't place any orders and did not show any errors..Now that I've added RefreshRates,it shows "OrderSend Error 130" although the SL and TP are 0 as you can see.
Please Advice,thank you.