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
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