This is the script for ToS TTM_LRC
...Thank You in advance...Love this site
declare upper;
input price = close;
input length = 70;
input beginDate = 0;
input beginTime = 0;
input numDevDn1 = -1.8;
input numDevDn2 = -2.7;
input numDevUp1 = 1.8;
input numDevUp2 = 2.7;
input extLeft = No;
input extRight = Yes;
plot UB2 = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).UB2;
UB2.SetStyle(Curve.FIRM);
UB2.HideBubble();
UB2.SetDefaultColor(Color.RED);
UB2.SetLineWeight(1);
UB2.Hide();
plot UB1 = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).UB1;
UB1.SetStyle(Curve.FIRM);
UB1.HideBubble();
UB1.SetDefaultColor(Color.CYAN);
UB1.SetLineWeight(1);
UB1.Hide();
plot LR = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).LR;
LR.Hide();
plot LB1 = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).LB1;
LB1.SetStyle(Curve.FIRM);
LB1.HideBubble();
LB1.SetDefaultColor(Color.CYAN);
LB1.SetLineWeight(1);
LB1.Hide();
plot LB2 = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).LB2;
LB2.SetStyle(Curve.FIRM);
LB2.HideBubble();
LB2.SetDefaultColor(Color.RED);
LB2.SetLineWeight(1);
LB2.Hide();
def down2 = if high >= UB2 then 1 else 0;
plot DownArrowLB2 = if down2 and !down2[1] then high else Double.NaN;
DownArrowLB2.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
DownArrowLB2.SetLineWeight(3);
DownArrowLB2.SetDefaultColor(GetColor(5));
def down1 = if high >= UB1 then 1 else 0;
plot DownArrowLB1 = if down1 and !down1[1] then high else Double.NaN;
DownArrowLB1.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
DownArrowLB1.SetLineWeight(3);
DownArrowLB1.SetDefaultColor(GetColor(1));
def up2 = if low <= LB2 then 1 else 0;
plot UpArrowLB2 = if up2 and !up2[1] then low else Double.NaN;
UpArrowLB2.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
UpArrowLB2.SetLineWeight(3);
UpArrowLB2.SetDefaultColor(GetColor(5));
def up1 = if low <= LB1 then 1 else 0;
plot UpArrowLB1 = if up1 and !up1[1] then low else Double.NaN;
UpArrowLB1.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
UpArrowLB1.SetLineWeight(3);
UpArrowLB1.SetDefaultColor(GetColor(1));
...Thank You in advance...Love this site
declare upper;
input price = close;
input length = 70;
input beginDate = 0;
input beginTime = 0;
input numDevDn1 = -1.8;
input numDevDn2 = -2.7;
input numDevUp1 = 1.8;
input numDevUp2 = 2.7;
input extLeft = No;
input extRight = Yes;
plot UB2 = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).UB2;
UB2.SetStyle(Curve.FIRM);
UB2.HideBubble();
UB2.SetDefaultColor(Color.RED);
UB2.SetLineWeight(1);
UB2.Hide();
plot UB1 = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).UB1;
UB1.SetStyle(Curve.FIRM);
UB1.HideBubble();
UB1.SetDefaultColor(Color.CYAN);
UB1.SetLineWeight(1);
UB1.Hide();
plot LR = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).LR;
LR.Hide();
plot LB1 = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).LB1;
LB1.SetStyle(Curve.FIRM);
LB1.HideBubble();
LB1.SetDefaultColor(Color.CYAN);
LB1.SetLineWeight(1);
LB1.Hide();
plot LB2 = reference TTM_LRC(price, length, beginDate, beginTime, numDevDn1, numDevDn2, numDevUp1, numDevUp2, extLeft, extRight).LB2;
LB2.SetStyle(Curve.FIRM);
LB2.HideBubble();
LB2.SetDefaultColor(Color.RED);
LB2.SetLineWeight(1);
LB2.Hide();
def down2 = if high >= UB2 then 1 else 0;
plot DownArrowLB2 = if down2 and !down2[1] then high else Double.NaN;
DownArrowLB2.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
DownArrowLB2.SetLineWeight(3);
DownArrowLB2.SetDefaultColor(GetColor(5));
def down1 = if high >= UB1 then 1 else 0;
plot DownArrowLB1 = if down1 and !down1[1] then high else Double.NaN;
DownArrowLB1.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
DownArrowLB1.SetLineWeight(3);
DownArrowLB1.SetDefaultColor(GetColor(1));
def up2 = if low <= LB2 then 1 else 0;
plot UpArrowLB2 = if up2 and !up2[1] then low else Double.NaN;
UpArrowLB2.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
UpArrowLB2.SetLineWeight(3);
UpArrowLB2.SetDefaultColor(GetColor(5));
def up1 = if low <= LB1 then 1 else 0;
plot UpArrowLB1 = if up1 and !up1[1] then low else Double.NaN;
UpArrowLB1.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
UpArrowLB1.SetLineWeight(3);
UpArrowLB1.SetDefaultColor(GetColor(1));
Last edited by a moderator: