I am getting the dreaded “This trading system was stopped because the historical data loaded was insufficient to calculate at least one indicator during the evaluation of the last candlestick.”
I have a simple system using PRT Bands and a custom indicator I bought called Metascore. I have tried disabling everything and it seems Metascore is the issue. But I have used in before in other systems with no issue – can anyone see what is wrong? Thanks!
//————————————————————————-
// Main code : DaxSS
//————————————————————————-
//————————————————————————-
// Main code : Sureshot
//————————————————————————-
// Definition of code parameters
DEFPARAM Preloadbars = 10000
DEFPARAM CumulateOrders = True // Cumulating positions deactivated
// Conditions to enter long positions
indicator1, ignored, ignored = CALL “MetaScore”[80, 0, 0](close)
c1 = (indicator1 CROSSES UNDER 40)
indicator2 = PRTBANDSDOWN
c2 = (close >= indicator2)
IF c1 AND c2 THEN
BUY 1 PERPOINT AT MARKET
ENDIF
// Conditions to exit long positions
indicator3, ignored, ignored = CALL “MetaScore”[80, 0, 0](close)
c3 = (indicator3 CROSSES OVER 80)
indicator4 = PRTBANDSUP
c4 = (close >= indicator4)
IF c3 AND c4 THEN
SELL AT MARKET
ENDIF
// Conditions to enter short positions
indicator4, ignored, ignored = CALL “MetaScore”[80, 0, 0](close)
c4 = (indicator4 CROSSES OVER 80)
//indicator5 = Average[50](close)
//c5 = (close => indicator5)
IF c4 THEN
SELLSHORT 1 PERPOINT AT MARKET
ENDIF
// Conditions to exit short positions
indicator6, ignored, ignored = CALL “MetaScore”[80, 0, 0](close)
c6 = (indicator6 CROSSES UNDER 30)
IF c6 THEN
EXITSHORT AT MARKET
ENDIF
// Stops and targets
//SET STOP pTRAILING 143
// Stops and targets
atr = ATR[14]
SET STOP pLOSS (2 * atr)
SET TARGET pPROFIT (3 * atr)