Download MetaTrader 5
To add comments, please log in or register
Are you a real pro? Share your knowledge with millions of traders!
Henrique Vilela
1177
Henrique Vilela 2015.05.12 02:23 

Hi,

I'm setting the request deviation variable of the MqlTradeRequest structure before send an order and testing my EA with the Random Delay Mode enabled on the Strategy Tester.

The problem is that the order is been executed with slippgages much grater than the value set.

There's any pre-requisit to use the deviation? For exemple, it only works for some kind of orders, or some kind of filling... anything like that.

Thanks.

Alain Verleyen
Moderator
30183
Alain Verleyen 2015.05.12 08:52  
Henrique Vilela:

Hi,

I'm setting the request deviation variable of the MqlTradeRequest structure before send an order and testing my EA with the Random Delay Mode enabled on the Strategy Tester.

The problem is that the order is been executed with slippgages much grater than the value set.

There's any pre-requisit to use the deviation? For exemple, it only works for some kind of orders, or some kind of filling... anything like that.

Thanks.

Which broker/symbol ? Deviation setting only work for Instant/Request execution, not for Market/Exchange.
/
To add comments, please log in or register