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

Re: [amibroker] Re: Help with Buy and Sell Signals for MA



PureBytes Links

Trading Reference Links

Thanks, Graham!  An excellent start!

Millowena

On Wed, 12 Apr 2006 10:31:19 +0800 Graham <kavemanperth@xxxxxxxxx>
writes:
> this example just has a few common things used in AFL and is not the
> definitive article for everything
> AFL Example
> http://www.amibroker.com/library/detail.php?id=545
> 
> if you require my services directly click on my email in my website 
> as
> I work from different base than this email which is just for these
> forum groups
> 
> 
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire.net.au/~eb_kavan/ab_write.htm
> 
> 
> On 4/12/06, millowena@xxxxxxxx <millowena@xxxxxxxx> wrote:
> > Hi Graham!
> >
> > I want to learn, also, so I went to the library in search of your
> > referenced article...  No joy...  Would you please point us in the 
> right
> > direction?
> >
> > Thanks!
> >
> > Millowena
> >
> > On Wed, 12 Apr 2006 07:51:35 +0800 Graham 
> <kavemanperth@xxxxxxxxx>
> > writes:
> > > Training is a hard thing to do as there can be a lot to learn. I 
> can
> > > provide this type of service but location and time differences 
> can
> > > make it disjointed, and I have no structured teaching aids as 
> this
> > > is
> > > not my main business.
> > >
> > > Best advice is to start simple and work your way up. I provided 
> a
> > > basic AFL example in the AFL library on how to write a system, 
> have
> > > a
> > > look there and see if this gives you any clues on how to 
> progress
> > > further.
> > > You can then ask for specific help from this wonderful group of
> > > people.
> > >
> > >
> > >
> > > --
> > > Cheers
> > > Graham
> > > AB-Write >< Professional AFL Writing Service
> > > Yes, I write AFL code to your requirements
> > > http://e-wire.net.au/~eb_kavan/ab_write.htm
> > >
> > >
> > >
> > > On 4/12/06, Terry <MagicTH@xxxxxxxxxxx> wrote:
> > > > Graham is in the business of writing AFL for contract. I 
> don't
> > > know
> > > > about training.
> > > >
> > > > He can respond if he's interested.
> > > >
> > > > Where do you live?
> > > > --
> > > > Terry
> > > >
> > > > -----Original Message-----
> > > > From: amibroker@xxxxxxxxxxxxxxx 
> [mailto:amibroker@xxxxxxxxxxxxxxx]
> > > On
> > > > Behalf Of christophermuch
> > > > Sent: Tuesday, April 11, 2006 09:36
> > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > Subject: [amibroker] Re: Help with Buy and Sell Signals for 
> MA
> > > >
> > > > Terry,
> > > > Thanks for the help.  I'm in need of some traing in AFL and 
> am
> > > > willing to compensate anyone for teaching me the language.  
> Do
> > > you
> > > > have any ideas on where I can get some training?
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxx> 
> wrote:
> > > > >
> > > > > You have 2 crosses, which will likely not happen on the 
> same
> > > day.
> > > > IF you
> > > > > assume the faster one will cross first and then this works.
> > > > >
> > > > >
> > > > >
> > > > > MA1 = MA(C,4);
> > > > >
> > > > > MA2 = MA(C,9);
> > > > >
> > > > > MA3 = MA(C,18);
> > > > >
> > > > >
> > > > >
> > > > > Buy = MA1 > MA2 AND Cross(MA1,MA3);
> > > > >
> > > > > Sell = Ref(MA1 < MA2 AND Cross(MA3,MA1),-1);
> > > > >
> > > > >
> > > > >
> > > > > //if you want to Buy on the next Day Open (after the 
> conditions
> > > > are met)
> > > > > add this code:
> > > > >
> > > > > SetTradeDelays(1,1,1,1);
> > > > >
> > > > > BuyPrice = ShortPrice = SellPrice = CoverPrice = O; //Trade 
> at
> > > the
> > > > Open
> > > > >
> > > > > //You can also set these in AA->Settings->Trades tab
> > > > >
> > > > >
> > > > >
> > > > > Plot(C,Name(),IIf(C > O,colorGreen,colorRed),styleBar |
> > > > styleThick);
> > > > >
> > > > > Plot(MA1,"MA1",colorLightBlue);
> > > > >
> > > > > Plot(MA2,"MA2",colorBlue);
> > > > >
> > > > > Plot(MA3,"MA3",colorDarkBlue);
> > > > >
> > > > > 
> PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,-10);
> > > > >
> > > > > PlotShapes(IIf(Sell,
> > > shapeDownArrow,shapeNone),colorRed,0,H,-10);
> > > > >
> > > > > //Shapes plot on day of signal.
> > > > >
> > > > > --
> > > > >
> > > > > Terry
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: amibroker@xxxxxxxxxxxxxxx
> > > [mailto:amibroker@xxxxxxxxxxxxxxx]
> > > > On
> > > > > Behalf Of christophermuch
> > > > > Sent: Monday, April 10, 2006 14:22
> > > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > > Subject: [amibroker] Help with Buy and Sell Signals for MA
> > > > >
> > > > >
> > > > >
> > > > > I'm trying to write an simple AFL formula that:
> > > > >
> > > > >
> > > > >
> > > > > 1)Buy on the first day that the 4-day moving average crosses 
> the
> > > 9-
> > > > day
> > > > >
> > > > > moving average and the 18-day moving average.
> > > > >
> > > > > 2)Sell on the second day the 4-day moving average drops 
> below
> > > the
> > > > 9-
> > > > >
> > > > > day moving and the 18-day moving average.
> > > > >
> > > > >
> > > > >
> > > > > I would really appreciate the help.
> > > > >
> > > > > Christopher T. Much
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Please note that this group is for discussion between users
> > > only.
> > > > >
> > > > >
> > > > >
> > > > > To get support from AmiBroker please send an e-mail directly 
> to
> > > > >
> > > > > SUPPORT {at} amibroker.com
> > > > >
> > > > >
> > > > >
> > > > > For other support material please check also:
> > > > >
> > > > > http://www.amibroker.com/support.html
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Yahoo! Groups Links
> > > > >
> > > > >
> > > > >
> > > > >     http://groups.yahoo.com/group/amibroker/
> > > > >
> > > > >
> > > > >
> > > > >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > > > >
> > > > >
> > > > >
> > > > >     http://docs.yahoo.com/info/terms/
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Please note that this group is for discussion between users 
> only.
> > > >
> > > > To get support from AmiBroker please send an e-mail directly 
> to
> > > > SUPPORT {at} amibroker.com
> > > >
> > > > For other support material please check also:
> > > > http://www.amibroker.com/support.html
> > > >
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Please note that this group is for discussion between users 
> only.
> > > >
> > > > To get support from AmiBroker please send an e-mail directly 
> to
> > > > SUPPORT {at} amibroker.com
> > > >
> > > > For other support material please check also:
> > > > http://www.amibroker.com/support.html
> > > >
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > Please note that this group is for discussion between users 
> only.
> > >
> > > To get support from AmiBroker please send an e-mail directly to
> > > SUPPORT {at} amibroker.com
> > >
> > > For other support material please check also:
> > > http://www.amibroker.com/support.html
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/