I need some help and it is probably something easy too fix. I am coding an indicator that I want too call in a system and I cant get it too work. Now I have simplified it so that I can understand how it works before I build the the indicator.
The indicator is named DAXMF_indicator
DAXMF_indicator
1
2
c1=closecrosses overaverage[200]
returnc1AS"c1"
And my system file looks like this:
DAXMF_system
1
2
3
4
5
6
CALL"DAXMF_indicator"
IFc1THEN
BUY1ContractATMarket
ENDIF
SET TARGETpPROFIT100
SET STOPpLOSS50
When I backtest the system I get a message that c1 is “undefined”, can someone please help me.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.