Scan and Alert When TTM Wave C Crosses Zero


Category:
0
0

I’m looking for a way to scan which stocks in my watchlist have their TTM Wave C (both lines) crossing the zero line, and I’d like to receive an alert when this happens if possible. Thank you in advance for your help.

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on June 16, 2018 7:30 pm
1329 views
1
Private answer

Ok, many folks don’t realize the C Wave of the TTM Wave study is made up to two separate lines. The C Wave changes color based on wether those two lines are coming closer together or further apart. You can see this demonstrated in the following post: https://www.hahn-tech.com/ans/scan-for-identifying-stocks-with-ttm_wave-c-in-cyan-color-indicating-expansion/

In fact we’ll start our code by stealing a couple of lines from the solution provided in that post:

def cWaveUpper = TTM_Wave().Wave2High;
def cWaveLower = TTM_Wave().Wave2Low;
def aboveZero = cWaveUpper > 0 and cWaveLower > 0;
plot scan = aboveZero and !aboveZero[1];

That’s all there is. First we check if both waves are greater than zero. So aboveZero is either true or false. Next we check for when the current bar has both lines above zero but the previous bar does not. Done.

Screenshot shows the result. Second screenshot shows where to access the alerts setup from the scan. If you need more details on how to create alerts from scans you can view the following video: https://www.hahn-tech.com/thinkorswim-overnight-range-scan-alert/

 

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 17, 2018 8:23 am
0

Thank you so much, Pete. You rock!

( at June 17, 2018 3:47 pm)