HG Scalpius - ATR Up/Down Tick HighlightHG Scalpius - ATR Up/Down Tick Highlight
This indicator highlights ATR(14) upticks (green) and downticks (red) and has the below application:
- If a new trend closing high (low) is made on a downtick in ATR, decreasing volatility mode turns on
If you come across or think of any other useful scripts for the HG Scalpius system please comment below!
Links to 2 previous HG Scalpius scripts:
-
-
Happy trading!
Code:
study(title="Average True Range", shorttitle="ATR", overlay=false)
length = input(title="Length", defval=14, minval=1)
smoothing = input(title="Smoothing", defval="RMA", options= )
ma_function(source, length) =>
if smoothing == "RMA"
rma(source, length)
else
if smoothing == "SMA"
sma(source, length)
else
if smoothing == "EMA"
ema(source, length)
else
wma(source, length)
ATR = ma_function(tr(true), length)
c = ATR >= ATR ? color.lime : color.red
plot(ATR, title = "ATR", color=c, transp=0)
Scalpius
HG Scalpius - Previous Bar HighlightHG Scalpius - Previous Bar Highlight
This indicator highlights the 20th bar from the current bar and has the below applications for trading the HG Scalpius system:
- Determining if trend mode off switch is triggered, failing to set a new higher (lower) close in the trend with 20 bars
- Determining the highest (lowest) bar in the previous range to decide if a trade is high & tight
bars_back = input(defval=20, minval=0, title="Bars Back")
bgcolor(#9C27B0, offset=-bars_back, show_last=1)
If you come across or think of any other useful scripts for the HG Scalpius system please comment below!
Happy trading!
HG Scalpius H & SS ScanHG Scalpius H & SS Scan
This indicator highlights hammer candles and shooting star candles based on the below definitions:
Hammer = lower wick >= 2* real body and closes in top half of range
Shooting Star = upper wick >= 2*real body and closes in bottom half of range
hammer = (min(open,close)-low)>= (2*abs(open-close)) and close > (((high-low)/2)+low)
shootingStar = (high-max(open,close))>= (2*abs(open-close)) and close < (((high-low)/2)+low)