OPEN-SOURCE SCRIPT

Pi Cycle Top Indicator

53
//version=5
indicator("Pi Cycle Top Indicator", shorttitle="Pi Cycle Top Indicator", overlay=true)

// Price source
xPrice = close

// Moving averages
xSMA1 = ta.sma(xPrice, 350) * 2
xSMA5 = ta.sma(xPrice, 111)

// Plot MAs
plot(xSMA1, title="MA 350 * 2", linewidth=4, color=color.green)
plot(xSMA5, title="MA 111", linewidth=4, color=color.orange)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.