I have in variables:
privateint aTRduration = 10;
privateint dOLLARrisk = 500;
privateint QUANTITY = 0;
and the calculation that I want to do before I go long is:
QUANTITY = DOLLARrisk / ATR(ATRduration) * 50;
With the desire to go long QUANTITY number of ES contracts depending on the ATR is at that time for the user inputed duration.
When I compile, I get CS0266 - click for info (which doesn't give me anything) and the Error says "Cannot implicityly convert type 'double' to 'int'. An explicit conversion exists (are you missing a cast?)
Other than the one that should be on my leg from the last time that I kicked my computer, I don't think that I'm missing one.
Any explanation and advice is very much appreciated.
Comment