//+------------------------------------------------------------------+ //| RoNz Auto SL n TP.mq4| //| Copyright 2014, Rony Nofrianto | //| | //+------------------------------------------------------------------+ #property copyright "Copyright 2014, Rony Nofrianto" #property link "" #property version "1.20" #property strict //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ enum ENUM_CHARTSYMBOL { CurrentChartSymbol=0,AllOpenOrder=1 }; input int TakeProfit=500; input int StopLoss=250; input ENUM_CHARTSYMBOL ChartSymbolSelection=AllOpenOrder; //+------------------------------------------------------------------+ //| Hitung Posisi Terbuka | //+------------------------------------------------------------------+ int CalculateCurrentOrders() { int buys=0,sells=0; //--- for(int i=0;i0) return(buys); else return(-sells); //--- } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool SetSLnTP() { double SL,TP; SL=TP=0.00; for(int i=0;i