Tradurre TS da Tradestation a PRT
Forums › ProRealTime forum Italiano › Supporto ProOrder › Tradurre TS da Tradestation a PRT
- This topic has 12 replies, 3 voices, and was last updated 5 years ago by Nicolas.
-
-
06/07/2019 at 9:16 AM #10007906/07/2019 at 9:31 AM #100081
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.
06/07/2019 at 11:04 AM #10009606/07/2019 at 11:04 AM #10009806/07/2019 at 11:06 AM #10009906/07/2019 at 12:33 PM #10010506/09/2019 at 2:35 PM #100253ok, 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);06/11/2019 at 8:18 AM #100387Here is the code translated for ProRealTime automatic trading, I did not test it, please do and give feedback!
12345678910111213141516171819202122232425262728293031if time=120000 and (month>=1 and month<=4) and (dayofweek=3 or dayofweek=4 or dayofweek=5)thenbuy at marketendifif time=010000 thensell at marketendifif dayofweek=5 and time=160000 thensell at marketendif//ribassistaif (dayofweek=1 or dayofweek=5) and (month>=7 and month<=12) thenif time=100000 thensellshort at marketendifif time=120000 thenexitshort at marketendifendifif (dayofweek=2 or dayofweek=4) and (month>=10 and month<=11) thenif time=700 thensellshort at marketendifif time=1200 thenexitshort at marketendifendif//stop lossvalue1=close*pointvalue*0.03set stop loss (value1)06/17/2019 at 1:29 PM #10088406/17/2019 at 5:35 PM #10090106/18/2019 at 9:54 AM #10094306/19/2019 at 11:12 AM #10103406/19/2019 at 3:58 PM #101059Ok, 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.
-
AuthorPosts
Find exclusive trading pro-tools on