Verificare chiusura della prima candela successiva su diverso timeframe

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

    Buonasera a tutti, oggi vi chiedo se sapete aiutarmi a risolvere questo problema:

    Sto sviluppando un trading system che ha un pattern sul grafico Daily, ma successivamente deve scendere sul grafico a 4 ore per avere la conferma del setup. Faccio un esempio (riporto lo screenshot):

    • Sul daily ho il setup ribassista (una barra rialzista e una ribassista)
    • A questo punto devo verificare se la prima candela H4 del giorno successivo chiude sotto il minimo del giorno prima

    Come faccio a eseguire questa verifica su H4?

    Vi ringrazio in anticipo per la risposta

    #195558 quote
    robertogozzi
    Moderator
    Master

    Prova questo:

    Timeframe(Daily,UpdateOnClose)
    DateID      = OpenDate
    RialzistaD  = close > open
    RibassistaD = close < open
    Pattern     = RialzistaD[1] AND RibassistaD
    IF Pattern THEN
       Minimo = low
    ELSE
       Minimo = 0
    ENDIF
    //
    Timeframe(4h,default)
    Ribassista4 = close < open
    //
    Timeframe(default)
    IF Pattern AND (DateID <> DateID[2]) AND Ribassista4 AND (close < Minimo) AND Not OnMarket THEN
       SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    SET TARGET pPROFIT 300
    SET STOP   pLOSS   100
    //graphonprice minimo
    //graph Pattern
    //graph DateID <> DateID[2]
    abmilanesi thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Verificare chiusura della prima candela successiva su diverso timeframe


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
abmilanesi @abmilanesi Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 06/14/2022
Status: Active
Attachments: 1 files
Logo Logo
Loading...