Hello Everyone,
I was hoping to get some help or advice, i want to plot a bollinger band based on a exponential moving average with a .25 std deviation.
I did notice the bollinger classic indicator but it is based on a simple moving average.
My coding abilities would be similar to a goldfish and iv been harrassing Earik enough already
Best Regards,
Peter.
Exponential Moving Average
Re: Exponential Moving Average
Hi Peter,
Try this:
Copy that, paste into a new script, set the scaling to "price" in QScript Properties, Build it, and it will show up in the "Technicals" menu. Let me know if you get stuck.
Earik
Try this:
Code: Select all
input: price(close),length(14),standarddev(0.25),color(red);
sdev = stdev(price,length);
xavg = xaverage(price,length);
bb_up = xavg + (standarddev * sdev);
bb_dn = xavg - (standarddev * sdev);
plot1 = bb_up;
color1 = color;
plot2 = bb_dn;
color2 = color;
Earik
Re: Exponential Moving Average
Hi Earik,
Thanks for the quick reply.
Im getting the following when I try to compile the script:
ERROR:Unknown function"stdev" (Line3)
ERROR: Illegal Math expression. (Line3)
Thanks for the quick reply.
Im getting the following when I try to compile the script:
ERROR:Unknown function"stdev" (Line3)
ERROR: Illegal Math expression. (Line3)
Re: Exponential Moving Average
Oops. Try stddev rather than stdev (two d's vs just one). Typo on my part...
Regards,
Earik
Regards,
Earik
Re: Exponential Moving Average
Earik that worked perfect.
A boring indicator to some,but a very important part of my price action studies.
Thank you very much.
A boring indicator to some,but a very important part of my price action studies.
Thank you very much.
Who is online
Users browsing this forum: No registered users and 2 guests