ordine pendente stop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #173398 quote
    Antonio Garbinesi
    Participant
    Average

    buongiorno vorrei sapere come fare ad impostare un ordine stop che resti attivo per piu giorni,determinando ad es un livello di prezzo fare in modo che se il sottostante tocca quel prezzo nei successivi 5 giorni l ordine viene eseguito.grazie

    #173403 quote
    robertogozzi
    Moderator
    Master

    Gli ordini pendenti durano una sola candela, quindi vanno piazzati nuovamente se alla candela successiva ti servono ancora.

    Usando un contatore potrai stabilire tu quando smettere di piazzarli.

    Questo è un esempio, provato sul DAX Daily, di codice Long in cui all’evento (in questo caso un crossover con una media) si stabilisce un prezzo d’entrata e si piazza l’ordine per un massimo di 3 volte:

    ONCE PrezzoEntrata = 0
    IF OnMarket THEN
       PrezzoEntrata = 0
    ENDIF
    IF close CROSSES OVER average[20] AND Not OnMarket THEN
       PrezzoEntrata = high + 100 * PipSize
       //PrezzoEntrata = low  - 100 * PipSize
    Conto = 0
    ENDIF
    IF PrezzoEntrata > 0 THEN
       BUY 1 CONTRACT AT PrezzoEntrata STOP
       //BUY 1 CONTRACT AT PrezzoEntrata LIMIT
       Conto = Conto + 1
       IF Conto = 3 THEN
          PrezzoEntrata = 0
       ENDIF
    ENDIF

    l’esempio è per gli ordini STOP, se inverti i commenti delle due righe, ognuno con la riga precedente, ottieni la versione con ordini LIMIT.
    La differenza tra LIMIT e STOP è come nel trading manuale, ad ogni modo allego un’immagine con una grafica che spiega le differenze.

    Pending-STOP-LIMIT-Orders-Ordini-Pendenti.jpg Pending-STOP-LIMIT-Orders-Ordini-Pendenti.jpg
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

ordine pendente stop


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 07/10/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...