Hi, anyone resolved something similar?
I am trying to use a home made indicator in my strategy and it won’t find it…
How I call my indicator from within the strategy
lsl, ssl = CALL "myATRstop[ATRlevel]"
see attachemnts, first is the actual indicator, it has one input and two outputs
second is the error message i get.
probably something really dim ive done..anyone got any ideas? Thanks
myATRstop indicator:
atr=AverageTrueRange[14](close)*multiplier
longstoplevel=lowest[14](low-atr)
shortstoplevel=highest[14](low+atr)
//longstoptrigger=low<longstoplevel[1]
//shortstoptrigger=high>shortstoplevel[1]
//DRAWARROWUP (0, longstoplevel) COLOURED (255, 0, 0)
return longstoplevel[1] as "Long level", shortstoplevel[1] as "Short level"
//, shortstoptrigger*shortstoplevel as "Short trigger", longstoptrigger*longstoplevel as "Long trigger"
..second is the error i get when i run the strategy
You should call your indicator like this instead:
lsl, ssl = CALL "myATRstop"[ATRlevel]
If I understand correctly, you want to modify the default parameter of the called indicator with (‘multiplier’ variable) with ‘ATRlevel’ from the strategy?