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

[amibroker] Re: MarginLoan control



PureBytes Links

Trading Reference Links

Hi,

The easiest approach is to set the margin from the AA Settings window 
(e.g. 100 means no margin, 50 means max overnight margin allowed by 
U.S. markets, 50% paid by you, 50% by your broker).

If you want to do it using code, try SetOption("AccountMargin", 50), 
for example.

Mike

P.S. Where did you read that Foreign("~~~Equity", "L") was equal to 
cash? Or are you making an assumption? 

--- In amibroker@xxxxxxxxxxxxxxx, "guhu0434" <guhu0434@xxx> wrote:
>
> Hello,
> 
> I hope somebody can help me with this question. How can I control 
the 
> MarginLoan during backtest?
> 
> As I see, Equity and Cash can be controlled via the ~~~EQUITY 
> eq = Foreign("~~~EQUITY", "C");
> cash = Foreign("~~~EQUITY", "L");
> 
> I tested the other values "H","O","V" as well, but can't find a 
hint 
> for the marginloan.
> 
> I would like to improve my moneymanagement...
> 
> With thanks in advance...
> 
> Guido
>



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

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/