tangoline_v1.2
Download scriptThe TangoLine v1.2 is a technical analysis tool designed to help traders visualize market structure by identifying significant price channels and potential trend reversals. Instead of simply following every minor price movement, this script focuses on "significant" shifts in momentum to filter out market noise.
Core Logic Overview
The logic operates through a three-step process: identifying price boundaries, detecting reversal points, and constructing dynamic channels.
1. Dynamic Price Range Identification
The script first scans the historical price data over a user-defined period (the Channel Period). It looks for the highest highs and lowest lows within this window. By constantly monitoring these boundaries, the tool establishes the "playground" where current price action is occurring.
2. Reversal Detection (Filtering Noise)
One of the most important features of this script is its ability to distinguish between a minor fluctuation and a genuine trend change. It uses a Noise Filter setting to do this:
- The script looks backward in time to find "Turning Points"—specific bars where the price stopped moving in one direction and began moving in another.
- To ensure these points are valid, it checks if the price movement exceeds a specific threshold (the Noise Filter). If a price drop or rise is too small, the script ignores it as "noise."
- If a move is significant enough, it marks that point as either a Top or a Bottom.
3. Channel Construction and Visuals
Once a valid turning point is identified, the script builds the visual elements you see on your chart:
- Upper and Lower Channels: The tool calculates the range between the current significant high and low. It then draws dashed lines to represent these boundaries.
- The Tango Line: A solid line is drawn in the center of this range, representing the "median" or equilibrium of the current trend.
- Visual Cues (Arrows): The script identifies the exact moment a reversal is confirmed and places visual markers (arrows) on the chart. These serve as alerts to indicate where the price has broken out of its previous behavior and entered a new structural phase.
Summary for Traders
Essentially, this tool automates the "trend following" process. Rather than having to manually guess where a trend starts or ends, the TangoLine calculates these boundaries automatically. It defines the current trading range, highlights the center path (Tango Line), and provides visual signals when the market undergoes a significant structural shift, allowing you to see the "big picture" of price action more clearly.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | T a n g o L i n e _ v 1 . 2 . m q 4 |
/ / | T a n g o L i n e v 1 . 2 C o p y r i g h t 2 0 1 5 , f x b o r g |
/ / | h t t p : / / f x b o r g - l a b o . h a t e b l o . j p / |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "