Limit on periods of function

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7197 quote
    klaus
    Participant
    Veteran

    Does anybody know if there is a limit  for the number of periods on a function like DEMA?

    Following program runs in backtest(one minute timeframe) but not live. I’m getting the message to increase preloadbars, which I have done

    thx Klaus

    defparam preloadbars =2000
    once ldema=0
    xDEMA = 1050
    cDEMA = dema[xDEMA](close)
    DEMAcond = cDEMA < lDEMA
    lDEMA = cDEMA
    if demacond then
    buy 1 contracts at market
    else
    sell at market
    endif
    #7235 quote
    Nicolas
    Keymaster
    Master

    I know someone who trade Hull moving average of 5000 periods in seconds timeframe.. So I guess it’s possible.

    What is the error of live trading?

    #7370 quote
    klaus
    Participant
    Veteran

    It says to increase Preloadbars, which was already done.

    But anyhow, I changed program logic to circumvent the problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Limit on periods of function


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
klaus @klaus Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/17/2016
Status: Active
Attachments: No files
Logo Logo
Loading...