Inserimento ordine stop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #205493 quote
    Fabbri Fausto
    Participant
    New

    Ho un dubbio:
    voglio inserire un ordine stop ad un pip superiore al massimo della barra precedente

    devo scrivere così

    myPrice = high + 0.0001
    IF NOT LongOnMarket THEN
    BUY 1 CONTRACTS AT myPrice STOP
    ENDIF

     

    o così

    myPrice = high[1] + 0.0001
    IF NOT LongOnMarket THEN
    BUY 1 CONTRACTS AT myPrice STOP
    ENDIF

     

    cioè devo usare: high + 0.0001 oppure high[1] + 0.0001

    Grazie

    #205633 quote
    Nicolas
    Keymaster
    Master

    La prima versione è corretta, in quanto il codice viene letto alla barra Close e l'ordine viene aperto alla barra successiva. E se la dimensione in punti è 0,0001 ovviamente.

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

Inserimento ordine stop


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
3 years, 2 months ago.

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