PROTECTED SOURCE SCRIPT

Custom Intraday Indicator with FII and Operator Activity

17
//version=5
indicator("Custom Intraday Indicator with FII and Operator Activity", overlay=true)

// Moving Averages for Entry/Exit Signals
shortMA = ta.sma(close, 9)
longMA = ta.sma(close, 21)

entrySignal = ta.crossover(shortMA, longMA)
exitSignal = ta.crossunder(shortMA, longMA)

// Open Interest and OI Change
oi = request.security(syminfo.ticker + ":OI", timeframe.period, close)
oiChange = oi - ta.valuewhen(oi != na, oi, 1)

// FII and Operator Activity (Assuming data is available from a custom source)
fiiBuying = request.security("FII_BUYING_DATA", timeframe.period, close)
fiiSelling = request.security("FII_SELLING_DATA", timeframe.period, close)
operatorBuying = request.security("OPERATOR_BUYING_DATA", timeframe.period, close)
operatorSelling = request.security("OPERATOR_SELLING_DATA", timeframe.period, close)

// Support and Resistance Levels
pivotHigh = ta.highest(high, 10)
pivotLow = ta.lowest(low, 10)

// Plotting
plot(shortMA, color=color.blue, title="Short MA")
plot(longMA, color=color.red, title="Long MA")
plotshape(entrySignal, style=shape.triangleup, location=location.belowbar, color=color.green, title="Entry Signal")
plotshape(exitSignal, style=shape.triangledown, location=location.abovebar, color=color.red, title="Exit Signal")
plot(pivotHigh, color=color.orange, style=plot.style_line, title="Pivot High")
plot(pivotLow, color=color.purple, style=plot.style_line, title="Pivot Low")

// Display OI and OI Change
plot(oi, color=color.blue, title="Open Interest")
plot(oiChange, color=color.fuchsia, title="OI Change")

// Display FII and Operator Activity
plot(fiiBuying, color=color.green, title="FII Buying")
plot(fiiSelling, color=color.red, title="FII Selling")
plot(operatorBuying, color=color.blue, title="Operator Buying")
plot(operatorSelling, color=color.purple, title="Operator Selling")

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.