//LastManStandingIndicator | indicator //translated from MQL4 code // --- settings //PeriodsInMajorSwing=13 //PeriodsInMinorSwing=5 //MovingAverageMethod=1 //MovingAveragePeriods= 55 // --- end of settings EMA = average[MovingAveragePeriods,MovingAverageMethod](close) hhminorprice=0 llminorprice=close*1000 for i = 1 to PeriodsInMinorSwing*2 do if high[i]>hhminorprice then hhminorbar = barindex[i] hhminorprice = high[i] endif if low[i]hhmajorprice then hhmajorbar = barindex[i] hhmajorprice = high[i] endif if low[i]