STRATEGIA SULL’INDICE DAX

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #223181 quote
    PICCI64PICCI64
    Participant
    New

    Buongiorno,

    vorrei implementare una strategia molto semplice sull’indice DAX che mostra degli andamenti settimanali abbastanza ripetitivi.

    In pratica il martedì e il giovedì vorrei aprile una posizione long in apertura di sessione con chiusura alla fine della sessione stessa,

    mentre il venerdì vorrei aprire una posizione short con chiusura a fine sessione.

    Ringrazio in anticipo chi mi può aiutare a implementare questa strategia.

    Marcello Piccinini

    #223185 quote
    MauroProMauroPro
    Participant
    Veteran

    // DAX CFD timeframe 30m
    defParam cumulateOrders = false
    positionSize = 1
    //————————–
    if not onMarket and (dayOfWeek = 2 or dayOfWeek = 4) and time = 090000 then
    buy positionSize contracts at market
    endif
    if longOnMarket and time = 173000 then
    sell positionSize contracts at market
    endif

    if not onMarket and dayOfWeek = 5 and time = 090000 then
    sellShort positionSize contracts at market
    endif
    if shortOnMarket and time = 173000 then
    exitShort positionSize contracts at market
    endif

    #232600 quote
    sflsfl
    Participant
    Average

    Ciao

    non credo che il punto di partenzia sia buono, se vedi gli ultimi 4 anni del DAX il comportamento statistico non è quello di dice tu, vedi immagien allegata.

    Se prendi l’ultimo anno, tutti i giorni sono buoni e non modella niente allo stesso modo.

    ciao

    Screenshot-2024-05-13-alle-12.53.07.png Screenshot-2024-05-13-alle-12.53.07.png
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

STRATEGIA SULL’INDICE DAX


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
PICCI64 @picci64 Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 11/03/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...