TTM Squeeze Screener help

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #96307 quote
    GeonsGeons
    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.

    Screen-Shot-2019-04-12-at-23.14.24.png Screen-Shot-2019-04-12-at-23.14.24.png
    #99404 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    GraHalGraHal
    Participant
    Master

    Above added to here Snippet Link Library

    #99496 quote
    GeonsGeons
    Participant
    Average

    Thanks a lot!

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

TTM Squeeze Screener help


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Geons @geons Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
7 years, 3 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/12/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...