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

RE: [amibroker] Re: Fw: Metastock's formula into AFL



PureBytes Links

Trading Reference Links

Peter:

I won't bother you again. If you look at your objectives using your money in
markets around the world, you will want to know what you are doing. This
requires effort to learn. The AB help users guide is one of the best
around. Start simple. You CAN write simple formulas in AFL language after
just a little bit of reading. Ask for specific help when you get stuck and
someone will help. Eventually you learn enough to help people here just
like they help you. If you are not willing or able to do that simple thing,
then folks here will just delete your messages.

I have spoken enough.

Good luck,

Ken

-----Original Message-----
From: iddm2000 [mailto:pibotto@x...]
Sent: Monday, July 01, 2002 11:57 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Fw: Metastock's formula into AFL


Ken
I don't know Metastock language, I find formulas in internet and I
don't know how to translate them into AFL language, because I don't
know how to write in this language. I use Amibroker and I copy in my
system the formulas that I find here or in Amibroke's home page, but
really I don't know how to write in AFL language. I did the example
in AA but it doesn't go.
Thanks
Peter
--- In amibroker@xxxx, "Ken Close" <closeks@xxxx> wrote:
> Peter: I understand being new, as I stated. But do you intend to
use AB??
> like you use Metastock??
>
> If yes, you will need to know how to do basic things. As you
become more
> familiar, your use of some of the great power of AB will start to
come out.
> AB can do so much more than metastock, you will hardly believe it.
>
> But you have to start learning, even if it is just basics.
>
> Also, you will learn so much more and get so much more help if you
will try
> yourself to convert one of your more simple Metastock formulas.
Try it in
> AB and if you get errors and can not figure out what to do, then
post your
> message here with the code you tried that did not work. People
here will
> then point out what needs to be changed and you can use that.
Others might
> point out a different way of doing the same thing, and you learn
even more.
>
> Thanks for responding and I urge you to try some simple codes on
your own,
> then share your results here, whether they are good or bad.
>
> I should point out that if you have learned Metastock language,
the change
> to AB is very simple. I copy and paster metastock formulas right
into the
> AA window of AB and it is amazing that much of it works exactly as
copied.
> Other changes are of course necessary.
>
> For example, I took one of your messages and copied it in total
into the AA
> window. The Blue and Bold are commands that are IDENTICAL in AB
from MS, so
> some of the work is already done.
>
> dn:= 1.0;
> up:= 1.0;
> gap:= 100*(Open - Ref(Close, -1))/Ref(Close, -1);
> prf:= If(gap>=up, Open-Close, If(gap<=-dn, Close-Open,0));
> Cum(prf);
>
>
> In fact, except for having to change ":=" to just "=", and "If"
to "Iff",
> and turn the last line into an array (XX=Cum(prf); this is all
set to try.
>
> Anyway, these are just some thoughts to help and encourage you
to "get
> going".
>
> Ken
>
>
>
>
> -----Original Message-----
> From: iddm2000 [mailto:pibotto@x...]
> Sent: Monday, July 01, 2002 10:51 AM
> To: amibroker@xxxx
> Subject: [amibroker] Re: Fw: Metastock's formula into AFL
>
>
> Ken,
> I am a new user of AB and I don't know how to use AFL language so
if
> someone can translate my metastock formula I'm very happy.
> Thanks
> Peter
>
> --- In amibroker@xxxx, "Ken Close" <closeks@xxxx> wrote:
> > Peter:
> >
> > What are your intentions in reading the users guide and learning
> at least
> > the basics of AB?
> >
> > What have you learned so far from Anthony's translations of
> several of your
> > requests?
> >
> > Recently, I was a newbie to AB and have learned a lot from this
> helpful
> > board. It is one of the most helpful boards on all of yahoo
> groups. I do
> > not want to sound unfriendly and I also personally am willing to
> help you to
> > the extent I can, but I have never seen one message after
another
> with
> > "Please translate this....."
> >
> > Hence my questions.
> >
> > Thanks,
> >
> > Ken
> > -----Original Message-----
> > From: Inwind [mailto:pibotto@x...]
> > Sent: Monday, July 01, 2002 9:57 AM
> > To: amibroker@xxxx
> > Subject: [amibroker] Fw: Metastock's formula into AFL
> >
> >
> > Can someone please convert this Metastock's formula into AFL -
> Thanks
> >
> > Enter Long:
> > Mov(C,6,S) > Ref(Mov(C,6,S),-1) AND
> > Mov(P,3,S) > Mov(P,25,S) AND
> > Alert(Cross(Mov(C,9,S),Mov(C,18,S)),10)
> > Close Long:
> > Cross(Mov(C,18,S),Mov(C,9,S))
> >
> > Enter Short:
> > Mov(C,6,S) < Ref(Mov(C,6,S),-1) AND
> > Mov(P,3,S) < Mov(P,25,S) AND
> > Alert(Cross(Mov(C,18,S),Mov(C,9,S)),10)
> >
> > Close Short:
> > Cross(Mov(C,9,S),Mov(C,18,S))
> >
> > Maximum Loss Stop:
> > Long and short positions
> > Maximum loss of 0.016 points.
> >
> >
> > Initial equity: Points only
> > Positions: Long and short
> > Trade Price: Open
> > Trade delay: 1
> >
> > Thanks
> > Peter
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/




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