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
@phi,nuts
I tried your code and the message received was:
2013.01.21 14:31:53 Buy_SellOrderMarketPrice (EURUSD,M1) error 4756 check code 10013
I look at both 4756 and 10013 explanations but I can not figure what is wrong....
@phi,nuts
I tried your code and the message received was:
2013.01.21 14:31:53 Buy_SellOrderMarketPrice (EURUSD,M1) error 4756 check code 10013
I look at both 4756 and 10013 explanations but I can not figure what is wrong....
Forgot nulling the structure ;(
If you like , you also may add deviation, since AlpariUK is using fractional pips.
Forgot nulling the structure ;(
If you like , you also may add deviation, since AlpariUK is using fractional pips.
Thank you! It works ! One last question: way is needed to null the structure (why it is not working the code without nulling)?
way or why ?
The answer is : why not ;D.
To reset all pointer to the mql5 trade structure.
Basically we don't have to use all member of trade structure, and if we do that without resetting the structure, we may send wrong request to broker.
Another way to null the structure is by using ZeroMemory()
I re-read your topic again, and try to send orders without any price, using code like this
... and the position gets opened. I won't recommend using this way, because broker may change it's execution type on the fly without telling us, which may cost us the position not opened. If this is happen, we can ask our trading log from broker (yes they have logs of our trading activity and you can ask them), and compare it with our log, but it's a little late for that, position already not opened.
way or why ?
The answer is : why not ;D.
To reset all pointer to the mql5 trade structure.
Basically we don't have to use all member of trade structure, and if we do that without resetting the structure, we may send wrong request to broker.
Another way to null the structure is by using ZeroMemory()
I re-read your topic again, and try to send orders without any price, using code like this
... and the position gets opened. I won't recommend using this way, because broker may change it's execution type on the fly without telling us, which may cost us the position not opened. If this is happen, we can ask our trading log from broker (yes they have logs of our trading activity and you can ask them), and compare it with our log, but it's a little late for that, position already not opened.