#region Variables
// Wizard generated variables
private int accountValue = 50000; // Default setting for AccountValue
private double riskTolerance = 0.015; // Default setting for RiskTolerance
private double stopLoss = 0.04; // Default setting for StopLoss
// User defined variables (add any user defined variables below)
#endregion
I then have the following Method, which should yield a round 100 lot:
public double ShareQuantity()
{
double x = Math.Round(((((1/stopLoss)*(accountValue*riskTolerance))/GetCurrentAsk())/100),0);
return x * 100;
}
I have various conditions, then the execution line:
EnterLong(ShareQuantity,"");
For some reason, it does not seem to be working. I greatly appreciate any help anyone can provide.
Thank you.

Comment