vitas334
Новичок
- Регистрация
- 09.02.14
- Сообщения
- 95
- Реакции
- 30
Всем привет ! Уважаемые,почему ТОС не принимает это код,выдает в одной строке ошибку. Кто может проверить,а то я программировании не айс как-то...
Код:
# UnusuallyTall_R1V1
# Written by KumoBob aka Bob Campbell
# http://fibonacci-financial.blogspot.com/
# _____________________________________________________________
# Thinkscript is the property of ThinkorSwim and TDAmeritrade
# Sections of this script may have been copied or modified from
# one or more Thinkscript studies in part or in their entirety.
# _____________________________________________________________
# R1V1 2010.07.31:22:30
# Based on a study of unusually tall candles
# Bollkowski's Encyclopedia of Candlestick Charts
input help = no;
addchartlabel(help,"Cyan = 67% ",Color.cyan);
addchartlabel(help,"Yellow = 72%",color.yellow);
input PlotTrend = No;
def EMA10 = ExpAverage(hlc3, 10);
def Trend = EMA10[1] < EMA10; def qualify = if (high - Low) >= (Average((high[1] - Low[1]), 22) * 1.46) then 1 else 0;
Plot EMA10Plot = if !PlotTrend then double.nan else EMA10;
EMA10Plot.SetPaintingStrategy(PaintingStrategy.Points);
EMA10Plot.SetLineWeight(1);
EMA10Plot.AssignValueColor(if trend then color.Green else color.red);
def Q_Up = trend && High>High[1] && high>High[2];
def Q_Dn = !trend && Low plot signalUp = qualify && ( Trend && Q_up) ;
signalUP.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_down);
signalUP.SetLineWeight(2);
signalUP.SetDefaultColor(color.cyan);
plot signalDn = qualify && (!Trend && Q_dn) ;
signalDn.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_up);
signalDn.SetLineWeight(2);
signalDn.SetDefaultColor(color.yellow);