Swing high swing low indicator for thinkorswim

broken image
broken image

Plot zzp = if zzd 0 then Color.GREEN else if isUp and chghigh 0 then Color.GREEN else if !isUp and chglow 0 then Color.GREEN else if isUp and chghigh 0 then Color.GREEN else if !isUp and chglow 0 then Color.GREEN else if isUp and chghigh 0 then Color.GREEN else if !isUp and chglow 0 and low > zzL then if signal = 0 then -1 else signal else signal, 0) Rec isConf = AbsValue(chg) >= reversalAmount or (IsNaN(GetValue(zz, 1)) and GetValue(isConf, 1)) #TOS version ZigZagHighLow modified in part by Linus' and Lar's codeĭef zz = ZigZagHighLow('price h' = high, 'price l' = low, 'percentage reversal' = percentAmount, 'absolute reversal' = revAmount, 'atr length' =atrlength, 'atr reversal' = atrreversal) ĭef reversalAmount = if (close * percentamount / 100) > Max(revAmount = 0

broken image

# Suggested Tos Name: ZigZagHighLow_SupplyDemand_FibExtensions_LinusLar # Archive Name: ZigZag High Low with Supply DemandIndex and Fibs_Linus_Lar

broken image