PureBytes Links
Trading Reference Links
|
Try this
TimeFrameSet(inDaily);
MACDb = (MACD())>Signal();
MACDs = (MACD())<Signal();
TimeFrameRestore();
Buy = TimeFrameExpand(MACDb,inDaily) AND Cross(MACD(),Signal());
Sell = TimeFrameExpand(MACDs,inDaily) AND Cross(Signal(),MACD());
Filter = Sell or Buy;
AddColumn(Buy,"Buy",1);
AddColumn(Sell,"Sell",1);
AddColumn(C,"close",1.2);
On 10/06/07, tummalaajaybabu <tummalaajaybabu@xxxxxxxxx> wrote:
> Hi
>
> I'm looking for a stock is in it's daily uptrend say macd > signal line
> and whenever the stock has completed it'c correction on 30mt. charts the
> macd has crosses it's signal line. I want to scan that macd > signal
> line in 30mt. charts when the daily macd must be above it's signal line.
> And the reverse is true for sell.
>
> for instance buying i'am using this afl :
>
>
> TimeFrameSet(inDaily);
> MACDb = (MACD())>Signal();
> TimeFrameRestore();
>
> Filter = TimeFrameExpand(MACDb,inDaily) AND Cross(MACD(),Signal());
> TimeFrameRestore();
>
> Buy = Filter;
>
> AddColumn(C,"close",1.2);
>
> for instance selling i'm using this afl:
>
>
> TimeFrameSet(inDaily);
> MACDs = (MACD())<Signal();
>
>
> TimeFrameRestore();
>
> Filter = TimeFrameExpand(MACDs,inDaily) AND Cross(Signal(),MACD());
> TimeFrameRestore();
>
> Sell = Filter;
>
> AddColumn(C,"close",1.2);
>
> How to combine these two in one afl scanning code. I have tried but
> failed.
>
> Thanks in advance for clubbing afl.
>
> Ajay
>
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|