I have some criteria to determine Share size when submitting an order:
EnterLongStopLimit(Convert.ToInt32(100 / ATR1[0]), High[0] + (10 * TickSize), High[0], "L");
At times on higher prices instruments my share size is Below 1 share. It seems as if my equation result is between 1 and .05 then the strategy rounds up to 1 share. However if the equation result is below .5 then the strategy defaults to 100 shares.
Is there a way to make any results under 1 round up to 1 for share size? Or maybe even change the default to 1 share instead of 100, if this is even what is happening?
Thank you very much for you help,
Ryan

Comment