Download MetaTrader 5
To add comments, please log in or register
Add our Twitter channel to friends and follow the news!
gszabo
108
gszabo 2012.06.13 20:56 

Hi,

I have made a simple EA wich contains OrderSend wit DEAL type. If I run it from the Editor it runs and creates trades successfully on my Demo account.

But if I run it with Strategy Tester I receive error 4756 [Invalid request] on every OrderSend. I think the MqlTradeRequest structure is filled correctly (and it works in live case).

What is wrong? 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure
  • www.mql5.com
Standard Constants, Enumerations and Structures / Data Structures / Trade Request Structure - Documentation on MQL5
Slawa
Moderator
6798
Slawa 2012.06.18 12:55  
Do You fill all the structure MqlTradeRequest' fields? If not You should initialize it with zero
/
To add comments, please log in or register