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

[amibroker] trading FOREX with MARGINS instead of FUTURES settings



PureBytes Links

Trading Reference Links

Hello,

I followed the instruction in the AB Knowledge base, but I it doesn't
seem to work if I trade pairs which don't contain the base currency.
For example if I set USD as base, aud.jpy is not backtesting correctly.
I set the currencies in the preferences,and in the symbol information 

Also I dont like to use lots, but I prefer to size the position as a
percentage of the equity so I tried this (no futures mode):

Lets say the margin are 0.5% I use the settings

Mar=0.5;// corresponds to Npos=40;
NPos=30; 
SetOption("AccountMargin",MArg);//(1+Nleva*stl/100)
SetPositionSize(100*Pos,spsPercentOfEquity );

But the position size is never greater than the one corresponding to
5%(Npos=20)

Anybody else using AB to backtest pairs like that?

Thanks

Ly


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

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

*********************
TO GET TECHNICAL 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/