Hello,
I am trying to find code that will allow my strategy to determine the amount of mini lots it is able to use to open a position, based off a user defined MMR (balance/MMR). I am thinking something like LotAmount = (balance/MMR) And have this update with each period. Also, how important is it to have the LotAmount variable be a Double rather than an integer? Will order entry look at the integer value and truncate it to a whole number? Or will it not even recognize it? If it is important how can I convert a integer to a double? Can anyone provide any input to any of these questions for me? Any help would be appreciated.
Thanks,