PureBytes Links
Trading Reference Links
|
--- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> Stefan,
>
> Thank you ofr your valuable post.
> Just one note: there are also other functions
> that allow recursive-type calculations.
>
> Cum() is excellent example and it makes OBV re-implementation
> much easier:
>
> addvol = IIF( Close > Ref( Close, -1 ), Volume,
> IIF( Close < Ref( Close, -1 ), -Volume, 0 ) );
>
> /* cumulative sum is simple */
> obvreplacement = CUM( addvol );
>
> Also other functions use indirectly previous value.
>
> For example your
> foo_today = Max(foo_yesterday,anothervalue).
>
> in AFL is called: Highest( array ), HighestSince( condition, array )
>
> Anyway nice article.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> >
Ooops, embarrassing! Two possibilities I have missed! Well, I'm still
a newbie. Thank you Tomasz for completing the list!
best regards,
Stephan
|