PureBytes Links
Trading Reference Links
|
Constant1=2;
Constant2=3;
Value1=0;
for( i=1;i < BarCount; i++ )
{
Value1[i]=constant1[i]+(value1[i-1]*Constant2[i]);
}
Filter=1;
//AddColumn(Value,"");
AddColumn(Value1,"v1");
----- Original Message -----
From: das300@xxxxxxxxxx
To: amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, November 09, 2004 10:43 PM
Subject: [amibroker] Re: how to code this
VALUE := KONSTANT + (PREV * Konstant2)
:-)
--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:
> Can you show how you would code it in Metastock ?
>
>
> Anthony
>
> ----- Original Message -----
> From: das300@xxxx
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Tuesday, November 09, 2004 10:25 PM
> Subject: [amibroker] Re: how to code this
>
>
>
> I cant see how this would help byt thanks..
> MOZ
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso"
<ajf1111@xxxx>
> wrote:
> > I think AMA() or AMA2() could work. Check the Help manual.
> >
> > Anthony
> > ----- Original Message -----
> > From: das300@xxxx
> > To: amibroker@xxxxxxxxxxxxxxx
> > Sent: Tuesday, November 09, 2004 2:55 PM
> > Subject: [amibroker] how to code this
> >
> >
> >
> > i want to code this in AB . In metastock i would have used
the
> PREV
> > command but i dont thinkthere is one.
> >
> > VALUE[bar no1 ] = KONSTANT + ([VALUE'i-1] * Konstant2)
> > where i = no of bars that have happened , i.e bars = days .
> > then i wish to plot the VALUE at each i equalling a bar on
chart .
> >
> > lets say
> > Konstant = 2
> > Konstant2 = 3
> >
> > value[day 1] = 2+ 0*3 = 2
> > value[day 2] = 2+ 2*3 = 8
> > value[day 3] = 2+ 8*3 = 26
> > value[day 4] = 2+ 26*3 = 74
> >
> > I know it will use arrays and for loop ..but i have little
> knowledge
> > about making it happen ;-)
> > thanks
> > MOZ
> >
> >
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> >
> > ----------------------------------------------------------------
----
> ----------
> > Yahoo! Groups Links
> >
> > a.. To visit your group on the web, go to:
> > http://groups.yahoo.com/group/amibroker/
> >
> > b.. To unsubscribe from this group, send an email to:
> > amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >
> > c.. Your use of Yahoo! Groups is subject to the Yahoo!
Terms of
> Service.
> >
> >
> >
> > [Non-text portions of this message have been removed]
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
>
> --------------------------------------------------------------------
----------
> Yahoo! Groups Links
>
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
> b.. To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> [Non-text portions of this message have been removed]
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
b.. To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|