# EminiAddict.com # slashgw $TICK chart "inspired" by the Shadowtrader Iceberg $TICK ;) # 20221214 # ____ ____ _____ # ..'''' | .'. ..'''' | | | ~. | |`````````, .-~ ~. # .'' | .''```. .'' |_________| |____.'_ |______ |'''|''''' : # ..' | .' `. ..' | | | ~. | | `. : _____ # ....'' |_______ .' `. ....'' | | |_______.' |___________ | `. `-._____.' # # input thresholdLvl = 1000; input setLineThickness = 3; input hidePrice = Yes; input enableAD = Yes; HidePricePlot(hidePrice); plot upper = thresholdLvl; upper.SetDefaultColor(Color.WHITE); upper.SetLineWeight(setLineThickness); plot lower = -thresholdLvl; lower.SetDefaultColor(Color.WHITE); lower.SetLineWeight(setLineThickness); plot zero = 0; zero.SetDefaultColor(Color.YELLOW); zero.SetLineWeight(setLineThickness-2); plot plus = if high > 0 then high else 0; plus.SetDefaultColor(Color.GREEN); plus.SetLineWeight(setLineThickness); plot minus = if low < 0 then low else 0; minus.SetDefaultColor(Color.RED); minus.SetLineWeight(setLineThickness); AddCloud(plus, 0, Color.GREEN); AddCloud(0, minus, Color.RED); AddLabel(!IsNaN(close), "$TICK: " + close, if close > 0 then Color.LIGHT_GREEN else Color.LIGHT_RED); input price = FundamentalType.CLOSE; input aggregationPeriod = AggregationPeriod.MIN; input length = 1; input displace = 0; input showOnlyLastPeriod = no; plot ADSPDC; if enableAD && showOnlyLastPeriod && !IsNaN(close("$ADSPDC",period = aggregationPeriod)[-1]) { ADSPDC = Double.NaN; } else { ADSPDC = If(enableAD, close("$ADSPDC"), Double.NaN); } ADSPDC.SetDefaultColor(Color.WHITE); ADSPDC.SetPaintingStrategy(PaintingStrategy.LINE); ADSPDC.SetLineWeight(setLineThickness); AddLabel(enableAD && ADSPDC > +375, "A/D mode: BTD", Color.LIGHT_GREEN); AddLabel(enableAD && ADSPDC < -375, "A/D mode: STR", Color.LIGHT_RED);