Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Initial portfolio in backtesting

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

    Initial portfolio in backtesting

    Hi,

    I'm writing a strategy for backtesting where I need to start with an initial portfolio, let's say 100 stocks of AAPL filled at 115.26.

    How can I use this programmatically from ninja script, so far I see there's no way to set the custom fill price on a trade.

    Any ideas ?

    #2
    Hello yandreiy,

    Thanks for your post and welcome to the forums!

    Regrettably this is not possible.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you for quick reply.
      Let me ask another question: I see there are custom fill types that can be implemented, would it be possible to implement something like executing a trade at a given fill price or something close to this behavior, without hacking too much ? In theory I could alter the historical data, or perhaps use the slippage parameter.

      This is all for back-testing.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Haiasi, 04-25-2024, 06:53 PM
      2 responses
      17 views
      0 likes
      Last Post Massinisa  
      Started by Creamers, Today, 05:32 AM
      0 responses
      5 views
      0 likes
      Last Post Creamers  
      Started by Segwin, 05-07-2018, 02:15 PM
      12 responses
      1,786 views
      0 likes
      Last Post Leafcutter  
      Started by poplagelu, Today, 05:00 AM
      0 responses
      3 views
      0 likes
      Last Post poplagelu  
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,408 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Working...
      X