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

Re: [amibroker] round lot size



PureBytes Links

Trading Reference Links

You may have misunderstood my question. I know the RoudLotSize setting. My question was is there a way to "rounding to the nearest" instead of "rounding down".
Since I use dynamic position sizing, and have to use percentage for PositionSize, I can't just add "24.99* buyprice" to the PositionSize for roundlotsize=50.
----- Original Message -----
Sent: Monday, September 05, 2005 7:22 PM
Subject: Re: [amibroker] round lot size

use the RoundlotSize setting in your settings. When
set to 1, 10, 100, etc Amibroker will round all your
positions so that your backtested trades will all be
rounded to your selected size.

example trades

XY 550
AMAT 120
GOOG 10

etc

--- Mark H <amibroker@xxxxxxxxxxxxx> wrote:

> I understand round lot size is used to "rounding
> down", from example, RoundLotSize=50, and position
> size 3042 is rounded to 3000.
> Is there a way to "round to the neast even number"?
> like to 3050 in the above example, which makes more
> sense.
>
> Thanks for any answers.
>
> - Mark



     
           
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/


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