error proorder – insufficient historical data

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42997 quote
    Pjotterd
    Participant
    Average

    Hi all, I want to start autotrading with a system I have used before succesfully. But now, I’m not able to start the autotrading in proorder. This is the error I get. What do I have to do to make it work again?

    The trading system could not start because there is insufficient historical data available on this instrument for the timeframe selected. If the instrument is actively traded, please check that the number of bars of historical data available is greater than or equal to the number of bars preloaded by the system via the instruction “PRELOADBARS” (1000 by default).

    this is the very simple code I’m using

    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated
    
    
    // Conditions to enter long positions
    c1 = (close[1] > open[1])
    
    IF c1 THEN
    BUY 10 CONTRACT AT MARKET
    ENDIF
    
    // Conditions to enter short positions
    c2 = (close[1] < open[1])
    
    IF c2 THEN
    SELLSHORT 10 CONTRACT AT MARKET
    ENDIF
    
    // Stops and targets
    SET TARGET PROFIT 2*pipsize
    
    #43002 quote
    Nicolas
    Keymaster
    Master

    Hi, I think your problem is related to what happened yesterday :

    https://www.prorealcode.com/topic/iunable-to-start-a-strategy/

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

error proorder – insufficient historical data


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Pjotterd @pjotterd Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
8 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/11/2017
Status: Active
Attachments: No files
Logo Logo
Loading...