TTM Wave scan for second yellow bar after 2 or more red bars (histogram)


Category:
0
0

Hi Pete,

You were able to code a scan finding the second yellow bar after 2 or more red bars in the TTM Squeeze histogram.

Post of reference: https://www.hahn-tech.com/ans/ttm-squeeze-scan-for-second-yellow-bar-after-2-or-more-red-bars/

I tried to swap out the TTM Squeeze designation from the code for TTM Wave but I got some errors.

Is a similar scan for the TTM Wave histogram possible?

Thanks

Marked as spam
Posted by (Questions: 8, Answers: 10)
Asked on February 18, 2019 11:58 am
523 views
0
Private answer

I think this should do it.

def hist = TTM_Wave().Wave1;
def histRed = hist < 0 and hist < hist[1];
def histYellow = hist < 0 and hist > hist[1];
plot scan = histYellow and histYellow[1] and histRed[2] and histRed[3];

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 27, 2019 11:33 am