PureBytes Links
Trading Reference Links
|
Hi,
In using Ehlers.dll, I would like to use
half of the dominant cycle or a derivative thereof
for the period to be used in MA etc...
Example:
price = (H + L) / 2;
x=int(sbDC(price)/2);
buy=cross(close,ma(close,x));
sell=cross(ma(close,x),close);
The problem is I keep getting errors when I try
to do this. I have tried it numerous ways and
for some reason it is not reading the sbDC(price) as
a number or something. If I replace x=int(sbDC(price)/2;
with x=14 then it works fine so I know that I can use a
variable to represent the periods, it just doesn't like
to use the sbDC(price). Looking for any ideas
Thanks
wdbaker8
|