CANDELE HEIKIN HASHI DAILY LONG

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #180897 quote
    massimogp
    Participant
    Senior

    Buona sera Roberto, chiedevo uno screener che mi estraesse i titoli azionari che sopra la sma a  200 giorni avessero la prima candela heikin hashi che diventa verde cosi da monitorare entrate long e uno che si comportasse uguale ma con il close sotto la sma a 200 giorni sempre per entrate long. Grazie mille.

    #180946 quote
    robertogozzi
    Moderator
    Master

    Eccoli:

    // HA - definizione Heikin-Ashi
    //
    xOpen = open
    xClose     = (open + close + high + low) / 4
       if barindex > 0 then
    xOpen  = (xOpen[1] + xClose[1]) / 2
    endif
    //xLow     = min(low,min(xClose,xOpen))
    //xHigh    = max(high,max(xClose,xOpen))
    xBullish   = xClose > xOpen
    xBearish   = xClose < xOpen
    xChange    = (xBearish AND xBullish[1]) or (xBearish[1] AND xBullish)
    //
    Sma200     = average[200,0](xClose) //Sma200 = average[200,0](close)
    //
    If barindex = 0 then
       Flag = 0
       c1   = 0
       c2   = 0
    Endif
    If c2 AND Flag then
       Flag = 0
       c1   = 0
       c2   = 0
    Endif
    c1 = xClose CROSSES OVER  Sma200   //c1 = close CROSSES OVER  Sma200
    c2 = xClose CROSSES UNDER Sma200   //c2 = close CROSSES UNDER Sma200
    If c1 then
       Flag = 1
    Endif
    If c2 then
       Flag = 0
    Endif
    c3 = xBullish AND xChange
    Screener[c3 AND Flag]
    // HA - definizione Heikin-Ashi
    //
    xOpen = open
    xClose     = (open + close + high + low) / 4
    if barindex > 0 then
       xOpen  = (xOpen[1] + xClose[1]) / 2
    endif
    //xLow     = min(low,min(xClose,xOpen))
    //xHigh    = max(high,max(xClose,xOpen))
    xBullish   = xClose > xOpen
    xBearish   = xClose < xOpen
    xChange    = (xBearish AND xBullish[1]) or (xBearish[1] AND xBullish)
    //
    Sma200     = average[200,0](xClose) //Sma200 = average[200,0](close)
    //
    If barindex = 0 then
       Flag = 0
       c1   = 0
       c2   = 0
    Endif
    If c2 AND Flag then
       Flag = 0
       c1   = 0
       c2   = 0
    Endif
    c1 = xClose CROSSES UNDER Sma200   //c1 = close CROSSES UNDER Sma200
    c2 = xClose CROSSES OVER  Sma200   //c2 = close CROSSES OVER  Sma200
    If c1 then
       Flag = 1
    Endif
    If c2 then
       Flag = 0
    Endif
    c3 = xBullish AND xChange
    Screener[c3 AND Flag]

    ho sempre usato le candele HA, anche per gli indicatori. Se vuoi usare le normali candele giapponesi (solo per gli indicatori), utilizza l’istruzione che c’è nei commenti delle righe 14, 26 e 27 (al posto di quella attuale).

    #182154 quote
    massimogp
    Participant
    Senior

    Buona sera Roberto, scusa ma non mi estrae nessun titolo per il long , mi puoi rifare lo screener per un entrata long con la 1a candela verde daily Heikin HaSHI che si forma? Poi proverò io ad inserire altri parametri, grazie mille.

    #182210 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    // HA - definizione Heikin-Ashi
    //
    Timeframe(Daily)
    xOpen = open
    xClose     = (open + close + high + low) / 4
       if barindex > 0 then
    xOpen  = (xOpen[1] + xClose[1]) / 2
    endif
    //xLow     = min(low,min(xClose,xOpen))
    //xHigh    = max(high,max(xClose,xOpen))
    xBullish   = xClose > xOpen
    xBearish   = xClose < xOpen
    xChange    = (xBearish AND xBullish[1]) or (xBearish[1] AND xBullish)
    c1         = xBullish AND xChange
    Screener[c1]
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

CANDELE HEIKIN HASHI DAILY LONG


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
massimogp @massimogp Participant
Summary

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

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 11/03/2021
Status: Active
Attachments: No files
Logo Logo
Loading...