#property copyright "Copyright @ 20011, File45 and anyone who want to add their 2 pence/cents/rupees worth" #property indicator_chart_window //thanks: miaden-super moderator FOREX-TSD www.forex-tsd.com for major edit after which it workedas as intended. //http://www.forex-tsd.com/expert-advisors-metatrader-4/20171-please-fix-indicator-ea-34.html#post425056 //thanks: dabbler - MQL4/Forum http://forum.mql4.com/45267 //thanks: WHRoeder - ? as above extern bool Show_SL = true; extern color SL_Color = Yellow; extern bool Show_TP = true; extern color TP_Color = DodgerBlue; extern int Text_Size =10; extern int Move_Text_L_or_R =0; extern bool Fractional_Pips = true; extern bool Show_OrderTicket = true; string Npips= " pips"; string Fpips= " fpips"; static string Pip_Distance="Pip+Distance"; static string text; double pmod; int p2p; int dig; int Xpips; //--------------------------------------------------------------------- int init(){ if(Fractional_Pips==true){ pmod=Point; p2p=1; dig=0; } else{ pmod=Point*10; p2p=10; dig=1; } if(Digits==0){ pmod=Point; p2p=1; dig=0; Xpips=1; } return(0); } //--------------------------------------------------------------------- int deinit(){ DeleteLabels(Pip_Distance); return(0); } //--------------------------------------------------------------------- int start() { DeleteLabels(Pip_Distance); int orders= OrdersTotal(); if( orders==0 ) return(0); for (int n=0; n=0; i-- ) { string SL=ObjectName(i); if (StringFind(SL,Pip_Distance,0) > -1 ) ObjectDelete(SL); } }