crscrs85
Member
After loading this as a indicator, it wont show me the value of $PCALL unless im on $PCALL, $PCN, $PCAR, ect. Anytime I type in a stock ticker or futures ticker it gives me a N/A. Anyone know why?
def pcallRatio = Round(SimpleMovingAvg(close(symbol="$PCALL"),10),2);
def pcallOverlyBearish = if pcallratio >= 1 then 1 else 0;
def pcallOverlyBullish = if pcallratio <= .75 then 1 else 0;
AddLabel(yes, "$PCALL: "+pcallRatio, if pcallOverlyBearish then color.green else if pcalloverlyBullish then color.red else color.gray);
def pcallRatio = Round(SimpleMovingAvg(close(symbol="$PCALL"),10),2);
def pcallOverlyBearish = if pcallratio >= 1 then 1 else 0;
def pcallOverlyBullish = if pcallratio <= .75 then 1 else 0;
AddLabel(yes, "$PCALL: "+pcallRatio, if pcallOverlyBearish then color.green else if pcalloverlyBullish then color.red else color.gray);