Buonasera,
spero di fare la domanda nel gruppo corretto… Mi sono ritrovato con il nuovo Rapporto Dettagliato del ProBuilder, dove fino a prima non avevo problemi, adesso la strategia che segue non viene eseguita correttamente (alcuni segnali non vengono eseguiti), prima di avere la versione BETA il problema non sussisteva. Di seguito il testo che eseguo:
AA, A = CALL "@all"
if longonmarket then
sell at market
endif
if shortonmarket then
exitshort at market
endif
if a > 0 then
buy a shares at market
elsif a < 0 then
sellshort abs(a) shares at market
endif
Sapete aiutarmi? Grazie
Hai postato nel forum sbagliato, non è ProBuilder per le strategie, ma ProOrder, mi sembra ben evidenziato nelle regole qui sotto.
L’ho spostato io.
Per verificare correttamente occorre il codice completo, altrimenti non posso provarlo, meglio se indichi anche lo strumento ed il timeframe su cui lavora.
//LONG
A1 = Open<Low[1] and close>high[1]// and low=lowest[10]
B1 = Open[1]>Close[1]
if a1 and b1 then
x1 = 1
z1=0
elsif x1[1]=1 and z1<8 then
x1 = 1
z1=z1+1
else
x1=0
endif
EntraL = xxx=0 and X1=1
EsciL= xxx=1 and X1=0
//SHORT
A2 = Open>HIGH[1] and close<low[1]
B2 = Open[1]<Close[1]
if a2 and b2 then
x2 = -1
z2=0
elsif x2[1]=-1 and z2<8 then
x2 = -1
z2=z2+1
else
x2=0
endif
EntraS = xxx=0 and X2=-1
EsciS = xxx=-1 and X2=0
//////////////////////
//////////////////////
//////////////////////
if EsciL or EsciS then
xxx=0
endif
if EntraL then
xxx=1
endif
if EntraS then
xxx=-1
endif
AD=ADX[14]
if AD>30 then
xxx=-xxx
endif
TOT=xxx
if longonmarket then
sell at market
endif
if shortonmarket then
exitshort at market
endif
if tot > 0 then
buy tot shares at market
elsif tot < 0 then
sellshort abs(tot) shares at market
endif
Ti ringrazio, il codice sarebbe troppo lungo perché richiama una ventina di sistemi collegati, ti posto quindi un altro esempio…
Non ho mai avuto problemi, ma con la nuova piattaforma, sostanzialmente col passare del tempo sembra che l’esposizione cresca, perché cresce il Drawdown (cerchiato nell’immagine), mentre eseguo sempre solo vendendo 1 future o comprandolo…
Non capisco proprio, il codice è sempre lo stesso, quindi deve essere cambiato qualcosa nella piattaforma… ho questo problema su tutti i sistemi… strumento FtseMib Future timeframe 1 giorno.
GRAZIE
Credo l’unica possibilità di venirne a capo sia quella di premere Ctrl+M dalla piattaforma per chiedere spiegazioni all’assistenza PRT.