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

Re: [amibroker] IIF statement



PureBytes Links

Trading Reference Links

Hello,

Slope can be measured in many ways.

> "Can I create a scan for all stocks that have risen x% in the last n 
> periods? Then can this be applied to indicators?"

This is simple ROC:

periods = 7;
Buy = ROC( ADX(), periods ) > 5; // generate buy signal when ADX has risen more than 5% over last 7 periods.

A little bit more complex approach is to use Linear regression slope:
http://www.amibroker.com/f?linregslope

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "darrinm81" <fmarx@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, August 04, 2004 9:46 AM
Subject: [amibroker] Re: Easiest way to scan for rising/falling/flat stocks


> Hey Graham,
> 
> Thanks for the suggestion. ROC and ADX do work to a degree, but is 
> there an Amibroker function that measures slop of an indicator?
> 
> I guess I need to work on the below line of thought:
> "Can I create a scan for all stocks that have risen x% in the last n 
> periods? Then can this be applied to indicators?"
> 
> I think I will work something out.
> 
> Thanks again!
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> > You can use ROC( x, period)
> > 
> > Cheers,
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> > 
> > -----Original Message-----
> > From: darrinm81 [mailto:fmarx@x...] 
> > Sent: Wednesday, August 04, 2004 2:47 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Re: Easiest way to scan for 
> rising/falling/flat stocks
> > 
> > Thanks for the reply.
> > 
> > ADX is one option I am investigating.
> > 
> > Does Amibroker provide a way of calculating the slope or gradient 
> of 
> > indicators?
> > 
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, Jason Hart <jhart_1972@xxxx> 
> wrote:
> > > If you're looking for the "easiest" way to find stocks trading 
> > flat, scan for low ADX readings...for example 
> > > Buy = ADX(14) <10 AND MA(V,50) > 100000;
> > > 
> > > 
> > > darrinm81 <fmarx@xxxx> wrote:What is the easiest way to identify 
> > stocks that are trading- flat, 
> > > up, down?
> > > 
> > > I also want to output the strengh/weakness of the stock. eg Flat 
> > =0, 
> > > uptrend > 0 etc etc
> > > 
> > > I was looking at calculating the gradient (slope) of a stocks 
> > moving 
> > > average.
> > > 
> > > Thanks in advance.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > > 
> > > Check group FAQ at: 
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > 
> > > 
> > > Yahoo! Groups SponsorADVERTISEMENT
> > > 
> > > 
> > > ---------------------------------
> > > 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 the Yahoo! Terms of 
> > Service. 
> > > 
> > > 
> > > 
> > > 
> > > ---------------------------------
> > > Do you Yahoo!?
> > > New and Improved Yahoo! Mail - Send 10MB messages!
> > 
> > 
> > 
> > 
> > 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
> 
> 
> 
> 
> 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
> 
> 
> 
>  
> 
> 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/