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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue