Download MetaTrader 5
To add comments, please log in or register
They are making profit already using Freelance service. You can join them!
Jinsong Zhang
Jinsong Zhang 2010.07.23 10:32 

I have opened position and run follow script:


#include <Trade/Trade.mqh>
void OnStart()
   int slippage=10;
   CTrade *OrderClose = new CTrade;
   if(OrderClose.PositionClose(_Symbol,slippage*_Point)==true)Print("OK");else Print("false");

then I find message "312 bytes of leaked memory" in Experts tab. What dose it means?
Rashid Umarov
Rashid Umarov 2010.07.23 10:39  
You should obviously delete dynamical object yourself. See article The Order of Object Creation and Destruction in MQL5

To add comments, please log in or register