Adding my indicators to Trading View

4 months ago
16

Adding my indicators to Trading View - Petes Investing +1 Apr 25 2025
Welcome to Pete’s investing.
This video goes through the basic steps required to setup the charts yourselves, to then follow along on the daily videos.

#chartSetup #averagedown #MovingAverage #CCI #CommodityChannelIndex #divergence #TradingIdea #HeikenAshi

Become a PetesInvesting Patreon member with weekly scans on Bullish Shares across various world stock markets.
https://www.patreon.com/petesinvesting

Link to:

Trading View code:
//SMA20 offset5
study(title="sma", shorttitle="sma", overlay=true)
// Define input variable
sma_period = input(20, title="sma Period")
// Calculate CCI
cci = sma(close, sma_period)
ma5=sma(cci, 20)
ma50=ma5[5]
// Plot SMA
plot(SMA, color=color.black, linewidth=2, title="sma")
plot(ma5, color=color.red, linewidth=2, title="ma5")
plot(ma50, color=color.blue, linewidth=2, title="ma50")

//CCI150 offset6
study(title="CCI", shorttitle="CCI", overlay=true)
// Define input variable
cci_period = input(150, title="CCI Period") // 150 / 1500
// Calculate CCI
cci = cci(close, cci_period)
ma5=sma(cci, 8) // 8 / 50
ma50=ma5[6]
// Plot CCI
plot(cci, color=color.rgb(160, 236, 18), linewidth=2, title="CCI")
plot(ma5, color=color.red, linewidth=2, title="ma5")
plot(ma50, color=color.blue, linewidth=2, title="ma50")

Loading 1 comment...