MQL4 wrapper/framework

 

  Hi,


Is there any framework/wrapper library for MQL4 to make life easier? I havent really been searching around much, but so far I havent seen any. In case there is no such thing, would anyone be interested to create one? For instance, a piece of framework library code for Bars could be like this:


bool MX_IsBlackBar(int index) {
   return (Open[index] > Close[index]);
}

bool MX_IsWhiteBar(int index) {
   return (Open[index] < Close[index]);
}

//etc.... where MX stands for MQL4 eXtension


or there could be a wrapper for looping through the orders like so:


//old code
for(int i=0; i < OrdersTotal(); i++){
      if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
         return ;
      }

      //do what you want with selected order
}

//new code
MX_OrderFirst(MODE_ASC); //loop through opened orders ascendingly
while(MX_OrderNext()) {
   //do what you want with conveniently selected order
}


Many other convenience functions would be so nice to have. For instance, getting only proftable orders (or non-profitable ones) or statistical functions like correlation or MSE between the 2 set of bars, maybe AI library even. What do you guys think?

 
I'm searching something like these too. Anybody?
 
Reason: