double shareCalc = Math.Floor(unitSize / ((resistance1 - Support1) * winningPercentage));
int shareQuantity = Convert.ToInt32(shareCalc);
so that i can use my double value as an int for the purpose of determining and entering share quantity in my order code.
I keep getting this message:
**NT** Error on calling 'OnBarUpdate' method for strategy 'BasicPivot/13eb629f4d0544df810a5ccff04f6238': Value was either too large or too small for an Int32.
Please advise, and thanks in advance.
Regards,
Andrew
Comment