PRELOADBARS maximal bars and limitations on backtest

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #96942 quote
    pro-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
    GraHal
    Participant
    Master

    Maximum preLoad bars that can be set is 10000

    Default is 200

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

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

    #96954 quote
    Nicolas
    Keymaster
    Master

    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
    GraHal
    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.

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 GraHal
6 years, 10 months ago.

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