Cribbage
Member
Hey everyone - I searched a few other label error posts but didn't find what I'm looking for. I'm getting the following error from trying to attach a label using the following label:
Code:
AddLabel(ShowSellVol6, "6Bar Sell %: " + SellVol6, (if SellVol6 > 51 then Color.RED else if SellVol6 < 49 then Color.GREEN else Color.ORANGE));
Error:
Expected double at 121:1
No such variable: ShowSellVol6 at 121:10
Expected double at 121:1
No such variable: ShowSellVol6 at 121:10
If I delete the "Show" from "ShowSellVol6" so it reads as:
AddLabel(SellVol6, "6Bar Sell %: " + SellVol6, (if SellVol6 > 51 then Color.RED else if SellVol6 < 49 then Color.GREEN else Color.ORANGE));
Then the problem is I see the label about 75% of the time, but other times its missing and I can't discern for what reason.
Appreciate any help here as usual!
Code:
AddLabel(ShowSellVol6, "6Bar Sell %: " + SellVol6, (if SellVol6 > 51 then Color.RED else if SellVol6 < 49 then Color.GREEN else Color.ORANGE));
Error:
Expected double at 121:1
No such variable: ShowSellVol6 at 121:10
Expected double at 121:1
No such variable: ShowSellVol6 at 121:10
If I delete the "Show" from "ShowSellVol6" so it reads as:
AddLabel(SellVol6, "6Bar Sell %: " + SellVol6, (if SellVol6 > 51 then Color.RED else if SellVol6 < 49 then Color.GREEN else Color.ORANGE));
Then the problem is I see the label about 75% of the time, but other times its missing and I can't discern for what reason.
Appreciate any help here as usual!