NexusFi: Find Your Edge


Home Menu

 





Tilson T3 Moving Average


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one samiotis with 3 posts (3 thanks)
    2. looks_two rmejia with 2 posts (10 thanks)
    3. looks_3 jdd jr with 2 posts (0 thanks)
    4. looks_4 futures777 with 1 posts (0 thanks)
    1. trending_up 11,312 views
    2. thumb_up 13 thanks given
    3. group 5 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

Tilson T3 Moving Average

  #1 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59

Thank you rmejia

Follow me on Twitter Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
32 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #2 (permalink)
 
rmejia's Avatar
 rmejia 
Puerto Rico
 
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441

 
Code
#hint:<b>T3 Adaptive Smoothing Indicator</b>\nThis study was adopted from the Technical Analysis of Stocks and Comodities article "Smoothing Techniques for More Accurate Signals" by Tim Tillson, Jan 1998 (V16:1 pp33-37)
#hint: indicator: Defines the level of filtering to occur, default is 3
#hint: volumeFactor: Adjusts the amplitude of the feedback added back into the base filter

declare upper;

input indicator    = { T1, T2, default T3, T4, T5, T6 };
input price        = close;
input period       = 10;
input volumeFactor = 0.70;
input displace = 0;
input sign         = { default plus, minus };
input Label        = No;
input paintbars    = No;


script _gd {
  input _price  = close;
  input _period = 10;
  input _v      = 0.70;
  input _sign   = { default plus, minus };
  def _ema      = ExpAverage( _price, _period );
  plot _gd      = ( _ema * ( 1 + _v ) ) - ( ExpAverage( _ema, _period ) * _v );
}

def _t1 = _gd( price[-displace], period, volumeFactor, sign );
def _t2 = _gd( _t1,   period, volumeFactor, sign );
def _t3 = _gd( _t2,   period, volumeFactor, sign );
def _t4 = _gd( _t3,   period, volumeFactor, sign );
def _t5 = _gd( _t4,   period, volumeFactor, sign );
def _t6 = _gd( _t5,   period, volumeFactor, sign );

plot T3;
switch( indicator ) {
  case T1:
    T3 = _t1;
  case T2:
    T3 = _t2;
  case T3:
    T3 = _t3;
  case T4:
    T3 = _t4;
  case T5:
    T3 = _t5;
  case T6:
    T3 = _t6;
}

T3.AssignValueColor(if T3 > T3[1] then Color.Green else Color.Red);
T3.HideBubble();

AddLabel(Label, if T3 > T3[1] then "  A  " else "  A  ", if T3 > T3[1] then Color.Green else Color.Red);

assignPriceColor(if paintbars and T3 <T3[1] then color.dark_red else if paintbars and T3 > T3[1] then color.dark_green else color.CURRENT);

Reply With Quote
  #3 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59



rmejia View Post
 
Code
#hint:<b>T3 Adaptive Smoothing Indicator</b>\nThis study was adopted from the Technical Analysis of Stocks and Comodities article "Smoothing Techniques for More Accurate Signals" by Tim Tillson, Jan 1998 (V16:1 pp33-37)
#hint: indicator: Defines the level of filtering to occur, default is 3
#hint: volumeFactor: Adjusts the amplitude of the feedback added back into the base filter

declare upper;

input indicator    = { T1, T2, default T3, T4, T5, T6 };
input price        = close;
input period       = 10;
input volumeFactor = 0.70;
input displace = 0;
input sign         = { default plus, minus };
input Label        = No;
input paintbars    = No;


script _gd {
  input _price  = close;
  input _period = 10;
  input _v      = 0.70;
  input _sign   = { default plus, minus };
  def _ema      = ExpAverage( _price, _period );
  plot _gd      = ( _ema * ( 1 + _v ) ) - ( ExpAverage( _ema, _period ) * _v );
}

def _t1 = _gd( price[-displace], period, volumeFactor, sign );
def _t2 = _gd( _t1,   period, volumeFactor, sign );
def _t3 = _gd( _t2,   period, volumeFactor, sign );
def _t4 = _gd( _t3,   period, volumeFactor, sign );
def _t5 = _gd( _t4,   period, volumeFactor, sign );
def _t6 = _gd( _t5,   period, volumeFactor, sign );

plot T3;
switch( indicator ) {
  case T1:
    T3 = _t1;
  case T2:
    T3 = _t2;
  case T3:
    T3 = _t3;
  case T4:
    T3 = _t4;
  case T5:
    T3 = _t5;
  case T6:
    T3 = _t6;
}

T3.AssignValueColor(if T3 > T3[1] then Color.Green else Color.Red);
T3.HideBubble();

