HEIKIN HASHI SU 2 TIME FRAME

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

    Buon pomeriggio Roberto, chiedevo un codice che estraesse per entrate long i seguenti parametri su time frame settimanale:

    a) close sopra sma 36 periodi

    b) su grafici mensili candela H Hashi verde

    c) su grafici settimanali, a chiusura candela si crea un HHashi verde per monitorare entrata long.

    Spero di essermi spiegato, grazie mille

    #214425 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    Timeframe(Weekly)
    xOpenW  = open
    xCloseW = (open + close + high + low) / 4
    if barindex > 0 then
       xOpenW = (xOpenW[1] + xCloseW[1]) / 2
    endif
    c1 = close > average[36,0](close)       //media calcolata sulla candela normale
    //c1 = xCloseW > average[36,0](xCloseW) //media calcolata sulla candela HA
    c2 = xCloseW > xOpenW                   //candela HA Verde
    //
    Timeframe(Monthly)
    xOpenM  = open
    xCloseM = (open + close + high + low) / 4
    if barindex > 0 then
       xOpenM = (xOpenM[1] + xCloseM[1]) / 2
    endif
    c3 = xCloseM > xOpenM          //candela HA Verde in corso
    //c3 = xCloseM[1] > xOpenM[1]  //candela HA Verde chiusa (cioè del mese precedente)
    //
    Timeframe(default)
    cX = c1 AND c2 AND c3
    //
    SCREENER[cX]

    ci sono le righe che iniziano con //c1 e //c3 che sono interamente commentate in modo che sia attiva la riga che le precede. Leggi i commenti e, se preferisci, puoi mettere le doppie barre iniziali alla righe precedente e toglierli da quelle per utilizzare l’alternativa.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

HEIKIN HASHI SU 2 TIME FRAME


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
massimogp @massimogp Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
2 years, 10 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 05/09/2023
Status: Active
Attachments: No files
Logo Logo
Loading...