Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    834 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,290 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    9 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    62 views
    0 likes
    Last Post halgo_boulder  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    8 views
    0 likes
    Last Post Option Whisperer  
    Working...
    X