come posso limitare il numero delle posizioni aperte a mercato?

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

    Buongiorno a tutti , volevo chiedere un aiuto poichè ho riscontrato la seguente difficoltà:

    impostata la strategia, quando si verificano le condizioni di entrata long o short, il sistema mi apre più posizioni, come posso limitare il numero massimo di posizioni aperte a mercato per andare in backtest? c’è un codice che posso inserire in fase di creazione del sistema di trading?  grazie ,

    David

    #86411 quote
    Nicolas
    Keymaster
    Master

    Aggiungi questa riga nella parte superiore del tuo codice:

    defparam cumulateorders=false

    Impedirà al sistema di aggiungere più di 1 ordine allo stesso tempo e per la stessa strategia.

    davidx78 thanked this post
    #86447 quote
    davidx78
    Participant
    New

    ok grazie Nicolas provo a vedere come si comporta  🙂

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

come posso limitare il numero delle posizioni aperte a mercato?


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
davidx78 @davidx78 Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/06/2018
Status: Active
Attachments: No files
Logo Logo
Loading...