The Strat Combo tester

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #205373 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Non ho ben capito se la strategia in oggetto di Juanj sia un indicatore, o una strategia, nel caso di indicatore, come aggiungerci una strategia?

    Grazie

    #205423 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Sono 3 file, 2 indicatori e 1 strategia (se terminano con RETURN sono indicatori, se terminano con SCREENER sono screener di mercato, altrimenti sono strategie).

    https://www.prorealcode.com/prorealtime-indicators/thestrat-candles/

    https://www.prorealcode.com/prorealtime-indicators/thestrat-reversals/

    https://www.prorealcode.com/prorealtime-trading-strategies/thestrat-combo-tester/

    #205431 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Si quindi io ho la strategia, ma come mai mi entra a mercato all’inizio del test e esce alla fine, praticamente fa un entrata e una uscita.

    Grazie

    #205445 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Io l’ho provata sul DAX, Giornaliero, entra ed esce moltissime volte.

    Prova ad usare più unità.

    x-4.jpg x-4.jpg
    #205703 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Io lo sto provando sul DAX 15 minuti e mi entra ma immediatamente viene cancellato.

    Grazie

    #205805 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ti allego il file che ho usato io, senza cambiare niente (ho solo messo i valori delle variabili FISSI, per non fargli fare il test).

    x-8.jpg x-8.jpg DIV-MFI-RSI-SMI-Handel-1.itf
    #205824 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Non so perchè ma da un po di tempo, non riesco a caricare file ITF, la cosa succede da quando ho pulito il PC.

    #205828 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ecco il codice che ho usato:

    defparam cumulateorders = false
    once cDIVMFI = 0
    once cDIVRSI = 0
    once cDIVMOM = 0
    td = opendayofweek >=1 and opendayofweek <= 5
    tt = time >= 080000 and time <= 210000
    mbr = 1
    n   = 40
    //.................................................................................................................
    DIVMFI = MoneyFlowIndex[14]
    IF (BarIndex > n) THEN
    IF (DIVMFI[1]>DIVMFI AND DIVMFI[1]>DIVMFI[2]) THEN
    extremumMFI2=DIVMFI[1]
    extremumMFI1=highest[n](DIVMFI)
    preciomaxMFI2=close[1]
    preciomaxMFI=Highest[n](close)
    IF(extremumMFI2<extremumMFI1 AND preciomaxMFI2>preciomaxMFI[1]) THEN
    for i=mbr to n
    if DIVMFI[i]=extremumMFI1 then
    cDIVMFI = 1
    Endif
    next
    Endif
    Endif
    Endif
    
    //.................................................................................................................
    DIVRSI = RSI[14](close)
    IF (BarIndex > n) THEN
    IF (DIVRSI[1]>DIVRSI AND DIVRSI[1]>DIVRSI[2]) THEN
    extremumRSI2=DIVRSI[1]
    extremumRSI1=highest[n](DIVRSI)
    preciomaxRSI2=close[1]
    preciomaxRSI=Highest[n](close)
    IF(extremumRSI2<extremumRSI1 AND preciomaxRSI2>preciomaxRSI[1]) THEN
    for i=mbr to n
    if DIVRSI[i]=extremumRSI1 then
    cDIVRSI = 1
    Endif
    next
    Endif
    Endif
    Endif
    //.................................................................................................................
    DIVMOM = Momentum[12](close)
    If (BarIndex > n) THEN
    If (DIVMOM[1]>DIVMOM AND DIVMOM[1]>DIVMOM[2]) THEN
    extremumMOM2=DIVMOM[1]
    extremumMOM1=highest[n](DIVMOM)
    preciomaxMOM2=close[1]
    preciomaxMOM=Highest[n](close)
    If(extremumMOM2<extremumMOM1 AND preciomaxMOM2>preciomaxMOM[1]) THEN
    for i=mbr to n
    If DIVMOM[i]=extremumMOM1 then
    cDIVMOM = 1
    Endif
    next
    Endif
    Endif
    Endif
    //.................................................................................................................
    IF td and tt then
    IF cDIVMFI = 1 and cDIVRSI = 1 and cDIVMOM = 1 then
    buy at market
    ENDIF
    ENDIF
    IF onmarket then
    cDIVMFI = 0
    cDIVRSI = 0
    cDIVMOM = 0
    ENDIF
    set stop ploss 40
    set target pprofit 40
    #205862 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Ho provato per un mese e sembra che questo nuovo sia peggio, inoltre il precedente sembra funzionare adesso.

    Grazie

    the-combo-tester-nuova-versione.png the-combo-tester-nuova-versione.png the-strat-combo-tester-vecchia-versione.png the-strat-combo-tester-vecchia-versione.png
Viewing 9 posts - 1 through 9 (of 9 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

The Strat Combo tester


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 8 replies,
has 2 voices, and was last updated by Ciccarelli FrancoCiccarelli Franco
3 years, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/08/2022
Status: Active
Attachments: 5 files
ProRealCode ProRealCode
Loading...