The particular reason is because I want to be able to take a fixed dollar amount, divide it by the risk to get the position size.
I'm coming up with errors because it's rarely a whole number.
double POSITIONsize = Math.Round(500/(ATR(Closes[0], 20)[0]*50));
EnterLongLimit(0, false, POSITIONsize, Lows[0][0] + OFFSETentry * TickSize, "Enter Long");
doesn't seem to do the trick because the system doesn't know what a .3 (for example of a contract is) and "int POSITIONsize" comes up with the same error.
Thank in advance.
Comment