HEDGING POSIZIONI LONG E SHORT

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #97272 quote
    Lamberto
    Participant
    Average

    Buonasera,

    sto testando un codice la cui logica è semplice, si basa su accumulo di posizioni crescenti in direzione contrapposta.

    nonostante l’istruzione DEFPARAM CUMULATEORDERS= TRUE, il sistema chiude, per esempio, la posizione long e apre 2 posizioni short , mentre nelle mie intenzioni sarebbe opportuno mantenere anche la posizione long contemporaneamente alla posizione short.

    l’uscita di tutte le posizioni è al break out di uno dei due livelli identificati al primo trade.

    ad ogni modo allego il codice in modo che sia chiaro, almeno spero, il meccanismo e anche la progressione delle posizioni.

    in attesa di un Vostro gradito contributo

    Lamberto

    griglia1.itf
    #97274 quote
    robertogozzi
    Moderator
    Master

    Non è possibile aprire posizioni contrarie.

    Se sei LONG e dai l’istruzione SELLSHORT, fa uno stop & reverse, prima chiude la posizione Long e poi ne apre una SHORT.

    Lamberto thanked this post
    #97275 quote
    Lamberto
    Participant
    Average

    Roberto buonasera,

    Grazie per la risposta, vedrò come aggirare l’ostacolo.

    Buona serata

    Lamberto

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

HEDGING POSIZIONI LONG E SHORT


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Lamberto @lamberto Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Lamberto
6 years, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/27/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...