PATTERN CUP & HANDLE

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #232551 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Non ci sono errori, invece del Copia & Incolla scarica il fuile ITF ed importalo nella piattaforma.

    #232602 quote
    massimogpmassimogp
    Participant
    Senior

    Come si fa Roberto ad importarlo ? Non riesco…

    #232626 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Innanzitutto devi scaricare il file ITF che ho allegato, dopodiché vai tra gli indicatori della piattaforma e, come puoi vedere dalla foto, è sufgficiente cliccare sulla voce IMPORTA. Ti verrà chiesto di selezionare il file da importare ed è fatta.

    A quel punto l’indicatore sarà presente nella tua piattaforma.

    Importare.jpg Importare.jpg
    #232628 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Scusami se ho scritto INDICATORE, dovevo scrivere SCREENER, ma non cambia niente in quanto la modalità d’importazione di un codice è identica anche per screener e strategie.

    #233622 quote
    Alessandro FurlaniAlessandro Furlani
    Participant
    Senior

    Ciao Roberto, volevo ricordarti, quando puoi, di dare una occhiata allo screener che fece Nicolas e che ho allegato al mio primo post nel thread e modificarlo secondo quanto richiesto da me cioè:

    1. Voglio vedere solo le formazioni Cup&Handle delle ultime 40 – 50 barre
    2. Va bene anche se la formazione è in atto cioè solo Cup con la Handle in formazione
    3. Non mi interessano le Cup&Handle verificate già oltre 50 barre fà

    Grazie

    #233623 quote
    Alessandro FurlaniAlessandro Furlani
    Participant
    Senior

    Per far capire meglio ti allego una immagine con cerchiato di rosso quello che vorrei che lo screener tirasse fuori.

    Grazie

    CupHandle.png CupHandle.png
    #233845 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo, all’inizio c’è la variabile LB, dove ho indicato 40, che tu potrai variare a piacimento. Più alto è il numero, più va indietro a cercare i segnali:

    //PRC_CupFormations (beta) | screener
    //25.06.2018   Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge  -  adapted from MetaStock code version
    LB = 40        //LookBack periods
    Parameter = 1.5//Param( "parameter", 1.5, 1, 10, 0.1 )
    C = close
    FilC = ( log( C ) )
    eps = 0.0000000001
    // basic Definitions
    for i = 1 to barindex do
    if c[i]>c*parameter then
    BarsSincex=barindex-barindex[i]
    break
    endif
    next
    semicupperiod = Max( BarsSincex, 1 ) + 1
    Ptop = highest[Semicupperiod](FilC)
    Pbot = lowest[Semicupperiod](FilC)
    boxheight = abs( Ptop - Pbot ) / 5
    boxlength = Max( round( semicupperiod / 5 ), 1 )
    // Grid Nodes
    bar = max(1,barindex)
    b0 = bar - semicupperiod + 1
    b5 = bar
    b1 = Min( b0 + boxlength, b5 )
    b2 = Min( b1 + boxlength, b5 )
    b3 = Min( b2 + boxlength, b5 )
    b4 = Min( b3 + boxlength, b5 )
    L2 = Pbot + 2 * boxheight
    L3 = Pbot + 3 * boxheight
    // Directional Strength
    Diff = FilC - FilC[1]
    UpSum2 = Summation[2*boxlength]( Max( Diff, 0 ) )
    DnSum2 = Summation[2*boxlength]( Max( -Diff, 0 ) )
    DSX1 = abs( UpSum2 - DnSum2 ) / ( eps + UpSum2 + DnSum2 ) * 100
    UpSum3 = Summation[3*boxlength]( Max( Diff, 0 ) )
    DnSum3 = Summation[3*boxlength]( Max( -Diff, 0 ) )
    DSX2 = abs( UpSum3 - DnSum3 ) / ( eps + UpSum3 + DnSum3 ) * 100
    // Coditions
    if(bar>b2) then
    test1=summation[bar-b2](FilC>L3)=0
    endif
    if(bar>b4) then
    test2=summation[bar-b4](FilC>L2)=0
    endif
    isSemicup = ( semicupperiod >= 20 ) AND ( DSX1[ b5 - b2] > 25 ) AND ( DSX2 < 25 ) AND test1 and test2
    LIS = isSemicup
    screener[summation[LB](LIS)]
    Iván González thanked this post
    Il-Mio-ProScreener2.itf
Viewing 7 posts - 16 through 22 (of 22 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

PATTERN CUP & HANDLE


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
massimogp @massimogp Participant
Summary

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

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 03/20/2024
Status: Active
Attachments: 7 files
ProRealCode ProRealCode
Loading...