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″]
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.
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!