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

Re: [amibroker] Re: AFL Help appreciated



PureBytes Links

Trading Reference Links

No

You asked for the formula to return a yes if the closing price was within 3%
plus or minus of the 50 day SMA

That is what Terry's code returns.

Your version would return a yes in any instance where the closing price was
NOT within 3% plus or minus of the 50 Day SMA

Your version says this

"buy if close is greater than 103% of the 50 Day SMA or if the close is less
than 97% of the 50 Day SMA.


----- Original Message ----- 
From: "jim_trades_stocks" <jnk1997@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, December 17, 2005 4:07 PM
Subject: [amibroker] Re: AFL Help appreciated


> Thanks for the quick reply,
> I think it's the opposite.
>
> myMA = MA(C,50);
> Buy = yourConditions AND C * 1.03 > myMA AND C * 0.97 < myMA;
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxxx> wrote:
> >
> > myMA = MA(C,50);
> > Buy = yourConditions AND C * 1.03 < myMA AND C * 0.97 > myMA;
> >
> > Test it.
> > --
> > Terry
> > -----Original Message-----
> > From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
> On
> > Behalf Of jim_trades_stocks
> > Sent: Saturday, December 17, 2005 11:12
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] AFL Help appreciated
> >
> > Hello,
> >
> > I would like to add the following condition to my AFL buy formula
> but
> > don't know how to code %.
> >
> > AND the close price today is within 3% (plus or minus) of the 50
> day SMA
> >
> > Is this possible to code?
> >
> > Thanks
> >
> > Jim
> >
> >
> >
> >
> >
> >
> > 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
>
>
>
>
>
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/