Ciao a tutti, ci sarebbe un anima pia che possa tradurre questo TS, (molto promettente), da linguaggio tradestation a linguaggio PRT?
grazie
Per favore:
- NON usare il grassetto, se non in rari casi, non aiuta sicuramente!
- usa la richiesta di conversione cliccando su “Ask for a free code conversion” dal menu dell’Help sulla barra blu in alto
Grazie.
Immagino PTR sia semplicemente un errore nello scrivere PRT, è così?
In ogni caso mancava l’allegato, ma lo metterai quando segui il mio suggerimento sopra.
Puoi mettere qui tutte le informazioni necessarie che hai: codice, immagini, spiegazione. Grazie in anticipo per quella strategia "promettente" e per condividerlo con la comunità;)
ciao Nicolas, ho seguito i consigli di Roberto, ti ho letto tardi 🙂
grazie anyway
Ho aggiunto il documento a quell'argomento. È possibile ottenere la versione del testo anziché un'immagine? Molto più semplice e veloce per me! 🙂
ok, grazie 1000
//rialzista
if t=1200 and (month(date)>=1 and month(date)<=4) and (dayofweek(date)=3 or dayofweek(date)=4 or dayofweek(date)=5)
then buy next bar at open;
if t=0100 then sell next bar at open;
if dayofweek(date)=5 and t=1600 then sell next bar at open;
//ribassista
if (dayofweek(date)=1 or dayofweek(date)=5) and (month(date)>=7 and month(date)<=12) then begin
if t=100 then sellshort next bar at open;
if t=1200 then buytocover next bar at open;
end;
if (dayofweek(date)=2 or dayofweek(date)=4) and month(date)>=10 and month(date)<=11) then begin
if t=700 then sellshort next bar at open;
if t=1200 then buytocover next bar at open;
end;
//stop loss
if mp=0 then value1=c*bigpointvalue*0.03;
setstoploss(value);
Here is the code translated for ProRealTime automatic trading, I did not test it, please do and give feedback!
if time=120000 and (month>=1 and month<=4) and (dayofweek=3 or dayofweek=4 or dayofweek=5)then
buy at market
endif
if time=010000 then
sell at market
endif
if dayofweek=5 and time=160000 then
sell at market
endif
//ribassista
if (dayofweek=1 or dayofweek=5) and (month>=7 and month<=12) then
if time=100000 then
sellshort at market
endif
if time=120000 then
exitshort at market
endif
endif
if (dayofweek=2 or dayofweek=4) and (month>=10 and month<=11) then
if time=700 then
sellshort at market
endif
if time=1200 then
exitshort at market
endif
endif
//stop loss
value1=close*pointvalue*0.03
set stop loss (value1)
GRAZIE TANTE!!
I RISULTATI AVUTI CON PRT NON CORRISPONDONO A QUELLI AVUTI SU TRADESTATION. QUELLI SU PRT SONO MENO PERFORMANTI
PECCATO
Stai confrontando lo stesso identico strumento tra i 2 broker? Esatto stesso tempo di mercato e / o fusi orari? Esatto stesso valore in punti?
si, stesso flusso dati (interactive broker) sia per PRT che Tradestation., il fuso orario è stato controllato, nel codice ho spostato tutto di 6h avanti.
si tratta del GC (gold) future TF 1h
Sorry non è il Gold future (GC) , ma il Crude oil
Ok, ma dal momento che non sono in grado di confrontare con la versione originale, sarebbe possibile per voi condividere con noi dove sono esattamente le differenze? Mostraci alcuni degli ordini con data e strumento precisi.