/*[[ Name := Stop by ATR Author := Ким Игорь В aka KimIV Link := http://www.kimiv.ru/ Separate Window := No First Color := Blue First Draw Type := Line First Symbol := 217 Use Second Data := Yes Second Color := Red Second Draw Type := Line Second Symbol := 218 ]]*/ Var: i(0), HAsk(0), LBid(0); Input: ATRPeriod(10), Factor(0.5); // Цикл с первой свечки (Bars - 1) по текущую (shift=0) For i = Bars - ATRPeriod Downto 0 Begin HAsk = High[i] + Factor * iATR(ATRPeriod, i); LBid = Low [i] - Factor * iATR(ATRPeriod, i); SetIndexValue (i, HAsk); SetIndexValue2(i, LBid); End;