Download MetaTrader 5

Running an EA with Strategy Tester OrderSend failed

To add comments, please log in or register
gszabo
108
gszabo  

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
Slava
Moderator
7026
Slava  
Do You fill all the structure MqlTradeRequest' fields? If not You should initialize it with zero
To add comments, please log in or register