 
                                            
        
                                Просьба к знающим: помогите написать формулу thinkorswim для кроссовера к следующему индикатору: # TS_MarketThrust #  # thinkscripter@gmail.com # Last Update 12 May 2010 declare lower; input AvePeriod = 10; input showOnlyToday = YES; def T1c = (close("$ADVN" * close("$UVOL"
 * close("$UVOL" ) - (close("$DECN"
) - (close("$DECN" * close("$DVOL"
 * close("$DVOL" ); plot T1 = if showOnlyToday and getDay() == getLastDay() then T1c else if !showOnlyToday then T1c else double.nan; T1.SetDefaultColor(color.red); def TAvec = Average(T1, AvePeriod); plot TAve = if showOnlyToday and getDay() == getLastDay() then TAvec else if !showOnlyToday then TAvec else double.nan; TAve.SetDefaultColor(color.white); plot zero = 0; zero.SetDefaultColor(color.yellow); def U = close("$UVOL"
); plot T1 = if showOnlyToday and getDay() == getLastDay() then T1c else if !showOnlyToday then T1c else double.nan; T1.SetDefaultColor(color.red); def TAvec = Average(T1, AvePeriod); plot TAve = if showOnlyToday and getDay() == getLastDay() then TAvec else if !showOnlyToday then TAvec else double.nan; TAve.SetDefaultColor(color.white); plot zero = 0; zero.SetDefaultColor(color.yellow); def U = close("$UVOL" ; def D = close ("$DVOL"
; def D = close ("$DVOL" ; def DVOL = U - D; AddChartLabel(yes, concat(DVOL, concat(" ", "UVOL-DVOL"
; def DVOL = U - D; AddChartLabel(yes, concat(DVOL, concat(" ", "UVOL-DVOL" ), if DVOL > DVOL[1] then color.green else color.red);
), if DVOL > DVOL[1] then color.green else color.red);                            
                                                                    
                                    
            
             * close("$UVOL"
 * close("$UVOL" ) - (close("$DECN"
) - (close("$DECN" * close("$DVOL"
 * close("$DVOL" ); plot T1 = if showOnlyToday and getDay() == getLastDay() then T1c else if !showOnlyToday then T1c else double.nan; T1.SetDefaultColor(color.red); def TAvec = Average(T1, AvePeriod); plot TAve = if showOnlyToday and getDay() == getLastDay() then TAvec else if !showOnlyToday then TAvec else double.nan; TAve.SetDefaultColor(color.white); plot zero = 0; zero.SetDefaultColor(color.yellow); def U = close("$UVOL"
); plot T1 = if showOnlyToday and getDay() == getLastDay() then T1c else if !showOnlyToday then T1c else double.nan; T1.SetDefaultColor(color.red); def TAvec = Average(T1, AvePeriod); plot TAve = if showOnlyToday and getDay() == getLastDay() then TAvec else if !showOnlyToday then TAvec else double.nan; TAve.SetDefaultColor(color.white); plot zero = 0; zero.SetDefaultColor(color.yellow); def U = close("$UVOL" ; def D = close ("$DVOL"
; def D = close ("$DVOL" ; def DVOL = U - D; AddChartLabel(yes, concat(DVOL, concat(" ", "UVOL-DVOL"
; def DVOL = U - D; AddChartLabel(yes, concat(DVOL, concat(" ", "UVOL-DVOL" ), if DVOL > DVOL[1] then color.green else color.red);
), if DVOL > DVOL[1] then color.green else color.red);                             Наверх
Наверх
			 
			






 Я прошу помощи по написанию формулы кроссовера DMI в ТОСе для облегчения визуального наблюдения за индикатором.
 Я прошу помощи по написанию формулы кроссовера DMI в ТОСе для облегчения визуального наблюдения за индикатором.


 Загрузка...
                                Загрузка...
                        
а для чего эта формула?
Ноя 29 2011, 22:06Скрипт воспринимает как команду на смаил.
Ноя 29 2011, 22:07К PapaRed : если не понятно из кода, то попробуй в ТОСе, в окне тикеров вбить $UVOL и $DVOL — посмотреть их значение. Затем вбить ($UVOL-$DVOL) — возможно вопросы отпадут сами по себе.
Ноя 29 2011, 22:54