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

[amibroker] Puzzling forex trade size



PureBytes Links

Trading Reference Links

Hi,

I've got this code at the start to set my trade size.

MarginDeposit = 1; // 100:1 leverage
TickSize = 0.01; // for JPY Currencies
TickSize = 0.0001;
PointValue = 1/TickSize; //this adjusts profit so for 1 pip = $1 (tick 
sizes: 0.01 for yen AND 0.0001 for others)
SetPositionSize(1,spsShares);

On most trades, the trade size is 1, how I expect.

However, some trades are a fractional size like 0.7 or 0.3

It doesn't how much equity I have 1,000 or 1,000,000. The trade size is 
still 0.7 or 0.3 for those particular trades.

When I change to SetPositionSize(10,spsShares); very few of the share 
sizes are 10, most are values under 10.

This is a very puzzling symptom as I thought that if you have enough 
money, you should be able to set the share size you want.

Has anyone else come across this before?

Alan


------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 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/

<*> 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/