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
Hi, I think your problem is related to what happened yesterday :
https://www.prorealcode.com/topic/iunable-to-start-a-strategy/