Messaggio di errore stop loss

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #81941 quote
    Loop
    Participant
    Senior

    Buonasera,

    una domanda veloce. Ho provato a lanciare un codide di questo tipo (prima parte del codice per il calcolo della variabile RAVI, omesso) sul future FTSE MIB:

    SET STOP %LOSS 5 TRAILING 700
    
    IF RAVI crosses over 1 THEN
    BUY 1 SHARE AT MARKET
    ENDIF
    
    IF RAVI crosses under 1 THEN
    SELL AT MARKET
    ENDIF
    
    IF RAVI crosses under -1 THEN
    SELLSHORT 1 SHARES AT MARKET
    ENDIF
    
    IF RAVI crosses over -1 THEN
    EXITSHORT AT MARKET
    ENDIF
    
    

     

    Ottengo il seguente messaggio di errore: “Non e’ possibile inserire piu’ ordini stop combinati con ProOrder”

    Come mai?

    Grazie mille in anticipo

    ML

    #81947 quote
    Vonasi
    Moderator
    Master

    Moved to Italian forum. Please post in the correct language forum.
    Please also use the ‘Insert PRT Code’ button when posting code to make it more readable. I have tidied up your post.

    Passato al forum italiano. Si prega di inviare nel forum della lingua corretta.
    Utilizza inoltre il pulsante “Inserisci codice PRT” quando pubblichi il codice per renderlo più leggibile. Ho riordinato il tuo post. 🙂

    #81948 quote
    robertogozzi
    Moderator
    Master

    ProOrder NON accetta l’uso combinato SET STOP e TRAILING, considerandoli due ordini stop separati (tuttavia ProBackTest continua ad accettarli, credo. Io non li ho mai usati).

    Quindi devi usare SET STOP LOSS oppure SET STOP TRAILING (entrambi con le possibili varianti con $, P o %).

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

Messaggio di errore stop loss


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Loop @loop Participant
Summary

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

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