![]() Rec data1 = CompoundValue(1, if (zzSave = high or zzSave = low) then data1 + 1 else data1, 0) ĭef datacount1 = (HighestAll(data1) - data1) Plot U1 = showarrows and signal > 0 and signal = 0 ĭ1.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN) Īlert(usealerts and U1, "ZIG-UP", Alert.BAR, Sound.Bell) Īlert(usealerts and D1, "ZAG-DOWN", Alert.BAR, Sound.Chimes) 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 # Suggested Tos Name: ZigZagHighLow_SupplyDemand_FibExtensions_LinusLar ![]() # Archive Name: ZigZag High Low with Supply DemandIndex and Fibs_Linus_Lar
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |