How would you adjust this code if you wanted to see the histogram before the first Cyan histogram? I will be running it with the following code:The following scan code can be used to identify symbols with the first or second Cyan histogram bar... Simply remove or add the comment "#" to/from the appropriate plot line... The code can be further modified to suit your needs...
def hist = reference TTM_Squeeze.Histogram; # First Cyan Histogram Bar plot scan = if hist > 0 and hist < 0 and hist < hist then 1 else Double.NaN; # Second Cyan Histogram Bar #plot scan = if hist > 0 and hist > 0 and hist < 0 then 1 else Double.NaN;
def inSqueeze = TTM_Squeeze().SqueezeAlert == 0;
def result = sum(insqueeze,5) == 5;