Posizione short aperte senza codice

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #183143 quote
    elfunambolo
    Participant
    New

    Salve,

    ho un problema con questa strategia. Vengono aperte posizioni SHORT (come potete vedere dalla lista dei trade che ti allego) anche se il codice prevede solo apertura di posizioni LONG. Ho sbagliato qualcosa nel codice?

    Grazie,
    Giovanni
    DEFPARAM CumulateOrders = False
    
    
    IF NOT OnMarket AND (High > DHigh(1) + TICKSIZE) AND ADX[14] < 20 THEN
    BUY 1 SHARES AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni long
    If LongOnMarket AND CurrentHour = 23 THEN
    SELL AT MARKET
    ENDIF
    
    
    // Stop loss e take profit: Inserisci qui i tuoi stop di protezione e profit target
    SET STOP $LOSS 70
    SET TARGET $PROFIT 52

     

    Schermata-2021-12-10-alle-19.34.46.png Schermata-2021-12-10-alle-19.34.46.png
    #183148 quote
    robertogozzi
    Moderator
    Master

    L’ho provato su EurUsd mini, 5 minuti, 10K unità e mi apre operazioni solo long.

    x.jpg x.jpg
    #183171 quote
    elfunambolo
    Participant
    New

    Quindi come mai a me ha aperto anche posizioni short?

    #183181 quote
    robertogozzi
    Moderator
    Master

    Su quale strumento e time frame lo hai usato?

    #183185 quote
    elfunambolo
    Participant
    New

    Micro E-mini DJ30 TF: 1 ora

    Schermata-2021-12-12-alle-10.55.15.png Schermata-2021-12-12-alle-10.55.15.png
    #183191 quote
    robertogozzi
    Moderator
    Master

    Domani verificherò.

    #183226 quote
    elfunambolo
    Participant
    New

    Ok grazie

    #183238 quote
    robertogozzi
    Moderator
    Master

    Per favore non inserire documenti/file all’interno del post, in quanto può rallentare il caricamento delle pagine. Grazie 🙂

    A me continua ad aprire solo posizioni LONG, come in effetti deve fare. Verifica che il codice postato sia quello che effettivamente hai usato.

    Se il problema continua, premi Ctrl+M dalla piattaforma per inviare un richiesta di assistenza, indicando il problema.

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

Posizione short aperte senza codice


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/11/2021
Status: Active
Attachments: 4 files
Logo Logo
Loading...