I have expericence on MQL4(MT4) but for NinJaTrader I am newbie.
In MQL4 I have compile a "OrderLot" Function to calculate the OrderLots as below:
double Lots(double AccountEquity,double RiskPercent,double Entry,double StopLoss, double PipsValue)
{
OrderLot=AccountEquity * RiskPercent / ((Entry-StopLoss) * PipsValue);
return(OrderLot);
}
Is it possible using NinJa Strategy to compile this Function ? if not, how to modify it?
Thanks
Comment