TTM Squeeze Indicator

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #21988 quote
    Wester
    Participant
    New

    Hi,

    Anyone know where I can get hold of the TTM Squeeze indicator (John Carter) for ProRealTime?

    Thanks!

    #22022 quote
    Nicolas
    Keymaster
    Master

    Hello, this is what I found on an old french forums topics elsewhere on the web.

    Don’t know if it is correct though:

    // John F. Carter Squeeze
    
    //////////////////////////////////////////////////////////////////
    // Période des Moyennes Mobiles (défaut = 20)
    nPer = 20
    
    // Coefficient des Canaux de Keltner (défaut = 1.5)
    fKeltner = 1.5
    
    // Coefficient d'écartement des Bandes de Bollinger (défaut = 2)
    fBB = 2.0
    
    // Canaux de Keltner
    aKeltnerUp = Average[nPer](TypicalPrice) + (fKeltner * AverageTrueRange[nPer])
    aKeltnerDw = Average[nPer](TypicalPrice) - (fKeltner * AverageTrueRange[nPer])
    
    // Bandes de Bollinger
    aBollingerUp = Average[nPer](Close) + (fBB * STD[nPer](Close))
    aBollingerDw = Average[nPer](Close) - (fBB * STD[nPer](Close))
    
    // L'indicateur vaut 1 sauf si les Bandes de Bollinger sont
    // comprises entre Canaux de Keltner
    nSqueeze = 1
    If (aBollingerUp <= aKeltnerUp) and (aBollingerDw >= aKeltnerDw) Then
    nSqueeze = -1
    EndIf
    
    // Delta of price from Donchian mid line
    DonchianDelta = LinearRegression[nPer] ( Close - ( (Highest[nPer](High) + Lowest[nPer](Low)) / 2 + ExponentialAverage[nPer](Close))/2 )
    
    // Conseil : afficher DonchianDelta sous forme d'histogramme et
    // nSqueeze sous forme de Points d'épaisseur maximum
    Return DonchianDelta As "DonchianDelta", nSqueeze As "CarterSqueeze"

    I remember having coded something similar myself, but I don’t remember for who and when, I think it was a private job for one of the customer of the programming services, so I can’t share it.

    #22993 quote
    cfta
    Participant
    Senior

    Hi Wester,

    I think this is what you are looking for;

    Grid orders with one combined stop loss and limit, can it be done?

    #34112 quote
    Nicolas
    Keymaster
    Master

    For information, I coded the TTM Squeeze indicator for prorealtime, this is the link for it into the library.

    #164182 quote
    loaman
    Participant
    New

    I can’t find the correct indicator for TMM Squeeze. I have it on think or swim but I like the Prorealtime charts better can you help? The one I found posted here is not correct and does not prodice the same output at the TOS indicator.

     

    Thanks

    #164200 quote
    Nicolas
    Keymaster
    Master

    Sorry but why do you think it is not the correct one? What are the noticeable differences please?

    #164260 quote
    loaman
    Participant
    New

    Hi and thank your for your help. I have Think or Swim and the TTM Squeeze is is a pre-built indicator option. The results do not match. The attached screen grab is from just now and reflects the QQQ. TOS is showing the green dots and PRT is reporting red dots for the same time frame. Obviously they can’t both be correct.

    TTM.jpg TTM.jpg
    #164327 quote
    Nicolas
    Keymaster
    Master

    I can remember a color inversion some talked about, let me check please.

    #164329 quote
    Nicolas
    Keymaster
    Master

    Indeed, in the code you should replace that lines:

    if(sqzOn=1) then
     scolorR = 0
     scolorG = 255
    else
     scolorR = 255
     scolorG = 0
    ENDIF

    with:

    if(sqzOn=1) then
     scolorR = 255
     scolorG = 0
    else
     scolorR = 0
     scolorG = 255
    ENDIF
    #164373 quote
    loaman
    Participant
    New

    Thank for for your time. Unfortunately there is still a discrepancy. This is Goldman look at October. The indicator firers 3 times on the Think or Swim TTM indicator (see attached).

    Best,

    ttm2.jpg ttm2.jpg
    #164485 quote
    Nicolas
    Keymaster
    Master

    I’d like to help, but unless you can tell me why the dots are red and not green, I can’t help more 🙁

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.

TTM Squeeze Indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Wester @wester Participant
Summary

This topic contains 10 replies,
has 2 voices, and was last updated by Nicolas
4 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/21/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...