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

Re: [amibroker] New High



PureBytes Links

Trading Reference Links

I have a PositionScore problem and need help.

When BuyState ==1, I would like PositionScore to be RawScore_One if I 
do NOT own the stock and RawScore_Two if I do own the stock on the 
day that PositionScore is determined.  How do I do this?

For example, lets say that I want to keep a stock that I currently 
own when BuyState ==1 when its RSI Stochastic is above 65, as long as 
it remains on the top 50 list of stocks in my Watchlist, and 
regardless of its NCAlpha.  So, assume that a stock's Ncalpha is 
negative (or positive) on a particular day but its RSI Stochastic 
stays above 65 on this BuyState day.  Thus, in this case 
PositionScore should not be zero or scoreNoRotate as we want 
AmiBroker to determine if the PositionScore warrants keeping the 
stock and/or rotating into another stock.  However, I want to rotate 
into only positive Ncalpha stocks when BuyState ==1.  So, 
PositionScore must be determined based on whether I own the stock or 
not on a particular day.  That is, PositionScore must be non-zero 
when I own a stock with RSI Stochastic > 65 so that AmiBroker can 
decide it it should keep the stock during the BuyState period 
regardless of its NcAlpha.  However, the PositionScore for all stocks 
that I do not presently own must have a PositionScore of zero when 
BuyState == 1 and their NCalpha is less than zero, so that AmiBroker 
does not purchase any negative NCalpha stocks.

Help is appreciated and thanks!!

Bert



------------------------ 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/