Home Article Perfect Swing Dot Levels High Low- Live Perfect Swing Dot Levels High Low- Live Software Technique Web Technique All Computer Language and Computer Language Practice Computer Educa April 21, 2026 0 Comments Share: Facebook Twitter Google+ Pinterest Whatsapp TREDING //@version=5 indicator("Perfect Swing Dot Levels", overlay=true) // ==== INPUT ==== left = input.int(6, "Swing high strength") right = input.int(6, "Swing low strength") swingHighSrc = input.source(high, "Swing high source") swingLowSrc = input.source(low, "Swing low source") showTable = input.bool(true, "Show Info Table") tablePos = input.string("Left Side", "Table Position", options = ["Left Side","Center","Right Side"]) // ==== PIVOTS ==== ph = ta.pivothigh(swingHighSrc, left, right) pl = ta.pivotlow(swingLowSrc, left, right) // ==== LINES ==== var line resLine = na var line supLine = na // ==== LOGIC ==== // Resistance line (exact pivot high start) if not na(ph) line.delete(resLine) resLine := line.new( x1 = bar_index[right], y1 = high[right], x2 = bar_index, y2 = high[right], extend = extend.right, color = color.red, width = 2 ) // Support line (exact pivot low start) if not na(pl) line.delete(supLine) supLine := line.new( x1 = bar_index[right], y1 = low[right], x2 = bar_index, y2 = low[right], extend = extend.right, color = color.aqua, width = 2 ) Copy Copied Text:
No comments