Tradurre TS da Tradestation a PRT

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #100079 quote
    enzo_52
    Participant
    Senior

    Ciao a tutti, ci sarebbe un anima pia che possa tradurre questo TS, (molto promettente), da linguaggio tradestation  a linguaggio PRT?

    grazie

    #100081 quote
    robertogozzi
    Moderator
    Master

    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.

    #100096 quote
    Nicolas
    Keymaster
    Master

    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à;)

    #100098 quote
    enzo_52
    Participant
    Senior

    grazie 1000 Roberto

    #100099 quote
    enzo_52
    Participant
    Senior

    ciao Nicolas, ho seguito i consigli di Roberto, ti ho letto tardi 🙂

    grazie anyway

    TS-1.jpg TS-1.jpg
    #100105 quote
    Nicolas
    Keymaster
    Master

    Ho aggiunto il documento a quell'argomento. È possibile ottenere la versione del testo anziché un'immagine? Molto più semplice e veloce per me! 🙂

    #100253 quote
    enzo_52
    Participant
    Senior

    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);

    #100387 quote
    Nicolas
    Keymaster
    Master

    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)
    #100884 quote
    enzo_52
    Participant
    Senior

    GRAZIE TANTE!!

    I RISULTATI AVUTI CON PRT NON CORRISPONDONO A QUELLI AVUTI SU TRADESTATION. QUELLI SU PRT SONO MENO PERFORMANTI

    PECCATO

    #100901 quote
    Nicolas
    Keymaster
    Master

    Stai confrontando lo stesso identico strumento tra i 2 broker? Esatto stesso tempo di mercato e / o fusi orari? Esatto stesso valore in punti?

    #100943 quote
    enzo_52
    Participant
    Senior

    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

    #101034 quote
    enzo_52
    Participant
    Senior

    Sorry  non è il Gold future (GC) , ma il Crude oil

    #101059 quote
    Nicolas
    Keymaster
    Master

    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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.

Tradurre TS da Tradestation a PRT


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
enzo_52 @enzo_52 Participant
Summary

This topic contains 12 replies,
has 3 voices, and was last updated by Nicolas
6 years, 7 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 06/07/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...