
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
Please run this little script on a GBPUSD chart, and report the result.
Please run this little script on a GBPUSD chart, and report the result.
Sorry, I didn't see the post. I was dealing with some of issues I had been having with the mql4 version of this on demo mode.
I'll run the script thanks
Report
"2014.04.02 15:11:27.158 Lot (GBPUSD,D1) Volume min = 0.010000, volume step = 0.010000 for symbol GBPUSD."
Report
"2014.04.02 15:11:27.158 Lot (GBPUSD,D1) Volume min = 0.010000, volume step = 0.010000 for symbol GBPUSD."
It's weird. Can you post all the relevant code, including ordersend call and error processing (printing) ?
Yes, it's below as requested
Lot=LotSize/8;
Yes, it's below as requested
This code isn't right, you can't use it as you do.
You have to use the StageOneBuyRes structure to get information about your order/deal. Mainly you have to check the retcode, please see the documentation or search the site for examples of the use of OrderSend(), it doesn't work like with mql4.
Your code is probably returning an error where there is not. Did you check the terminal to see if a position was open or increased ?
As a side note, but not related to this topic, the following code probably don't do what you think it does.
Right I will emend that.
I'm not sure what you mean by checking the terminal, there are not any backtesting results shown there.
Right I will emend that.
I'm not sure what you mean by checking the terminal, there are not any backtesting results shown there.
This code isn't right, you can't use it as you do.
You have to use the StageOneBuyRes structure to get information about your order/deal. Mainly you have to check the retcode, please see the documentation or search the site for examples of the use of OrderSend(), it doesn't work like with mql4.