Новая версия индикатора на IMOEX 60 мин
Новая версия индикатора на IMOEX 60 мин
свободный доступ к исходникам в ТК
--[[ SMA list template v1 --]] Settings= { Name = "SMA_list_magic_template_v3", -- indicator name sign=0, prf=0, ln1=10, -- period ln2=20, -- period ln3=30, -- period ln4=40, -- period ln5=50, -- period ln6=60, -- period ln7=70, -- period ln8=80, -- period ln9=90, -- period ln10=100, -- period ln11=110, -- period ln12=120, -- period ln13=130, -- period ln14=140, -- period ln15=150, -- period ln16=160, -- period ln17=170, -- period ln18=180, -- period ln19=190, -- period ln20=200, -- period line= { { Name = "SMA_TEMPL", Type =TYPE_LINE, Width = 1, Color = RGB(0,0,0) }, { Name = "SMA_TEMPL", Type =TYPE_LINE, Width = 1, Color = RGB(255,0,0) }, { Name = "cur3", Type =TYPE_TRIANGLE_DOWN, Width = 5, Color = RGB(255, 0, 0) }, { Name = "cur4", Type =TYPE_TRIANGLE_UP, Width = 5, Color = RGB(0, 0, 255) } } } function Init() sma = {{},{}} sum = {{},{}} ln = {} n = {} sumln = 0 m = {} prof = {} return 4 end function GetSMA(index, num) if index == 1 then if num == 1 then ln[num] = Settings....Читать далее