Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Suggestion : Extend Order Properties

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

    Suggestion : Extend Order Properties

    It would make sense to make position sizing an extension type in ninjascript and add it to the order properties. You can still have the strategy override type but it would be nice to have an extension type that could be utilized for any strategy.

    Alternatively, you could add a OnPositionSize virtual method to StrategyBase that allows the user to calculate the position size when using managed orders like EnterLong() which don't specify a size.
    Last edited by GrumpyTrader; 12-02-2015, 12:01 PM.

    #2
    Hello GrumpyTrader,


    Thanks for the feedback.



    Your suggestion has been submitted and accepted for consideration for a future NinjaTrader release by our product development team. I'll update this post with a tracking ID for this request when it is available
    Shawn B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by GrumpyTrader View Post
      It would make sense to make position sizing an extension type in ninjascript and add it to the order properties. You can still have the strategy override type but it would be nice to have an extension type that could be utilized for any strategy.

      Alternatively, you could add a OnPositionSize virtual method to StrategyBase that allows the user to calculate the position size when using managed orders like EnterLong() which don't specify a size.
      How is that different from Position.Quantity?

      Comment


        #4
        I'm suggesting you make the sizing logic an extension type so they can be extended and called without any added code to a specific strategy.

        That way when back testing a strategy in the Strategy Analyzer under Order Properties you would be able to have (instead of just Default quantity, Account size and Strategy) you can have Fixed Risk, Percent Risk, etc.

        Comment


          #5
          Originally posted by GrumpyTrader View Post
          I'm suggesting you make the sizing logic an extension type so they can be extended and called without any added code to a specific strategy.

          That way when back testing a strategy in the Strategy Analyzer under Order Properties you would be able to have (instead of just Default quantity, Account size and Strategy) you can have Fixed Risk, Percent Risk, etc.
          Interesting idea.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          382 views
          1 like
          Last Post Gavini
          by Gavini
           
          Started by oviejo, Today, 12:28 AM
          0 responses
          1 view
          0 likes
          Last Post oviejo
          by oviejo
           
          Started by pechtri, 06-22-2023, 02:31 AM
          10 responses
          125 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Yesterday, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Working...
          X