Problem invio codice ProOrder

Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • #54495 quote
    keemax73keemax73
    Participant
    Average

    Ok, se ti indico il codice che sto provando mi puoi dire con 10000 bar che risultati ti proprone ?

    Giusto per avere un confronto.

    Grazie.

    #54501 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Va bene.

    #54529 quote
    keemax73keemax73
    Participant
    Average

    Ciao, grazie per il tuo aiuto.

    Ti allego il mio risultato con 50k bar e come l’ho impostato.

    Dax Tf 5min  

    Questo è il codice :

    DEFPARAM CumulateOrders = False
    //DEFPARAM FLATBEFORE = 080000
    //DEFPARAM FLATAFTER = 220000
    
    //Definizione variabili MACD Long
    ONCE Macd1 = 12                //12
    ONCE Macd2 = 27                //26
    ONCE Macd3 = 9                 //9
    
    //Definizione variabili MACD Short
    ONCE Macd4 = 12                //12
    ONCE Macd5 = 21                //26
    ONCE Macd6 = 18                //9
    
    //Definizione variabile Adx
    AdxVal  = Adx[3] > 42         //3, 42
    
    //Cross OVER
    ONCE crover = 3                 //3
    //Cross UNDER
    ONCE crunder = 9                //9
    
    //Exit Long
    ONCE exlong = 4                 //4
    //Exit Short
    //ONCE exshort = 6              //6
    
    //Stop Loss
    ONCE stploss = 13               //13
    ONCE avrtrangeloss = 8          //8
    //Target Profit
    ONCE tarprof = 14               //14
    ONCE avrtrangeprofit = 13       //13
    
    //Contratti
    c = 1
    
    // Condizioni per entrare su posizioni long
    indicator1 = MACD[Macd1,Macd2,Macd3](close)
    c1 = (indicator1 >= 0)
    indicator2 = MACDline[Macd1,Macd2,Macd3](close)
    c2 = (indicator2 CROSSES OVER crover) //3
    
    IF c1 AND c2 AND AdxVal THEN
    BUY c CONTRACT AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni long
    indicator3 = MACD[Macd1,Macd2,Macd3](close)
    c3 = (indicator3 <= -exlong) //-4
    
    IF c3 THEN
    SELL AT MARKET
    ENDIF
    
    // Condizioni per entrare su posizioni short
    indicator4 = MACD[Macd4,Macd5,Macd6](close)
    c4 = (indicator4[1] <= 0)
    indicator5 = MACDline[Macd4,Macd5,Macd6](close)
    c5 = (indicator5[1] CROSSES UNDER -crunder)
    
    IF c4 AND c5 AND AdxVal THEN
    SELLSHORT c CONTRACT AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni short
    indicator6 = Average[20](close)
    c6 = (close[1] >= indicator6)
    
    IF c6 THEN
    EXITSHORT AT MARKET
    ENDIF
    
    // Loss, Profit
    SET STOP LOSS stploss*AverageTrueRange[avrtrangeloss](close) //8
    SET TARGET PROFIT tarprof*AverageTrueRange[avrtrangeprofit](close) //13
    

     

    1.png 1.png 2.png 2.png
    #54547 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ho fatto il copia & incolla senza nessuna modifica. Allego la foto del risultato.

    Dax-5-min-test-100k.jpg Dax-5-min-test-100k.jpg
    #54551 quote
    keemax73keemax73
    Participant
    Average

    OK, come ti sembra si sia comportato ? Io ho fatto i test con max 50k bar

    Cosa e come si potrebbe migliorare  ?

    Il test che hai eseguito è fatto tick per tick ? Oltra alla spunta, come posso capire se realmente lo sta facendo in quel modo ?

    Perché quando utilizzo la modalità di ottimizzazione variabili mi sembra di capire che il tick per tick non venga attivato.

    Sto anche provando con altri indicatori, ma i risultati non cambiano se non di poco.

    Grazie e scusa per le tante domande …

     

    #54620 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Nella foto si vede che è spuntata la casella TICK x TICK.

    Non saprei cosa suggerirti, non ne ho studiato la logica. In ogni caso puoi provare sostituendo alcuni indicatori/oscillatori o aggiungendone altri, magari su vari timeframe.

     

Viewing 6 posts - 31 through 36 (of 36 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Problem invio codice ProOrder


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
keemax73 @keemax73 Participant
Summary

This topic contains 35 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
8 years, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 11/19/2017
Status: Active
Attachments: 9 files
ProRealCode ProRealCode
Loading...