Price Line and Visible Range High-Low
Category: market_structure
Draws a dynamic real-time price line that changes color based on the current bar direction, plus lines for visible chart highs and lows.
Formula
\\text{Price Line} = \\text{Bid}, \\text{Color} = \\begin{cases} \\text{Bull} & \\text{if } (Close_0 - Open_0) > 0 \\\\ \\text{Bear} & \\text{if } (Open_0 - Close_0) > 0 \\end{cases} \\\\ \\text{Range} = [\\min(Low_{\\text{visible}}), \\max(High_{\\text{visible}})]
Inputs
- PStatus (default: ENABLE)
- ColorType (default: COLOR_CANDLE)
- ColorBull (default: clrLime)
- ColorBear (default: clrRed)
- PriceStyle (default: STYLE_SOLID)
- PriceWidth (default: 1)
- HLStatus (default: ENABLE)
- ColorHigh (default: clrDodgerBlue)
- ColorLow (default: clrOrange)
See signal primitives and every published strategy that uses Price Line and Visible Range High-Low on WOBR StrategyVerse.