Hi guys, can you help me?
I created this simple indicator, just to test the mechanisms of CALL functions in a trading system:
EVSA
1
2
3
4
5
6
7
8
onceatrMonths=3
onceatrDays=round(5*4.1*atrMonths)
ema=average[Period,1]
diff=ema-ema[1]
ratio=diff/(averageTrueRange[atrDays])
signal=round(ratio)
returnsignalas"Signal",0as"Central line"
then I tried to use it in a dummy TS:
a dummy TS
1
2
3
4
5
6
7
8
9
signal,centralline=call"EVSA"[5]
ifnotlongOnMarketandsignalandcentralline=0then
buy1contractsatmarket
endif
iflongOnMarketandnotsignalthen
sellatmarket
endif
Unfortunately I receive this message (sorry it is in italian lang) saying that “EVSA” function should be called with an expression between parenthesis.
I really don’t know how to fix this.
Can you help me please?
Regards
R
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.