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

Re: [amibroker] Rotating Funds in system



PureBytes Links

Trading Reference Links

Dick,

This works for me.

newBuy = your long conditions
newSell = your short conditions
 
/* You will want to put USPIX and UOPIX into a watchlist AND check the "use
filter" button in the top right of the AA window. Alternatively, you can
just check the "all symbols" button without making a watchlist, it's just
slower */

Buy = (newBuy AND Name() == "USPIX") OR (newSell AND Name() == "UOPIX");
Sell = newBuy OR newSell;
Short=0;
Cover=0;

-- 
Terry

> From: "areehoi" <hoierman@xxxxxxx>
> Reply-To: amibroker@xxxxxxxxxxxxxxx
> Date: Mon, 17 Jan 2005 21:38:44 -0000
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Rotating Funds in system
> 
> 
> 
> I have two funds ProFund USPIX (a short fund) and UOPIX (a long fund)
> Both are long fund but one can switch from long to short or visa
> versa depending on ones systems signals. I've used the QQQQ's to get
> a signal then switched accordingly. Is there a a way one could set up
> in the Backtester so it would give you the long shot signals based on
> the fund rather than the QQQQ's?  Any suggestions on this will be
> appreciated.
> 
> Dick H.
> 
> 
> 
> 
> 
> 
> 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 --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/