Incongruenza prezzo di esecuzione ordine limit con multitimeframe

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #81123 quote
    GianlucaGianluca
    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″]

    errore.jpg errore.jpg
    #81144 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    GianlucaGianluca
    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.
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

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 GianlucaGianluca
8 years ago.

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