I am seeking info on how to refer to specific price data, more accurately:
Close price on a specified date
Open price on a specified date
I want to use this for referring to future days in an if-condition such as
If 'xxxxx':
get latest price(price a T1)
resultvariable = latest price - price 10 days ahead(T10)
After reading through the help section the closest I have found is the 'history' command:
history(2, "1d", "price") returns yesterday's close price and the current price.