PureBytes Links
Trading Reference Links
|
Hey thank you Jim, and thanks for you who generously share his/ her code.
I just tried the code and it works like a champ. I will modify a
little bit to fit my needs.
Thanks
On Sun, Mar 30, 2008 at 12:56 PM, JIM WIEHE <jim_wiehe@xxxxxxxxx> wrote:
>
> Awhile back someone was very generous when they posted something like what
> is below. It might be a little more than you understand at the moment but
> study,undrstand, and build upon it. Frankly, I dont think I could come up
> with this on my own but someone was kind enough to share. Pay it forward,
> when you can!! I dont know if this what you want? .... but it works
>
>
>
> Good Luck
>
>
>
> Jim Wiehe
>
>
>
>
>
>
>
> w = Param("Empty Watchlist First? Yes = 1, No = 2" , 1, 1, 2, 1);
>
> w1 = Param("Autofill Watchlist? Yes = 1, No = 2" , 1, 1, 2, 1);
>
> x = Param ( "Add Results to an Existing Watchlist? Yes = 1, No = 2" , 1 , 1
> , 2 , 1 ) ; // select whether to add results to watchlist or not
>
> y = Param("Set Watchlist Number", 51, 2, 60,1); // sets the watchlist
> number, but reserves the first 2 AND last 4 watchlists
>
> Clear = IIf(w ==1, 1, 0);
>
> if( LastValue(Clear) )
>
> {CategoryRemoveSymbol("", categoryWatchlist, y); }
>
>
>
>
>
>
>
>
>
> Cond1= RSI(15) >50; // the RSI is greater than 50
>
> ////////////////////////////////////////////////////////////////
>
>
>
> Filter = Cond1 AND SectorID() == 2 OR SectorID() == 3;//whatever stocks you
> are filtering/scanning
>
> Buy=Filter;
>
> AddColumn( Close, "Close ",1.2 );
>
> AddColumn(RSI(15),"RSI");
>
> AddTextColumn ( SectorID(1) , "Sector ");
>
>
>
> ///////////////////////////////////////////////////////////////////////////////////////////////
>
>
>
> autoFILL = IIf( w1==1, Filter,0 ) ;
>
> Add = IIf( x==1, Filter , 0 ) ;
>
> if( LastValue( Add OR autoFill ) )
>
> { CategoryAddSymbol( "", categoryWatchlist, y ); }// this set from above or
> parameters within AA menu
------------------------------------
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/
|