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

[EquisMetaStock Group] Re: Heikin-Ashi Code?



PureBytes Links

Trading Reference Links

Nice neat coding, Roy.  :)

--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> 
wrote:
> Hi Jose
> 
> Thanks for the code and reference to the site. The link seems to be 
http://www.traders.com
> 
> It seems to me that the inclusion of haClose in haHigh and haLow as 
shown in the above link is
> redundant - haClose is never going to be outside the H/L range for 
today. Accordingly I have changed
> your code as below. You know my reasons for substituting ValueWhen() 
for Ref().
> 
>   {Heikin-Ashi}
> HaClose:=(O+H+L+C)/4;
> HaOpen:=ValueWhen(2,1,(O+C)/2);
> HaHigh:=Max(H,HaOpen);
> HaLow:=Min(L,HaOpen);
> HaOpen;  {Dk Green}
> HaHigh;  {Blue}
> HaLow;   {Red}
> HaClose  {Black}
> 
> Thanks again.
> 
> Roy
> 
> 
> > MS code from heikin-ashi explanation at
> > http://www.traders.
> > com/Documentation/FEEDbk_docs/Abstracts_new/Valcu/valcu.html
> >
> > ===========
> > heikin-ashi
> > ===========
> > ---8<----------
> >
> > haClose:=(O+H+L+C)/4;
> > haOpen:=Ref((O+C)/2,-1);
> > haHigh:=Max(H,Max(haOpen,haClose));
> > haLow:=Min(L,Min(haOpen,haClose));
> >
> > haOpen;  {Dk Green}
> > haHigh;  {Blue}
> > haLow;   {Red}
> > haClose  {Black}
> >
> > ---8<----------
> >
> >
> > jose '-)
> >
> >
> > --- In equismetastock@xxxxxxxxxxxxxxx, hcour <no_reply@xxxx> 
wrote:
> > > This indicator is in Feb's TASC mag and they include complete 
codes
> > > for all kinds of charting programs, except MS! Has anyone coded 
this
> > > for MS, or know of a site where I could find it? I looked at the
> > > usual sites but didn't see it.
> > >
> > > Thanks much,
> > > Harold
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> >  http://groups.yahoo.com/group/equismetastock/
> >
> > To unsubscribe from this group, send an email to:
> >  equismetastock-unsubscribe@xxxxxxxxxxxxxxx
> >
> > Your use of Yahoo! Groups is subject to:
> >  http://docs.yahoo.com/info/terms/
> >
> >
> >
> >



 
Yahoo! Groups Links

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

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

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