♥ 0 |
HI! today i realized a TTM squeeze scan i was using was alerting me when the move had already occurred, especially when TOS seems to have about a 3 min delay. Because of this, i’m trying to make a scanner that would let me know the squeeze is starting, before the move occurs. to increase the chances on predicting in which direction price will go when it comes out the squeeze, i would like for the C wave to be above the zero line (added the code for that) and to be cyan in color(don’t know how to do this) when it is picked up on scanners rather than blue. extra: can I also add a line or 2 of code for bullish A and B waves when i want more specific results in scan? i dont know if its necessary. i plan on using this scan for 5 min charts. here’s what i have so far: def MidLine = -50; #def Value = MovingAverage(averageType, close, fastLength) – MovingAverage(averageType, close, slowLength); #def Diff = Value – Avg; #def d = (BolKet && Will50) && (Value >= 0); #plot out = d && d[1] #—————- def alertCount = if squeezeDots[1] == 1 and squeezeDots == 0 then 1 else if squeezeDots == 0 then alertCount[1] + 1 else 0; def redrange = alertCount > 0 and alertCount < 4; def cWaveUpper = TTM_Wave().Wave2High; def upperWaveGreaterThan = cWaveUpper > 2; def lowerWaveLessThan = cWaveLower < 2; plot scan= bolket and upperWaveGreaterThan and redrange ;
Marked as spam
|
Please log in to post questions.
Yes, we have covered this in a previous post. Be sure to make use of the search box. As this forum content expands that search box will become an evermore valuable tool for your research.