#*********************************************************************************************** #TopTradeTools.com TOP TICK HEATMAP DT #Copyright (c) 2017-2020 TopTradeTools.com. All rights reserved. #Programmer Contact: Support@TopTradeTools.com #Versions: #1.0 - 06/16/20: First version #***********************************************************************************************} declare lower; input LookbackST = 21; input LookbackLT = 145; script LookBackFunc { input src = 0; input lb = 10; input nb = 10; def _value = fold i1 = 0 to nb with h=0 while h<=lb do if h= Getvalue(Var2,bar1) then 1 else -1; def VarLT = if Var2 >= Getvalue(Var2,bar2) then 1 else -1; def VarSum = VarST + VarLT; plot Heatmap = if isNaN(Var1) then double.NaN else 1; Heatmap.AssignValueColor(if VarSum==2 then GlobalColor("UpColor") else if VarSum==-2 then GlobalColor("DownColor") else GlobalColor("NeutralColor")); Heatmap.SetPaintingStrategy(PaintingStrategy.HISTOGRAM); Heatmap.SetLineWeight(5);