Inserimento ordine stop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #205493 quote
    Fabbri FaustoFabbri 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
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Inserimento ordine stop


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

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

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