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

[amibroker] If Position = flat, I would like to have a stock as equity


  • Date: Wed, 20 Jan 2010 12:12:04 -0000
  • From: "gwantel" <gwantel@xxxxxxxxx>
  • Subject: [amibroker] If Position = flat, I would like to have a stock as equity

PureBytes Links

Trading Reference Links

Hi,

if my system is flat I would like to have a stock in the Equity instead of the linear line that comes from e.g. 2% interest.
Does anyone know how I could tell Amibroker for the case that the system is flat to take an ETF (e.g. TLT) as the equity?

I need an extension for e.g. this system:
Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );

// trade on next bar open
SetTradeDelays( 1, 1, 1, 1 );
BuyPrice = SellPrice = Open; 

// trade size: 25% of current portfolio equity
SetPositionSize( 25, spsPercentOfEquity );

What can I write that this system takes the ETF TLT when it is flat?





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

**** 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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/