/*[[ Name := ATRBurts Author := Hapsa Link := http://finance.groups.yahoo.com/group/MetaTrader_Experts_and_Indicators Separate Window := Yes First Color := MistyRose First Draw Type := Line First Symbol := 217 Use Second Data :=No Second Color := Red Second Draw Type := Line Second Symbol := 218 ]]*/ Input : prd(5); Variable : shift(0); Variable : CurrATR(0), PrevATR(0), ATRburst(0); SetLoopCount(0); For shift = Bars-1 Downto 0 Begin SetIndexValue(shift, 0); CurrATR = iATR(prd, shift); PrevATR = iATR(prd, shift+1); ATRburst = CurrATR - PrevATR; SetIndexValue(shift, ATRburst); End;