Incongruenza prezzo di esecuzione ordine limit con multitimeframe

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #81123 quote
    Gianluca
    Participant
    Master

    Buongiorno, sto provando a fare una strategia che compri e venda ad un determinato prezzo rivelato ad una determinata ora. @nicolas @roberto Grazie 😀
    Ho notato che il prezzo molte volte è rispettato, altre volte invece viene eseguito al prezzo rilevato nella barra immediatamente precedente al trade. Allego il codice se potreste aiutarmi.

    once BUYPOSITION = 0
    once SELLPOSITION = 0
    TIMEFRAME (15 MINUTES, UPDATEONCLOSE)
    ONCE RES = 0
    //ONCE SUPP= 0
    if time=091500 then
    res=high
    supp=low
    endif
    graphonprice res
    graphonprice supp
    orario=time
    graph orario
    graph res
    TIMEFRAME (DEFAULT)
    //BUY ORDERS
    if not onmarket and TIME > 93000 AND TIME < 100000 and longok THEN
    IF BUYPOSITION = 0 THEN
    IF LONGONMARKET THEN
    BUYPOSITION = 1
    ELSE
    BUY 5 CONTRACT AT RES stop
    endif
    ENDIF
    endif
    //SELL ORDERS
    if not onmarket and TIME > 93000 AND TIME < 100000 and shortok THEN
    if sellposition = 0 then
    IF SHORTONMARKET THEN
    SELLPOSITION = 1
    ELSE
    SELLSHORT 5 CONTRACT AT supp limit
    ENDIF
    ENDIF
    endif
    

    qui

    [attachment file=”81124″]

    #81144 quote
    robertogozzi
    Moderator
    Master

    Per favore non duplicare i post, ti ho già risposto nel tuo post sul forum in lingia inglese: https://www.prorealcode.com/topic/orb-15m-error-with-buy-limit-multitimeframe/

    Inoltre il tuo codice qui sopra è parziale e sarebbe inutilizzabile.

    #81175 quote
    Gianluca
    Participant
    Master

    Per favore non duplicare i post, ti ho già risposto nel tuo post sul forum in lingia inglese: https://www.prorealcode.com/topic/orb-15m-error-with-buy-limit-multitimeframe/

    Inoltre il tuo codice qui sopra è parziale e sarebbe inutilizzabile.

    si scusami, ho poi pubblicato proprio tutta la strategia per meglio risolvere il problema.

    puoi cancellare il post? scusami ancora!

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

Incongruenza prezzo di esecuzione ordine limit con multitimeframe


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Gianluca @altares Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 09/23/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...