Navigation:Home > Content >

Margin_DrawDown_TrackerEZ.mq4

Time: 2017-07-24 | Download file:Margin_DrawDown_TrackerEZ.mq4

//+------------------------------------------------------------------+
//|                                      Margin_DrawDown_Tracker.mq4 |
//|                                    Copyright © 2007, P. Kubitzki |
//|                                              [email protected] |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, P. Kubitzki. All Rights Reserved"
#property link      "http://www.SecretsFromTheHeart.com"

double MaxAccountMargin = 0.0;
double MaxDrawDown = 0.0;
double MaxFloatingProfit = 0.0;



int deinit()
  {

  return(0);
 }
  
int init()

   {
 
    return(0);
   }
 
 
  
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
//  {
 
//    if(Bars<25)   {Print("bars less than 25");return(0);
//   }
 
  {

       if (AccountMargin() > MaxAccountMargin)
           MaxAccountMargin = AccountMargin();
     if (AccountProfit() < MaxDrawDown)
           MaxDrawDown = AccountProfit();
      if (AccountProfit() > MaxFloatingProfit)
           MaxFloatingProfit = AccountProfit();
              int ml = AccountLeverage();
         
     Comment ("http://www.SecretsFromTheHeart.com","\nAccount Leverage is ",ml,":1","   MaxFloatingProfit = ",MaxFloatingProfit,"\nMaxAccountMargin = ",MaxAccountMargin,"           MaxDrawdown = ",MaxDrawDown);
 
   return(0);
  }
  

//+------------------------------------------------------------------+

Recommend