HELP

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5171 quote
    donofrio_raffaele
    Participant
    New

    Chi può darmi indicazioni?
    Ho generato il sottostante programma per vendere azioni SE L’ APERTURA DEL GIORNO ( quello in cui intendo aprire il trade ) è superiore al minimo del giorno precedente ma non funziona.
    Più in generale NON RIESCO AD TROVARE UN CODICE PER INSERIRE CONDIZIONI CHE VINCOLANO L’ APERTURA DEL TRADE ALL’ APERTURA DEL GIORNO IN CUI INTENDO TRADARE .

    IF intradaybarindex = 0 THEN
    todayOpen = Open
    ENDIF
    
    IF todayOpen >= DLOW(1) THEN
    ENDIF
    
    IF DOPEN(1)>DCLOSE(1) THEN
    ENDIF
    
    SELLSHORT 10000 CASH AT DCLOSE(1) STOP
    
    
    // Stop e target
    SET STOP $TRAILING 210
    SET TARGET $PROFIT 70
    #5185 quote
    Nicolas
    Keymaster
    Master
     Ciao, penso che questo codice dovrebbe aiutare:
    IF intradaybarindex = 0 THEN
    todayOpen = Open
    ENDIF
    
    IF todayOpen >= DLOW(1) THEN
    SELLSHORT 10000 CASH AT DCLOSE(1) STOP
    ENDIF
    
    // Stop e target
    SET STOP $TRAILING 210
    SET TARGET $PROFIT 70
    Dimmi se funziona!
    #5447 quote
    donofrio_raffaele
    Participant
    New

    Grazie Nicolas ma ancora non va .

    Ho provato il codice sul mercato Deutshe BANK utilizzando Probacktest . Il risultato è stato ( guardando solo dal 04 aprile a oggi ) che in alcuni casi il trade è partito anche open < dlow (1) in altri invece il trade non è partito pur essendoci le condizioni . Ti chiedo : è inaffidabile Probacktest come mi è accaduto di sperimentare altre volte ? Tu cosa ne pensi ?

    #5469 quote
    Nicolas
    Keymaster
    Master

    Il codice non chiude le vostre posizioni. Questo sarà solo l’obiettivo di profitto o trailing stop che verrà.
    Questi valori sono in $, essi sono troppo bassi o troppo alti rispetto alle dimensioni delle posizioni?

    #6284 quote
    donofrio_raffaele
    Participant
    New

    Ho provato in tutti i modi su Probacktest ma il codice non funziona .

    Quello che ho visto è che la partenza del trade avviene non in funzione dell’ apertura del giorno del trade  ma in funzione dell’ apertura del giorno precedente .

    Esiste un codice per questo o non si può realizzare ?

    Se non si può realizzare questa condizione ok basta saperlo.

     

    grazie

    Raffaele D’ Onofrio

    #6381 quote
    Nicolas
    Keymaster
    Master

    in effetti. Perché nel primo codice di postare, si stavano prendendo il commercio a soli precedente bassa giorno.
    Se si desidera il commercio da avviare direttamente all’apertura della giornata, il codice sarebbe:

    IF intradaybarindex = 0 THEN
     todayOpen = Open
    ENDIF
    
    IF todayOpen >= DLOW(1) THEN
     SELLSHORT 10000 CASH AT MARKET 
    ENDIF
    
    // Stop e target
    SET STOP $TRAILING 210
    SET TARGET $PROFIT 70
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

HELP


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Nicolas
9 years, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/10/2016
Status: Active
Attachments: No files
Logo Logo
Loading...