/*
   Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
   Website: http://purebeam.biz
   E-mail : purebeam@gmail.com
*/
#property copyright "Copyright © 2008, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#property indicator_chart_window

extern color Color = Red;
extern int Size = 20;
extern string Font = "Verdana";

int init() {
   return (0);
}

int deinit() {
   ObjectDelete("lab");
   return (0);
}

int start() {
   int l_ind_counted_0 = IndicatorCounted();
   double l_free_magrin_4 = 0;
   double l_marginrequired_12 = 0;
   double ld_20 = 0;
   l_free_magrin_4 = AccountFreeMargin();
   l_marginrequired_12 = MarketInfo(Symbol(), MODE_MARGINREQUIRED);
   ld_20 = l_free_magrin_4 / l_marginrequired_12;
   ObjectCreate("lab", OBJ_LABEL, 0, 0, 0);
   ObjectSet("lab", OBJPROP_XDISTANCE, 10);
   ObjectSet("lab", OBJPROP_YDISTANCE, 10);
   ObjectSetText("lab", DoubleToStr(ld_20, 6), Size, Font, Color);
   return (0);
}
