TTM Squeeze Screener help

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #96307 quote
    Geons
    Participant
    Average

    Hi to all!
    I have read on this forum about TTM Squeeze indicator and I find it very useful. I check also the respectively Screeners, but don’t find what I am looking for. I play with the codes, but don’t get the result that I want. Please check the image below for details.
    I want to screen:
    1. When the histogram is above zero line and appears the first blue bar (red arrow)
    2. When the histogram is below zero line and appears the first yellow bar (green arrow)
    3. When the previous bar of histogram is below zero and the current bar above zero line. (black arrow)

    Any help would be much appreciated.

    #99404 quote
    robertogozzi
    Moderator
    Master

    Try this:

    //PRC_TTM Squeeze for PRT v10.3| indicator - 27.04.2017 - Nicolas @ www.prorealcode.com
    //
    lengthKC  = 20
    value     = (Highest[lengthKC](high)+Lowest[lengthKC](low)+average[lengthKC](close))/3
    val       = linearregression[lengthKC](close-value)
    BlueBar   = 0
    YellowBar = 0
    Crossing  = 0
    if val>0 and val<val[1] then    //BLUE
       BlueBar   = 1
    elsif val<0 and val>val[1] then //YELLOW
       YellowBar = 1
    endif
    Crossing = Val CROSSES OVER 0
    Result   = (BlueBar  AND Not BlueBar[1]) OR (YellowBar AND Not YellowBar[1]) OR Crossing
    SCREENER[Result] (Val AS "Histo")
    Geons thanked this post
    #99409 quote
    GraHal
    Participant
    Master

    Above added to here

    Snippet Link Library

    #99496 quote
    Geons
    Participant
    Average

    Thanks a lot!

    #99803 quote
    robertogozzi
    Moderator
    Master
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

TTM Squeeze Screener help


ProScreener support

New Reply
Author
author-avatar
Geons @geons Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by robertogozzi
6 years, 8 months ago.

Topic Details
Forum: ProScreener support
Language: English
Started: 04/12/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...