Squeeze Momentum Indicator

v10.3
Squeeze Momentum Indicator

This is a derivative of John Carter’s “TTM Squeeze” volatility indicator, as discussed in his book “Mastering the Trade” (chapter 11).

Black (or white) crosses on the midline show that the market just entered a squeeze ( Bollinger Bands are with in Keltner Channel). This signifies low volatility , market preparing itself for an explosive move (up or down). Gray crosses signify “Squeeze release”.

Mr.Carter suggests waiting till the first gray after a black cross, and taking a position in the direction of the momentum (for ex., if momentum value is above zero, go long). Exit the position when the momentum changes (increase or decrease — signified by a color change). My (limited) experience with this shows, an additional indicator like ADX / WaveTrend, is needed to not miss good entry points. Also, Mr.Carter uses simple momentum indicator , while I have used a different method (linreg based) to plot the histogram.

More info:
– Book: Mastering The Trade by John F Carter

(Description from the original author of this indicator LazyBear, all credits go to him).

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Al Wikah • 04/23/2020 #

    Bonjour Nicolas,
    Merci pour votre formidable travail de codage et de partage.
    Je n’ai pas trouvé le moyen de vous contacter directement, alors je me permets de le faire à travers ce commentaire.
    Je me forme depuis peu (2 ans) à la bourse et au trading et débute dans l’apprentissage du code via PRT.
    Pas mal d’indicateurs que j’ai utilisés mais, je constate que rien ne remplace une bonne stratégie.
    Quels livres ou formations sur les stratégies de trading me recommanderiez-vous ‘(en FR & EN)?
    Merci d’avance pour le retour.

  2. Violet • 04/23/2020 #

    Nicolas and readers, a warning:

    the code in prc_squeezemomentumindicator.itf is *not* the same as the one shown in the verbose explanation.
    The .itf file contains several errors.

    • Nicolas • 04/23/2020 #

      Not at all, we have tested it and it is the right file that contains the same code as the one described in this post. I feel that you have imported another file instead? There is another squeeze momentum indicator in the library.

    • imokdesign • 04/23/2020 #

      @nicolas ,if in want to “call” this indicator, which values i have to write down?

  3. Violet • 04/23/2020 #

    Nicolas,
    I downloaded the .itf it again. This time the .itf version is different from the one I downloaded earlier this morning.
    But it still contains an error. You declare a mult variable:
    //mult = 2.0 //BB MultFactor
    and do not use it in the code.

    • Nicolas • 04/23/2020 #

      in this case, change the line 18 with:
      dev = mult * std[length](source)

  4. crolakstrading • 04/23/2020 #

    HI, Nicolas thanks very much for this indicator. Any possibility of making a screener for this to get a signal when the first grey cross and first histogram up or down close. to get a signal?

  5. rama • 04/23/2020 #

    This indicator is not picking up in automated program when the value crosses over or under zero

    • Nicolas • 04/23/2020 #

      it should

    • crolakstrading • 04/23/2020 #

      That’s great!! do you have any plans on making the screener? I did try to make the screener for this.. it’s really really complicated for me and failed big time 🙂

  6. Gianno82 • 04/23/2020 #

    Hi Nicolas, thank you very much for your suggestions.
    What does dark grey7red columns mean? It’s meaning an uptrend (dark red) and a downtrend (dark grey)…is it right?
    Thank you very much
    bye for now
    Michele

    • Nicolas • 04/23/2020 #

      yes, a reversal of the current trend.

  7. crolakstrading • 04/23/2020 #

    length = 20 //BB Length
    mult = 2.0 //BB MultFactor
    lengthKC= 20 //KC Length
    multKC = 1.5 //KC MultFactor
    useTrueRange = 1 //0=false;1=true Use TrueRange (KC)
    // — end of settings

    // Calculate BB
    source = customclose
    basis = average[length](source)
    dev = multKC * std[length](source)
    upperBB = basis + dev
    lowerBB = basis – dev

    // Calculate KC
    ma = average[lengthKC](source)
    if useTrueRange then
    irange = tr
    else
    irange = (high – low)
    endif
    rangema = average[lengthKC](irange)
    upperKC = ma + rangema * multKC
    lowerKC = ma – rangema * multKC

    sqzOn = (lowerBB > lowerKC) and (upperBB < upperKC)
    sqzOff = (lowerBB upperKC)
    noSqz = (sqzOn = 0) and (sqzOff = 0)

    data = source – (highest[lengthKC](high)+lowest[lengthKC](low)+average[lengthKC](close))/3
    val = linearregression[lengthKC](data)
    Result = 0
    if val>0 then
    if val>val[1] then
    Result = 9
    endif
    else
    if val<val[1] then
    Result = 3
    endif
    endif
    SCREENER[result] (result AS "SqueezeMI")

    • mscharstrom • 04/23/2020 #

      Didnt work for me, would love to have this as a screener!

  8. Samurai • 04/23/2020 #

    Ciao Nicolas, complimenti per gli screener che condividi con noi sono il top!
    Volevo chiederti se potevi creare uno screener che trovava le azioni con i fondamentali migliori.
    Grazie.

  9. FVtrading • 04/23/2020 #

    Good morning I’m new on the forum and on the platform. First of all thanks for the work done with this indicator. I’ve a question, how can I do a Proback test with this indicator? Many Thanks

  10. Jan • 04/23/2020 #

    Hallo FVtrading,
    if I understand you question correctly, and you want to use this indicator, do the following: download file as attached above Filename : prc_squeezemomentumindicator.itf , read eventual manual, clicking on the link above “How to import ITF files into ProRealTime platform?”, go to your PRT environment, and click on Import at the Indicators, then select the downloaded file, and it will be attached to your indicators and ready to run if selected. Success

    • FVtrading • 04/23/2020 #

      My point is that on the book Carter says that “Once the first gray dot appears after a series of black dots, I go long if the histogram is above zero”. My problem is that If I try to do the backtest on Prorealtime , I see that I should use the graphic condition but I’m not able to translate this input “first gray and Histogram below zero” in a codniton to backtest. Many thanks

  11. ran2019 • 04/23/2020 #

    Hello Nicolas, I am new for trading, Could you please tell me if TTM squzee works on Tradingview OR MT4, How do I download it, I have basic knowledge in computers, Thank You Nicolas

    • Nicolas • 04/23/2020 #

      All codes here are made to be used with Prorealtime trading platform, open a free account on http://www.prorealtime.com

  12. Xtian • 04/23/2020 #

    Bonjour Nicolas, Merci pour votre travail de codage et de partage. J’ai bien télécharger votre indicateur et fais la modification qui produisait une erreur sur la ligne 18 avec:
    dev = mult * std [longueur] (source)
    Cependant votre indicateur ne s’affiche toujours pas dans mes graphes.
    Désolé.
    Cordialement

  13. Gaby333 • 04/23/2020 #

    not working the same thing as xtian saying?

  14. fucode • 04/23/2020 #

    I need to calculate this in excel. Is it posible ? how ?

  15. JJMR • 04/23/2020 #

    HOLA NICOLAS, TENGO LA ULTIMA VERSION ACTUALIZADA DEL INDICADOR TTM SQUEEZE PRO EN LA VERSION TRADING VIEW , PUEDES TRADUCIRLA PARA PRO REAL TIME????

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+11 more likes

