Андрей
Администратор
- Регистрация
- 28.01.14
- Сообщения
- 355
- Реакции
- 163
Андрей не предоставил никакой дополнительной информации.
Индикатор Persons_BlueGold_R1V1:
Работу индикатора в реальном времени не проверял. Смотрите,тестируйте.
Код:
# Persons_BlueGold_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.27.12:30
# John Persons described this use of pivots so i wrote this script
# http://www.youtube.com/watch?v=Hch-c4KIPwg&feature=youtu.be
declare upper;
input showarrows = yes;
input showLines = yes;
def space = average(BodyHeight(),55)/2;
def PP0 = (high[0] + low[0] + close[0]) / 3;
def PP1 = (high[1] + low[1] + close[1]) / 3;
def PP2 = (high[2] + low[2] + close[2]) / 3;
def PP3 = (high[3] + low[3] + close[3]) / 3;
def ppAVE3 = (PP1+PP2+PP3)/3;
Plot gold = if !showLines then double.nan else ppAVE3;
Plot Blue = if !showLines then double.nan else pp0;
gold.SetDefaultColor(color.yellow);
Blue.SetDefaultColor(color.cyan);
def SignalUp = Crossover(yes, blue > gold );
def StatusUp = if SignalUp == SignalUp[1] then 0 else 1;
Plot UpArrow = if !showArrows then double.nan else If StatusUp && signalUp then Low - space else double.nan;
UpArrow.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
UpArrow.SetDefaultColor(Color.Green);
UpArrow.SetLineWeight(3);
def SignalDn = Crossover(yes, blue < gold);
def StatusDn = if SignalDn == SignalDn[1] then 0 else 1;
Plot DnArrow = if !showArrows then double.nan else If StatusDn && signalDn then High + space else double.nan;
DnArrow.SetPaintingStrategy(PaintingStrategy.ARROW_Down);
DnArrow.SetDefaultColor(Color.Red);
DnArrow.SetLineWeight(3);