Stagionalità mensile e giornaliera

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

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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 FrancoCiccarelli Franco
    Participant
    Senior

    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

    x-3.jpg x-3.jpg
Viewing 4 posts - 1 through 4 (of 4 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

Stagionalità mensile e giornaliera


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

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

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