Remove " $ ":
def ADDprice = close(symbol="$ADD");
def ADDvalue = close(symbol="$ADD");
Thats wild, never would have figured that that out
I ended up with this.
#SpyingonSPY
#Contains price point/value of "Mag 7, $ADSPD, $TIKUS, and $VOLSPD wether or not price is above or below previous bar close. depending on which chart is open will dictate the bar used in calculation. (Some data points wont start calculating until market open and stop at market close)
declare upper;
#input symbol = "$TIKUS";
#input symbol = "$ADSPD";
#input symbol2 = "MSFT";
#input symbol3 = "AAPL";
#input symbol4 = "AMZN";
#input symbol5 = "NVDA";
#input symbol6 = "GOOGL";
#input symbol7 = "META";
#input symbol8 = "TSLA";
#stating that if "current price for each symbol" is greater than "previous bar close" it is considered a "increase in price", and will be used in the price label coding to decide if the color will be red or green
def MyTIKUSvalue = close(symbol = "$TIKUS");
def isIncreasing8 = MyTIKUSvalue > MyTIKUSvalue[1];
def MyADSPDvalue = close(symbol = "$ADSPD");
def isIncreasing = MyADSPDvalue > MyADSPDvalue[1];
def MyVOLSPDvalue = close(symbol = "$VOLSPD");
def isIncreasing9 = MyVOLSPDvalue > MyVOLSPDvalue[1];
def MyMSFTprice = close(symbol = "MSFT");
def isIncreasing2 = MyMSFTprice > MyMSFTprice[1];
def MyAAPLprice = close(symbol = "AAPL");
def isIncreasing3 = MyAAPLprice > MyAAPLprice[1];
def MyAMZNprice = close(symbol = "AMZN");
def isIncreasing4 = MyAMZNprice > MyAMZNprice[1];
def MyNVDAprice = close(symbol = "NVDA");
def isIncreasing5 = MyNVDAprice > MyNVDAprice[1];
def MyGOOGLprice = close(symbol = "GOOGL");
def isIncreasing6 = MyGOOGLprice > MyGOOGLprice[1];
def MyMETAprice = close(symbol = "META");
def isIncreasing7 = MyMETAprice > MyMETAprice[1];
def MyTSLAprice = close(symbol = "TSLA");
def isIncreasing1 = MyTSLAprice > MyTSLAprice[1];
# Add a label with dynamic color based on previous bar close
#indicators
AddLabel(yes, "$TIKUS: " + MyTIKUSvalue, if isIncreasing8 then Color.GREEN else Color.RED);
AddLabel(yes, "$ADSPD: " + MyADSPDvalue, if isIncreasing then Color.GREEN else Color.RED);
AddLabel(yes, "$VOLSPD: " + MyVOLSPDvalue, if isIncreasing9 then Color.GREEN else Color.RED);
#stock symbols
AddLabel(yes, "MSFT: " + MyMSFTprice, if isIncreasing2 then Color.GREEN else Color.RED);
AddLabel(yes, "AAPL: " + MyAAPLprice, if isIncreasing3 then Color.GREEN else Color.RED);
AddLabel(yes, "AMZN: " + MyAMZNprice, if isIncreasing4 then Color.GREEN else Color.RED);
AddLabel(yes, "NVDA: " + MyNVDAprice, if isIncreasing5 then Color.GREEN else Color.RED);
AddLabel(yes, "GOOGL: " + MyGOOGLprice, if isIncreasing6 then Color.GREEN else Color.RED);
AddLabel(yes, "META: " + MyMETAprice, if isIncreasing7 then Color.GREEN else Color.RED);
AddLabel(yes, "TSLA: " + MyTSLAprice, if isIncreasing1 then Color.GREEN else Color.RED);