Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help on MQL4 Function change to NJ

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_JoshP
    replied
    bonnyshi,

    You will need to use NinjaTrader equivalent code.
    AccountEquity = AccountValue
    PipsValue = not sure what this represents. Maybe you can try TickSize or Instrument.MasterInstrument.PointValue

    Leave a comment:


  • bonnyshi
    started a topic Help on MQL4 Function change to NJ

    Help on MQL4 Function change to NJ

    Hello

    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

Latest Posts

Collapse

Topics Statistics Last Post
Started by D Trader, Today, 04:02 PM
0 responses
2 views
0 likes
Last Post D Trader  
Started by aligator, Today, 02:09 PM
2 responses
15 views
0 likes
Last Post Harry
by Harry
 
Started by NinjaTrader_Kate, Today, 02:40 PM
0 responses
5 views
0 likes
Last Post NinjaTrader_Kate  
Started by patpat, Today, 11:34 AM
1 response
6 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by crystalet, Today, 10:41 AM
3 responses
14 views
0 likes
Last Post crystalet  
Working...
X