Forum

CArrayInt::Resize(n) acts different from ArrayResize(IntArray,n)

When doing this // MQL5 CArrayInt myArray; myArray.Reserve( 50 ); myArray.Resize( 50 ); int size=myArray.Total(); bool success=myArray.Update(0,10); "size" woudn't be "50" as expected. In my Program size came out with "0" and "success" with "false". This is a total different Behaviour from

slippage has no effect !!!

When i began testing wih MT4, I mistake bid for ask at a long position, but i used a slippage of 100, just for securing the success of the opening-process. Anyhow i got the 129-Error (Invalid price) ! After exchanging bid with ask the EA worked well. The same problem is occurring in my current