AddLabel(Label, if T3 > T3[1] then "  A  " else "  A  ", if T3 > T3[1] then Color.Green else Color.Red);

assignPriceColor(if paintbars and T3 <T3[1] then color.dark_red else if paintbars and T3 > T3[1] then color.dark_green else color.CURRENT);


Hey thanks again armejia but I get this -- Invalid statement: assignPriceColor at 55:1--

assignPriceColor(if paintbars and T3 T3[1] then color.dark_gthen color.dark_green else color.CURRENT);

Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
rmejia's Avatar
 rmejia 
Puerto Rico
 
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441

Seems like the copy paste didn't get all of that last bit of code; try moving the mouse to the right to keep selecting that line or here it is separated:

assignPriceColor(if paintbars and T3 <T3[1] then color.dark_red else if paintbars and T3 > T3[1] then color.dark_green else color.CURRENT);

Reply With Quote
Thanked by:
  #5 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59


rmejia View Post
Seems like the copy paste didn't get all of that last bit of code; try moving the mouse to the right to keep selecting that line or here it is separated:

assignPriceColor(if paintbars and T3 <T3[1] then color.dark_red else if paintbars and T3 > T3[1] then color.dark_green else color.CURRENT);

Yes you right I got it now its on and running I like this indicator is smooth and on target......

Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
jdd jr
Winston-Salem, NC USA
 
Posts: 10 since Feb 2018
Thanks Given: 6
Thanks Received: 0

First time posting. Big fan of Tim Tillson t3 indicator. Have used it since the early 2000's.

Reply With Quote
  #7 (permalink)
jdd jr
Winston-Salem, NC USA
 
Posts: 10 since Feb 2018
Thanks Given: 6
Thanks Received: 0

This is Tim Tillson's Ilrs - integral of linear regression slope -formula for Metastock.

periods:=Input("periods?",2,63,11);
size:=LastValue(Cum(1));
start:=LastValue(Ref(Mov(P,periods,S),periods-size));
Cum(LinRegSlope(P,periods))+start;

New to Thinkscript would appreciate ny help.

Thanks,

jdd jr

Reply With Quote
  #8 (permalink)
futures777
popayan + cauca/colombia
 
Posts: 4 since Aug 2020
Thanks Given: 0
Thanks Received: 0


rmejia View Post
 
Code
#hint:<b>T3 Adaptive Smoothing Indicator</b>\nThis study was adopted from the Technical Analysis of Stocks and Comodities article "Smoothing Techniques for More Accurate Signals" by Tim Tillson, Jan 1998 (V16:1 pp33-37)
#hint: indicator: Defines the level of filtering to occur, default is 3
#hint: volumeFactor: Adjusts the amplitude of the feedback added back into the base filter

declare upper;

input indicator    = { T1, T2, default T3, T4, T5, T6 };
input price        = close;
input period       = 10;
input volumeFactor = 0.70;
input displace = 0;
input sign         = { default plus, minus };
input Label        = No;
input paintbars    = No;


script _gd {
  input _price  = close;
  input _period = 10;
  input _v      = 0.70;
  input _sign   = { default plus, minus };
  def _ema      = ExpAverage( _price, _period );
  plot _gd      = ( _ema * ( 1 + _v ) ) - ( ExpAverage( _ema, _period ) * _v );
}

def _t1 = _gd( price[-displace], period, volumeFactor, sign );
def _t2 = _gd( _t1,   period, volumeFactor, sign );
def _t3 = _gd( _t2,   period, volumeFactor, sign );
def _t4 = _gd( _t3,   period, volumeFactor, sign );
def _t5 = _gd( _t4,   period, volumeFactor, sign );
def _t6 = _gd( _t5,   period, volumeFactor, sign );

plot T3;
switch( indicator ) {
  case T1:
    T3 = _t1;
  case T2:
    T3 = _t2;
  case T3:
    T3 = _t3;
  case T4:
    T3 = _t4;
  case T5:
    T3 = _t5;
  case T6:
    T3 = _t6;
}

T3.AssignValueColor(if T3 > T3[1] then Color.Green else Color.Red);
T3.HideBubble();

AddLabel(Label, if T3 > T3[1] then "  A  " else "  A  ", if T3 > T3[1] then Color.Green else Color.Red);

assignPriceColor(if paintbars and T3 <T3[1] then color.dark_red else if paintbars and T3 > T3[1] then color.dark_green else color.CURRENT);

===
hi there, Please, How do I scan stocks using this study?, Please, Does anyone have the code to scan stocks in TOS or the code to use it in the watchlist?

Reply With Quote




Last Updated on October 14, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts