I cannot figure out how to get the current stock price in the custom option column. I need the same number for all strikes to do further calculations.
I assume that it's returning the stock price when the last option was traded at a row strike, and not the current stock price.
Even hardcoded symbol string is returning different values.
I'm stuck...
Code:
close(GetUnderlyingSymbol(), priceType = PriceType.LAST)
I assume that it's returning the stock price when the last option was traded at a row strike, and not the current stock price.
Even hardcoded symbol string is returning different values.
Code:
input symbolVZ = "VZ";
plot lastPrice = close(symbolVZ);
I'm stuck...