TicTop Indicator
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Donniee_Brasco

//@version=5
indicator("Stocks Percent Change Monitor", overlay=false)

stock1 = input.symbol(defval="AAPL", title="Symbol 1")
stock2 = input.symbol(defval="MSFT", title="Symbol 2")
stock3 = input.symbol(defval="AMZN", title="Symbol 3")
stock4 = input.symbol(defval="TSLA", title="Symbol 4")
stock5 = input.symbol(defval="GOOGL", title="Symbol 5")
stock6 = input.symbol(defval="NVDA", title="Symbol 6")

stock1_pctchange = ((request.security(stock1, "D", close)/request.security(stock1, "D", close[1]))-1)*100
stock2_pctchange = ((request.security(stock2, "D", close)/request.security(stock2, "D", close[1]))-1)*100
stock3_pctchange = ((request.security(stock3, "D", close)/request.security(stock3, "D", close[1]))-1)*100
stock4_pctchange = ((request.security(stock4, "D", close)/request.security(stock4, "D", close[1]))-1)*100
stock5_pctchange = ((request.security(stock5, "D", close)/request.security(stock5, "D", close[1]))-1)*100
stock6_pctchange = ((request.security(stock6, "D", close)/request.security(stock6, "D", close[1]))-1)*100


plot(math.avg(stock1_pctchange,stock2_pctchange,stock3_pctchange,stock4_pctchange,stock5_pctchange,stock6_pctchange), style=plot.style_columns)


