OPEN-SOURCE SCRIPT

Inside Day Detector

45
//version=5
indicator("Inside Day Detector", overlay=true)

// Yesterday's High & Low
prevHigh = high[1]
prevLow = low[1]

// Inside Day condition
insideDay = high < prevHigh and low > prevLow

// Plot marker
plotshape(insideDay, title="Inside Day", style=shape.triangleup, location=location.abovebar, size=size.small)

// Alert
alertcondition(insideDay, title="Inside Day Alert", message="Inside Day detected on {{ticker}}")

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.