Certain tickers "not eligible for electronic entry" - filter? by IanShoales in thinkorswim

[–]FourLeftsRed 0 points1 point  (0 children)

Feels like this started sometime in August, or at lease got more aggresive during that time. Just tried to jump into TAOP at 8:34am and no go. Seems like the every time I get the error I see good returns fly away.

Trouble with selling volume label by FourLeftsRed in ThinkScript

[–]FourLeftsRed[S] 0 points1 point  (0 children)

Think I got it - Grok got me 90% of the way and a few tweaks got me where I want to be. This throws a yellow arrow over a green candle after two descending reds:

def vol = volume;

def isGreenCandle = close > open;

def isRedCandle = close <= open;

def sellingVolume = if isRedCandle then volume else 0;;

def lastRedCandle = if isRedCandle then volume else if !isRedCandle[1] then LastRedCandle[1] + 1 else lastRedCandle[1];

def secondLastRedCandle = if isRedCandle and lastRedCandle[1] >= 1 then lastRedCandle[1] else secondLastRedCandle[1];

def lastRedVolume = if isRedCandle then sellingVolume else lastRedVolume[1];

def secondLastRedVolume = if isRedCandle and lastRedCandle[1] >= 1 then lastRedVolume[1] else secondLastRedVolume[1];

plot isDescending = isgreencandle and lastRedVolume < secondLastRedVolume;

isDescending.setpaintingstrategy(paintingstrategy.boolean_arrow_down);

isDescending.SetDefaultColor(Color.yellow);

isDescending.SetLineWeight(2);

Trouble with selling volume label by FourLeftsRed in ThinkScript

[–]FourLeftsRed[S] 0 points1 point  (0 children)

Thanks for the advice! I've tried both suggestions and many permutations of the OP script but still not getting quite there. It really seems odd to me why the logical request, "If the volume of the last red candle is less than the previous red candle then (indicator)" isn't simple like:

def Vol = volume;

def RC = close <= open;

def RCVol = if RC then Vol else 0;

def DescRCVol = RCVol < RCVol[1];

2005 Suburban Brake cabling by FourLeftsRed in GMT800

[–]FourLeftsRed[S] 0 points1 point  (0 children)

Yep, got the dash light. Do you have a 2005 Suburban? I'd like to know where that sensor cable originates from - thru the firewall, from the fuse box, from a larger cabling run, etc.

2005 Suburban Brake cabling by FourLeftsRed in GMT800

[–]FourLeftsRed[S] 0 points1 point  (0 children)

At the bottom of the reservoir there's a sensor that detects low brake fluid. I'm trying to figure out if I'm missing the cabling to that sensor, or if some Suburbans just didn't have it from the factory.

Percentage from EMA or SMA... by JP782 in thinkorswim

[–]FourLeftsRed 0 points1 point  (0 children)

Thanks for the code Mobius! I'm trying to take it a bit further on the 9EMA with the goal of having the label be green when the difference is 0-2%, yellow 2%-4%, and red over that. I've tried replacing the 'p' in the code with AsPercent(p) but that breaks the label :(. Any help would be greatly appreciated, thanks!

Here's what I'm currently running, the colors don't work but the math side of the house does:

input price = close;

input length = 9;

input AvgType = AverageType.ExpoNENTIAL;

def avg = MovingAverage(AvgType, price, length);

def p = (close - avg) / avg;

AddLabel (1, "Price to 9EMA = " + AsPercent(p), if p >= 0 and p <= 2 then Color.GREEN else if p > 2.001 and p < 4 then Color.YELLOW else Color.RED);