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
c1 = close crosses over average[200]
return c1 AS "c1"
And my system file looks like this:
CALL "DAXMF_indicator"
IF c1 THEN
BUY 1 Contract AT Market
ENDIF
SET TARGET pPROFIT 100
SET STOP pLOSS 50
When I backtest the system I get a message that c1 is “undefined”, can someone please help me.
Ahhh.. I think I just worked it out..
You have to give the value of the CALL to a variable:
c1 = CALL "DAXMF_indicator"