The SetDeviationInPoints seems to intended for closing a position only.
To get order through, i used a MqlTick.ask - for buy orders and MqlTick.bid for sell orders, which is updated right before placing order SymbolInfoTick.
This solved my problem
chinaski:
The logic is put OrderSend () inside a loop that is repeated several times or until it returns "true". At each step of the loop the slip increases several points to ensure the implementation of the operation
Hello,
can anyone help how to solve the requote problem. If i do a buy or sell with CTrade,
i get sometimes no transaction because there was a requote.
(I set also the SetDeviationInPoints to 100, would should not be the solution in real trading)
This is from backtest log:
josemiguel1812:
The logic is put OrderSend () inside a loop that is repeated several times or until it returns "true". At each step of the loop the slip increases several points to ensure the implementation of the operation
A very dangerous approach, don't you think? IMHO, you can open orders and positions in duplicity using this approach. So, I'm not sure if this is the best way to solve the requote problem...
The logic is put OrderSend () inside a loop that is repeated several times or until it returns "true". At each step of the loop the slip increases several points to ensure the implementation of the operation
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,
can anyone help how to solve the requote problem. If i do a buy or sell with CTrade,
i get sometimes no transaction because there was a requote.
(I set also the SetDeviationInPoints to 100, would should not be the solution in real trading)
This is from backtest log: