Indicatore e chiusura MTF

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #237290 quote
    davidatordavidator
    Participant
    Junior

    Ciao,

    Vorrei stabilire delle condizioni o indicatori da timeframe superiori, ad esempio quello giornaliero, ed utilizzarli in timeframe inferiori.

    Esempio : Chiusura Daily > MA5 Daily, è utilizzare questa condizione su timeframe inferiori. E’ possibile?

    Grazie
    #237325 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ecco il codice, che utilizza il supporto MTF (Multiple Time Frames) ed usa diversi timeframes:

    //definire la MA5 sul timeframe Giornaliero
    Timeframe(Daily)
    DailyMA5  = average[5,0](close)
    //
    //definire la MA5 sul timeframe Orario
    Timeframe(1 Hour)
    HourlyMA5 = average[5,0](close)
    //
    //usare il Timeframe di default (quello che è sul grafico)
    //che in questo caso non deve essere maggiore di 1 ora
    Timeframe(default)
    //entra a mercato solo se il prezzo è al di sopra delle due medie
    IF (close > DailyMA5) AND (close > HourlyMA5) AND Not OnMarket THEN
       BUY 1 CONTRACT AT MARKET
       SET STOP   %LOSS   0.5
       SET TARGET %PROFIT 1
    ENDIF

    puoi trovare molti dettagli, istruzioni ed esempi se cerchi sul forum MTF.

    davidator thanked this post
    #237334 quote
    davidatordavidator
    Participant
    Junior

    Grazie

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

Indicatore e chiusura MTF


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
davidator @davidator Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by davidatordavidator
2 years ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 09/07/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...