got it working to my satisfaction for now.
##### Smart Tick
##### Made By Signet
##### Version 1.0
##### 11/22/2018
##### Revised 12/19/2018
#
https://www.dummies.com/personal-fi.../how-to-use-the-tick-and-trin-in-day-trading/
##
http://tradingsmart.net/indicators/tick-trin-label/
#Hint: TICK and TRIN are two indicators that measure the general sentiment of the market. They can be used both to determine near term market movement. Theses indicators are not well know by traders. TRIN is a calculator, its formula is ((Advancing issues/declining issues) / (advancing volume/declining volume)), it's a contrarian indicator to detect overbought and oversold levels in the market.
#How to day trade with these indicators? TICK value between +200 and -300 indicate a neutral market sentiment. It became bullish when its value became higher than +200 and bearish when it is lower -300. Very bullish when its value is higher than +500 and very bearish when it is lower than -500. Note that when TICK is higher than +1000 or lower than -1000, then a reversal of the market will probably happen soon. Generally a rising TRIN is bearish and a falling TRIN is bullish. A TRIN value higher than 1 is bearish while bullish when it is below 0.9
#declare hide_on_daily;
declare lower;
def NeutralMarket_Top = +200;
#Hint NeutralMarket_Top: TICK value between +200 and -300 indicate a neutral market sentiment.
def NeutralMarket_Bottom = -300;
#Hint NeutralMarket_Top: TICK value between +200 and -300 indicate a neutral market sentiment.
def BullishValue = +500;
#Hint BullishValue: Very bullish when its value is higher than +500.
def BearishValue = -500;
#Hint BullishValue: Very bearish when it is lower than -500.
def Upper_Xtreme_Limit = 999;
#Hint Upper_Xtreme_Limit: when TICK is higher than +1000 or lower than -1000, then a reversal of the market will probably happen soon.
def Lower_Xtreme_Limit = -999;
#Hint Lower_Xtreme_Limit: when TICK is higher than +1000 or lower than -1000, then a reversal of the market will probably happen soon.
def Upper_Caution_Limit = 600;
#Hint Upper_Caution_Limit: Causes Label to change color when $TICK reaches this number.
def Lower_Caution_Limit = -600;
#Hint Lower_Caution_Limit: Causes Label to change color when $TICK reaches this number.
Plot Tick = close("$TICK");
plot Trin = close("$TRINND");
Trin.AssignValueColor(if Trin < 1 then Color.UPTICK else Color.DOWNTICK);
plot Upper_Xtreme = if tick > Upper_Xtreme_Limit then Upper_Xtreme_Limit else Double.NaN;
Upper_Xtreme.AssignValueColor(Color.WHITE);
plot Upper_Limit = if tick > Upper_Caution_Limit then Upper_Caution_Limit else Double.NaN;
Upper_Limit.AssignValueColor(Color.RED);
plot Bullishbottom = NeutralMarket_Top;
Bullishbottom.AssignValueColor(Color.GREEN);
plot BullishTop = BullishValue;
BullishTop.AssignValueColor(Color.DARK_GREEN);
plot BearishBottom = NeutralMarket_Bottom;
BearishBottom.AssignValueColor(Color.RED);
plot BearishTop = BearishValue;
BearishTop.AssignValueColor(Color.DARK_RED);
plot Lower_Limit = if tick < Lower_Caution_Limit then Lower_Caution_Limit else Double.NaN ;
Lower_Limit.AssignValueColor(Color.RED);
plot Lower_Xtreme = if tick < Lower_Xtreme_Limit then Lower_Xtreme_Limit else Double.NaN ;
Lower_Xtreme.AssignValueColor(Color.WHITE);
Tick.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Tick.DefineColor("Positive", Color.UPTICK);
Tick.DefineColor("Negative", Color.DOWNTICK);
tick.DefineColor("Extreme", Color.CYAN);
tick.DefineColor("neutral", Color.GRAY);
tick.DefineColor("bullish", Color.BLUE);
tick.DefineColor("bearish", Color.DARK_ORANGE);
Tick.AssignValueColor(
if (Tick >= NeutralMarket_Bottom and tick <= NeutralMarket_Top) then Tick.Color("neutral") else
if (Tick > NeutralMarket_Top and tick < Upper_Caution_Limit) then Tick.Color("Positive") else
if (Tick < NeutralMarket_Bottom and tick > Lower_Caution_Limit) then Tick.Color("Negative") else
if (Tick > Upper_Caution_Limit and tick < Upper_Xtreme_Limit) then Tick.Color("Bullish") else
if (Tick < Lower_Caution_Limit and tick > Lower_Xtreme_Limit) then Tick.Color("bearish") else
if (tick > Upper_Xtreme_Limit or tick < Lower_Xtreme_Limit) then Tick.Color("Extreme")
else Tick.Color("neutral"));
#A trin of less than 1.00 usually means that a lot of buyers are acting strongly. A trin above 1.00 indicates that the sellers are acting more strongly.
input SHOW_trin = YES;
AddLabel(SHOW_trin, Concat("$TRINND: ", Trin) + if Trin > 1 then " : Sellers Market" else if Trin < 1 then " : Buyers Market" else "", if Trin <= 1 then Color.GREEN else Color.RED);
#If the tick is a positive number, that’s good: The market as a whole has a lot of buying interest. A positive tick shows that most people in the market have a positive perspective right now. Extremes show a catalyst event, and this label will stay gray unless an extreme tick is present.
input SHOW_tick = YES;
AddLabel (SHOW_tick, Concat("$TICK: ", Tick) + if
(Tick < NeutralMarket_Top and
Tick > NeutralMarket_Bottom) then
" Neutral Market" else if
(Tick > NeutralMarket_Top and
Tick < BullishValue ) then
" Bullish Market" else if
(Tick > BullishValue and
Tick < Upper_Caution_Limit) then
" Bullish Extreme" else if
(Tick > Upper_Xtreme_Limit) then
" CAUTION Upper Extreme" else if
(Tick < NeutralMarket_Bottom and
Tick > BearishValue ) then
" Bearish Position" else if
(Tick < BearishValue and
Tick > Lower_Caution_Limit) then
" Bearish Extreme" else if
(Tick < Lower_Xtreme_Limit) then
" CAUTION Lower Extreme" else "", if
(Tick > 0 and
Tick < NeutralMarket_Top ) then
Color.DARK_GREEN else if
(Tick > NeutralMarket_Top and
Tick < BullishValue ) then
Color.GREEN else if
(Tick > BullishValue and
Tick < Upper_Caution_Limit) then
Color.LIGHT_GREEN else if
(Tick > Upper_Caution_Limit and
Tick < Upper_Xtreme_Limit) then
Color.CYAN else if
(Tick > Upper_Xtreme_Limit) then
Color.RED else if
(Tick < 0 and
Tick > NeutralMarket_Bottom) then
Color.DARK_RED else if
(Tick < NeutralMarket_Bottom and
Tick > BearishValue) then
Color.PINK else if
(Tick < BearishValue and
Tick > Lower_Caution_Limit) then
Color.DARK_ORANGE else if
(Tick < Lower_Caution_Limit and
Tick > Lower_Xtreme_Limit) then
Color.RED else if
(Tick < Lower_Xtreme_Limit) then
Color.RED else Color.GRAY);