uso di diversi time frame

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #230266 quote
    Gabriele Battista
    Participant
    Senior

    vorrei inserire in un back test una condizione che dipende da un time frame daily (ATR a 5 gg) e poi avere un ingresso su TF intraday e vorrei evitare di cambiare la riga del codice interno quando cambio il time frame (esempio da m3 a m10) è possibile?

    #230278 quote
    robertogozzi
    Moderator
    Legend

    Eccolo:

    Timeframe(Daily)
    ATRgiornaliero = AverageTrueRange[5](close)
    //
    Timeframe(default)
    IF mieCondizioniLong THEN
       BUY at Market
    ELSIF mieCondizioniShort THEN
       SELLSHORT at Market
    ENDIF

    puoi cambiare il timeframe come preferisci, mettendo sul grafico quello a 3 minuti o 1 minuto, ecc…)

    Gabriele Battista thanked this post
    #230279 quote
    Gabriele Battista
    Participant
    Senior

    grazie mi mancava: Timeframe(default)!

Viewing 3 posts - 1 through 3 (of 3 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

uso di diversi time frame


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Gabriele Battista
2 years, 5 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/22/2024
Status: Active
Attachments: No files
Logo Logo
Loading...