As of today, I can't get this script to work...it returns "NaN". This script being:
plot pop = Round("number" = ((ask + bid) / 2 - close[1]) / close[1] * 100, "numberOfDigits" = 2);
pop.assignvalueColor(if pop >0 then color.green else color.red);
In my attempt to discover why it wasn't working, I found that I couldn't even get the following scripts to work:
plot pop = (ask + bid);
or
plot pop = ask;
I found that anything containing either "bid" or "ask" would return "NaN" on the column.
Is this script still working for you?
Or has something changed in TOS thinkscript and how it deals with "ask" and "bid"?
plot pop = Round("number" = ((ask + bid) / 2 - close[1]) / close[1] * 100, "numberOfDigits" = 2);
pop.assignvalueColor(if pop >0 then color.green else color.red);
In my attempt to discover why it wasn't working, I found that I couldn't even get the following scripts to work:
plot pop = (ask + bid);
or
plot pop = ask;
I found that anything containing either "bid" or "ask" would return "NaN" on the column.
Is this script still working for you?
Or has something changed in TOS thinkscript and how it deals with "ask" and "bid"?
Last edited by a moderator: