I have been researching this topic and also tried creating the indicator with parameters but I still get this error when calling the value from the indicator into my code. Now I know the code of the indicator could have been done in the Builder itself but this is just the beginning and I wanted to keep it simple so we can get to the bottom of the problem.
Error: Backtest cant start because of a parsing error in the code : line 1, column 0.
Here is the Pro Builder code.
Call value TradeOk from indicator TurnofMonth
1
2
3
4
5
6
7
8
9
10
11
Tradeok=Call"TurnofMonth"[22,4]
// Conditions to enter long positions
IFNOTLongOnMarketANDTradeokTHEN
BUY1CONTRACTSATMARKET
ENDIF
// Conditions to exit long positions
IfLongOnMarketANDNotTradeokTHEN
SELLATMARKET
ENDIF
Here is the indicator code
Tradeok between days leading to month end and just thereafter
Just a follow up question why do the Timeframe(Daily) code line also cause an error?
So from further testing it looks like the Timeframe command is only to be used in ProBuilder not in ProBackTest or the Indicator module. Please confirm.