Stagionalità mensile e giornaliera

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #222550 quote
    Ciccarelli Franco
    Participant
    Junior

    Vorrei usare il Back test di PRT per rilevare con un codice la stagionalità mensile o giornaliera.

    Non so se la cosa è fattibile , io ho provato a farlo con il codice allegato, ma non capisco se i risultati dei trade in definitiva rappresentano la stagionalità.

    DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate

    uscita = mese + 1
    if uscita > 12 then
    uscita = 1
    endif

    if month = mese then
    buy 1 contracts at market
    endif
    if month = uscita then
    sell at market
    endif

    Grazie

    #222559 quote
    robertogozzi
    Moderator
    Master

    Si, perché entra sempre in quel mese ed esce sempre il mese successivo, quindi il risultato è relativo solo a quel mese per tutti gli anni del backtest.

    #222586 quote
    Ciccarelli Franco
    Participant
    Junior

    Ho messo variabile “mese” e il back test mi da tutti e dodici mesi. Quello che mi chiedo è se la cosa possa rappresentare una stagionalità.

    Grazie

    #222592 quote
    robertogozzi
    Moderator
    Master

    Si, certo. Il primo valore in alto ti dice qual’è il mese più performante, e poi gli altri a scendere.

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

Stagionalità mensile e giornaliera


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 10/17/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...