Easy Language

stiv

Newbie
Messages
4
Likes
0
hi:

I wrote in Easy Language Simple Moving Average system, but if i try to compile it on Open E Cry brokers i recived errror, bellow'

Error Description: Reserved word: displacement

i paste part of my system with line "displacement"

inputs:
price(close),
avglen(10),
avglen2(18),
displacement(2);
vars: mov_avg1(0), mov_avg2(0);
mov_avg1 = Average(price, avglen)[displacement];
mov_avg2 = Average(price, avglen2);

Is any solve this problem?
 
you can't user the word displacement as the variable for displacement.
change the variable label.
 
you can't user the word displacement as the variable for displacement.
change the variable label.

inputs:
price(close),
avglen(10),
avglen2(18),
dis=displacement(2);
vars: mov_avg1(0), mov_avg2(0);
mov_avg1 = Average(price, avglen)[dis];
mov_avg2 = Average(price, avglen2);

will be better?
 
Top