Hi guys, can you help me?
I created this simple indicator, just to test the mechanisms of CALL functions in a trading system:
once atrMonths = 3
once atrDays = round(5 * 4.1 * atrMonths)
ema = average[Period,1]
diff = ema -ema[1]
ratio = diff / (averageTrueRange[atrDays])
signal = round(ratio)
return signal as "Signal", 0 as "Central line"
then I tried to use it in a dummy TS:
signal, centralline = call "EVSA"[5]
if not longOnMarket and signal and centralline = 0 then
buy 1 contracts at market
endif
if longOnMarket and not signal then
sell at market
endif
Unfortunately I receive this message (sorry it is in italian lang) saying that “EVSA” function should be called with an expression between parenthesis.
[attachment file=76922]
I really don’t know how to fix this.
Can you help me please?
Regards
R
Add (CLOSE) at the end:
signal, centralline = call "EVSA"[5](close)