PureBytes Links
Trading Reference Links
|
Jens,
first you must decide what timeframe you want to use.
Let's assume you want the number of new lows for a 100-day period.
Then something like this will work (scan):
Timeframe = 100; //choose your timeframe
NewLos = (LLV( Ref(L,-1), Timeframe ) == Ref(L,-1);
Filter = NewLos; //now filter for your stocks
//Now you are creating an artificial ticker symbol:
AddToComposite(Filter,"~NewLows","X",1|2|4|16);
------------------------------------------------------
After this, you can plot the artificial ticker with
just like any indicator:
NewLo = Foreign ("~NewLows","X") ; // This is your plot
----------------------------
With NEW HIGHS it is bascically the same, just use HHV instead of LLV.
Hope this helps.
Werner
--- In amibroker@xxxxxxxxxxxxxxx, "meningsloes3003" <hildestal@xxxx>
wrote:
>
>
> I would like to have a simple "new highs/lows indicator".
> But I dont know how to program it.
> Just plotting two lines, one for new lows, and one
> for new highs, as an indicator.
>
> I suspect this must be done through a scan, in some way,
> I have no idea how to do it.
> Does anyone use this, and have a suggestion?
>
> Have searched the forum, it seems this subject hasnt been up before.
> I couldnt find it, surprisingly.
>
> Regards,
> /Jens.
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/
|