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

Re: [amibroker] Re: Rotational Question



PureBytes Links

Trading Reference Links



Thank you for the assistance. I am still having some issues to get it to work but it has been a good learning experience.

Derek


From: re_rowland <rowland@xxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Friday, August 21, 2009 11:46:42 AM
Subject: [amibroker] Re: Rotational Question

Derek,

The psuedo code logic you need is something like:

If S&P < its 200 MA
then set PositionScore of bond funds to 999 (very high value)
else set PostionScore normally

If your worst held rank is x, then include at least x number of bond funds in your universe to force the rankings of all other securities below the worst held rank cut off.

This will work for backtesting purposes.  In real time, then you would only need to buy 1 bond fund instead of x.

--- In amibroker@xxxxxxxxxxxxxxx, "djamibroker" <djamibroker@xxx> wrote:
>
> I have been trying to search the archives for some assistance on rotating from a strategy to a single security if a condition is met but its hard to find within all of the messages.
>
> What I would like to do is have a strategy that buys mutual funds based on lets say ROC. However if the filter condition of the SPX 50 day moving average is less than its 200 day I would like to have the system only buy a certain single security like a bond funds for example.
>
> I have the buy part figured out but cant seem to figure out how to buy a single fund if the filter condition is met.
>
> Thank you for reviewing.
>
> Derek
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___