[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: some thing about QP plugin



PureBytes Links

Trading Reference Links

StDev(anyARRAY,1) is equal to 0.
When we say 1std, we usually mean 1*StDev(array,periods), as 2std is 
2*StDev(array,periods).
Perhaps you need something like this

per=10;//your period
mid=(H+L)/2;Plot(mid,"mid",colorblack,1);
up=mid + StDev(mid,per);
dn= mid - StDev(mid,per);
Plot(up,"up",colorRed,styleLine);
Plot(dn,"dn",colorGreen,styleLine);

Dimitris Tsokakis

--- In amibroker@xxxxxxxxxxxxxxx, "dom1_1998" <Dom2000@xxxx> wrote:
> I'm trying to plot a channel 1 std dev above and below (H+L)/2.
> 
> I tried the following:
>  mid=(H+L)/2;
> up=mid + StDev(mid,1);
> dn= mid - StDev(mid,1);
> 
> Plot(up,"up",colorRed,styleLine);
> Plot(dn,"dn",colorGreen,styleLine);
> 
> I get only one line plotted,(red) with a red value and green value 
on
> the y axis.  Plus both values are the same amount.
> 
> TIA,
> 
> Dominick



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/