Running an EA with Strategy Tester OrderSend failed

 

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
 
Do You fill all the structure MqlTradeRequest' fields? If not You should initialize it with zero
Reason: