BACKTESTING MOLTO LENTO (ASC TREND)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #211902 quote
    GaspareGaspare
    Participant
    Veteran
    //  US 500 1€ TF 2 MINUTI  15K   1 MESE
    DEFPARAM CumulateOrders = false
    Defparam Flatbefore=080000
    Defparam Flatafter=220000
    //  variabile M  da 1 a 100  passo 1
    //ONCE M = 78.0
    MHull  = average[ M ,7](close)
    Bullish = MHull > MHull[1] and MHULL[1]  < MHULL[2]
    Bearish = MHull < MHull[1] and MHULL[1]  > MHULL[2]
    MyAdx= Adx[14] >= 20
    ONCE Segnale = 0
    Segnale = CALL "PRC_ASCTrend v2"[3, 300]
    IF Segnale = 0 THEN
    Segnale = Segnale[1]
    ENDIF
    IF Segnale <> Segnale[1] THEN
    IF Segnale = 1 and MyAdx and Bullish THEN
    BUY 1 Contract at Market
    ELSIF Segnale = -1 and MyAdx and Bearish THEN
    SELLSHORT 1 Contract at Market
    ENDIF
    ENDIF
    set stop ploss      20
    set target pprofit  20

    Ciao Roberto

    si puo’ rendere piu’ veloce il backtesting del TS indicato?

    Risulta molto lento con qualsiasi strumento anche con uno storico

    ridotto di 15k a 2 minuti e una variabile M da 1 a 100 passo 1 da ottimizzare;

    con 200k è tutto bloccato.

    Grazie

    #211945 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Perché l’indicatore fa molti calcoli ripetutamente usando array e cicli. Non è possibile farci niente.

    Forse l’unico tentativo di miglioramento (ma di poco, credo) sia quello d’inserire il codice dell’indicatore direttamente nella tua strategia, in modo da evitare l’istruzione CALL.

    Gaspare thanked this post
    #211969 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Roberto,

    Comunque provandolo in demo , viene respinto con motivazione “array non trovato”

    #211973 quote
    NicolasNicolas
    Keymaster
    Legend

    Dovresti usare questa versione di ASCTrend compatibile con ProOrder: https://www.prorealcode.com/topic/strategie-avec-indicateur-asctrand/#post-159634 (leggi l'intero argomento).

    Gaspare thanked this post
Viewing 4 posts - 1 through 4 (of 4 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

BACKTESTING MOLTO LENTO (ASC TREND)


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Gaspare @gaspare Participant
Summary

This topic contains 3 replies,
has 4 voices, and was last updated by NicolasNicolas
3 years, 6 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/22/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...