Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Money Management - Forex

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

    Money Management - Forex

    I am now virtually completed with the coding of my strategy, but now I need to add in the position sizing elements and I am completely clueless of how to do that.

    Currently everything is set to "DefaultSize" in my code, but how do I know what the default size is and how do I go about changing that to risk a percentage of my account?

    I imagine that it will be a bit difficult to size it exactly according to a percentage of account because it is forex and the quote currencies that I trade are not all the same as the account currency.

    can you send me to where I can find some documentation on this?

    Thanks!

    #2
    Hello jg123,

    I believe you mean "DefaultQuantity", this is going to set inside of your Strategy Parameters section of your strategy when you start it under "Order Properties" and using the "Set order quantity" to "by default quantity". Here a user can define the "Default quantity" of the strategy.

    To be able to set a risk amount this would have to be custom coded inside of your strategy and may be difficult like you stated. You may use something like "GetAccountValue()" and be able to manage your orders this way.

    Here is our Help Guide about the different Account values that you can get inside of your strategy.



    Let me know if you have any further questions.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    573 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X