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 llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    14 views
    0 likes
    Last Post strategist007  
    Working...
    X