I currently have a code that shows the current price and it displays on the chart. Is there a way to add a code to it so that every time the price changes the background changes that color?
For example
If the price drops the background would turn to RED
Current Code
Any help would be greatly appreciated
For example
If the price drops the background would turn to RED
- If the price goes up the background color would change to Green?
- And if the price was neutral it would be gray.
Current Code
Code:
input limit = 0.09;
def price = close(priceType = PriceType.LAST);
AddLabel(yes, Concat("PRICE: ", price), Color.LIGHT_GREEN);
Any help would be greatly appreciated