Related users ' posts
jobswaps Sube como trazar lineas de tendencias a tantas barras
Frankiesc interesting indicator !! Thanks for sharing!!!
robertogozzi Thank you :)
Nicolas Sorry I do not provide assistance for Tradestation code.
surfeur Bonjour, Je suis pas expert en PRT donc si qq'un peut m'expliquer un peu le code ? Par...
Nicolas src c'est bien le customclose en effet. ATR, si aucune série de données n'est spécifié, il u...
illenza
6 years ago
ribes65 Buongiorno Illenza, Il tuo indicatore è molto efficace, ma non funziona su tutte le azion...
carlvan That's a great indicator and I especially the use of colors, more or less pronounced to indi...
diegofe_2000 CORDIAL SALUDO. CUANDO REALIZO UN PROGRAMA CON ESTE INDICADOR ME SALE EL SIGUIENTE LETRE...
ALE Hello do you want to explain to me in more detail what you have to do? Please replay here:...
JJ Tec Hola Las condiciones de entrada / salida vienen en el libro de J. Carter Mastering the trad...
Pixeldd Ich bekomme beim einfügen des Indikators einen Fehler angezeigt. Was bitte muss ich genau än...
HarryPro Hello, Firtly there appears to be a typo on line 6 "lenghkc=20" should this be "lengthkc=...
Nicolas En effet merci, erreur corrigée, la variable Risk affecte désormais comme il se doit les cal...
nader003 How can we get this indicator on MT4
Nicolas You can ask for private custom coding to our programming services: https://www.prorealcode.c...
Jack86gv Ciao Nicolas, e possibile fare uno screener con questo codice ovvero vorrei sapere quando il...
Nicolas https://www.prorealcode.com/topic/screener-regressione-canale/
wharfdog Hi Nicolas, Fantastic work, I'm really grateful for this. I was wondering if it would be ...
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...
Nicolas File and code are updated.
Zasinas2000 Hi allo I am not sure I am doing it correctly, but this adds to proreal as an indicator. ...
Trimicha Hi, when I copy the code, i get an error message that LinRegPeriod is not defined. Doe...
robertogozzi
6 years ago
M-Oscillator
M-Oscillator
10
Indicators
robertogozzi Sorry for my late reply. I’ll make it and open a new topic quite soon.
swapping ah ah ! je n'avais pas vue celui-ci, excellent robert ;)
robertogozzi Thank you swapping.
Didouqc Bonjour Nicolas, Merci pour cet indicateur, encore génial! Je souhaite faire une suggest...
Exalaxe Hey, i just noticed you optimized this strategy. Could i see your new version, please?
Andrea.1981 sorry i add my code but it not enter why i dont know
Andrea.1981 this is code simply stop , and you can see another version for stop / Codice principale...
Brisvegas Thats Awesome thank you
Vinks_o_7 Thanks Vonasi !
Tarkus1954 Hi. When I add this indicator it loads it in a separate window. How do I get the indicator...
Nicolas By adding it on the price chart. Use the wrench on the left upper side of the price chart.
ervelasco Thank you for your posting! I was missing the indicator when trying to select Keltner bands ...
ALE Very Very Nice
manel Hi - Many thanks for this and your other analytical codes, stellar work - very useful ! With...
Vonasi Good idea Manel. I have posted a new version here that shows results as a percentage: https:...
robertogozzi Firstly you need to make the correct calculation, you need to swap 22 and 7. Secondly PRT's...
SB-FO Sorry, i did forget to change the 7/22, I have run it both ways. PRT is calculating PPO a...
RubberToe I believe there is an error in line 23 of the MACD version. It points to the FastP. Should...
lokbuscas is it possible to make a screener with this conditions??? thank you
achel I believe so but I leave it to Nicolas to decide if it is possible
Nicolas Please open a new topic in the screeners forum

Top