//+------------------------------------------------------------------+ //| info_o_koncie.mq4 | //| Copyright © 2009, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2009, Info-Trade" #property link "http://infotrade.efuturo.eu" #property indicator_chart_window extern string chose_language=" 0 - English, 1 - Polish "; extern int language=1; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators //---- string x; double y,poz_depozytu_biez,StopOutLevel; int z; // Funkcja AccountStopoutLevel zwraca wartość poziomu po przekroczeniu, którego zamykane są najbardziej stratne pozycje. if (language==1) { if(AccountStopoutMode() != 0) x="Porównanie poziomu wolnych środków do absolutnej wartości rachunku."; else x="Obliczenie stosunku % między wolnymi środkami i rzeczywistą wartością rach."; } else { if(AccountStopoutMode() != 0) x="Comparing the level of free cash to the absolute value of the account."; else x="Calculation of the percentage ratio between the free cash and the actual value of the account"; } y=MarketInfo(Symbol(),MODE_MINLOT); switch (y) {case 0.01: z = 100;break; case 0.1: z = 10;break; case 1: z = 1;break;} if (AccountBalance()