PRELOADBARS maximal bars and limitations on backtest

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #96942 quote
    pro-indexpro-index
    Participant
    New

    I hit problem when I implement the long ma like :

    DEFPARAM preloadbars = 23000// Cumulating positions deactivated

    MA20175 = Average[20175](close).

     

    Back test is just nice. What is the problem ?

    ERR1.png ERR1.png
    #96945 quote
    GraHalGraHal
    Participant
    Master

    Maximum preLoad bars that can be set is 10000

    Default is 200

    Nicolas thanked this post
    #96946 quote
    pro-indexpro-index
    Participant
    New

    Is there a way to compute MA20175 = Average[20175](close) ?

    #96954 quote
    NicolasNicolas
    Keymaster
    Legend

    I’m sure that this long term period of a SMA could be calculated another way by using a superior TIMEFRAME, thus reducing a lot its period of calculation!!

    #96957 quote
    GraHalGraHal
    Participant
    Master

    calculated another way by using a superior TIMEFRAME

    Yeah, so Nicolas means, for example  …

     

    Timeframe(1 hour)
    MA20160 = Average[336](close)
    
    Timeframe (1 mn)
    If Close crosses over MA20160 Then
    .... etc
    Nicolas thanked this post
Viewing 5 posts - 1 through 5 (of 5 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

PRELOADBARS maximal bars and limitations on backtest


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
pro-index @pro-index Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by GraHalGraHal
7 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/22/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...