Hi
Trying to use this script in the studies for giving me option premium on the chart.
target is to export the data to excel
Need help as below is not working.
Thanks
def bidPrice = close(priceType = "BID");
def askPrice = close(priceType = "ASK");
def premium = if bidPrice > 0 and askPrice > 0 then (bidPrice + askPrice) / 2 else Double.NaN;plot OptionPremium = premium;OptionPremium.SetDefaultColor(Color.WHITE);
Trying to use this script in the studies for giving me option premium on the chart.
target is to export the data to excel
Need help as below is not working.
Thanks
def bidPrice = close(priceType = "BID");
def askPrice = close(priceType = "ASK");
def premium = if bidPrice > 0 and askPrice > 0 then (bidPrice + askPrice) / 2 else Double.NaN;plot OptionPremium = premium;OptionPremium.SetDefaultColor(Color.WHITE);