Forum

Array of arrays: invalid array access

I would like to use an array of arrays as in the following code double data[ 2 ][ 1 ]; int indicatorIndex; int OnInit () { int index = indicatorIndex++; SetIndexBuffer (index,data[ 0 ], INDICATOR_DATA ); index = indicatorIndex++; SetIndexBuffer (index, data[ 1 ], INDICATOR_DATA ); } ... But

Failed to open buy order. Error code: 4756 (10013 - invalid request)

Hello! I am trying to send a market order programmatically via my MQL5 demo account on *********** via my EA and via this code: void OnTick () { ExtExpert. OnTick (); if (!executed) { MqlTradeRequest mrequest; // To be used for sending our trade requests MqlTradeResult