barrilete
New member
Can someone tell me what I'm doing wrong or how I can get this to work? It's a watchlist column script to calculate percentage of option price as compared to underlying.
The errors are:
Never mind! I realized my error and here is the corrected script:
def price = close();
def symb = GetUnderlyingSymbol();
def underPrice = close(symb);
plot pct = price / underPrice;
The errors are:
Expected class com.devexperts.tos.thinkscript.data.SymbolType at 3:18
Expected double at 2:5
Expected class com.devexperts.tos.thinkscript.data.SymbolType at 3:18
Never mind! I realized my error and here is the corrected script:
Code:
def price = close();
def underPrice = close(GetUnderlyingSymbol());
addLabel(yes, asPercent( price / underPrice));
Last edited: