Due candele Haiken Hashi

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #66001 quote
    GiusGius
    Participant
    New

    Ho trovato questo codice per rilevare inversioni di candele Hiken Hashi (exmpl LONG) in un codice screener

    //---------------------------------------------------
    // CONDIZIONE ADESSO
    //---------------------------------------------------
    
    KClose = (Open+High+Low+Close)/4
    
    if(barindex>2) then
    KOpen = (KOpen[1] + kClose[1])/2
    endif
    
    c2 = KClose>KOpen AND KClose[1]<KOpen[1]
    
    SCREENER [c2]

     

     

    Vorrei pero’ rilevare una situazione con 2 candele Hiken Hashi dello stesso colore a seguito di un’inversione…. per esempio….

    c’era un trand negativo e una serie di candele ROSSE ma ieri e’ comparsa una prima candela (Heiken) verde.

    Chiedevo al sistema di rilevare il pattern SOLO E SOLTANTO se a quella candela verde fosse seguita una seconda (DI CONFERMA) quest’oggi.

     

    Ho provato a chiedere al sistema di trovarmi le sitazioni con candela verde a IERI in questo modo

     

    //---------------------------------------------------
    // CONDIZIONE IERI
    //---------------------------------------------------
    
    xClose = (Open+High+Low+Close)/4
    
    if(barindex>2) then
    xOpen = (xOpen[1] + xClose[1])/2
    endif
    
    c1 = xClose[1]>xOpen AND xClose[2]<xOpen[2]
    
    SCREENER [c1]

     

     

    E sembrerebbe funzionare …

     

    Ma quando provo ad unire i due codici in questo modo

     

    //---------------------------------------------------
    // CONDIZIONE OGGI
    //---------------------------------------------------
    
    KClose = (Open+High+Low+Close)/4
    
    if(barindex>2) then
    KOpen = (KOpen[1] + kClose[1])/2
    endif
    
    c2 = KClose>KOpen AND KClose[1]<KOpen[1]
    
    //---------------------------------------------------
    // CONDIZIONE IERI
    //---------------------------------------------------
    
    xClose = (Open+High+Low+Close)/4
    
    if(barindex>2) then
    xOpen = (xOpen[1] + xClose[1])/2
    endif
    
    c1 = xClose[1]>xOpen AND xClose[2]<xOpen[2]
    
    //--------------------------------------------
    
    SCREENER [c1 and c2]

     

    Purtroppo i due codici NON funzionano…. girano cioe’ SOLO SINGOLARMENTE…. se li faccio girare con la funzione “SCREENER (c1 AND c2)” non mi rilevano nulla…..

    Qualcuno puoì aiutarmi ?

    Grazie !

    #66064 quote
    NicolasNicolas
    Keymaster
    Legend
Viewing 2 posts - 1 through 2 (of 2 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

Due candele Haiken Hashi


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
Gius @gius Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
8 years, 6 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 03/21/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...