Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Back-test a fully automated trade using paper money

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

    Back-test a fully automated trade using paper money

    I'd like to set up a backtest that will automate the entry and exit using SPY and SH.

    These ETFs trade opposite of eachother.

    Enter a long position by buying when condition is met for SPY
    Use a call option that is 1 strike OTM
    Buy when the price is below the HMA (20)
    Sell when profit target % is met or allow the option to expire worthless.

    Enter a long position by buying when condition is met for SH
    Use a call option that is 1 strike OTM
    Buy when the price is above the HMA (20)
    Sell when profit target % is met or allow the option to expire worthless.

    I haven't used the platform in years and am only testing without the full version of the product.

    Assistance in setting up this test scenario is greatly appreciated.
    Last edited by tedpenner; 11-14-2021, 05:28 PM.

    #2
    Hello tedpenner,

    Below I am providing a link to a forum post with helpful information about getting started with NinjaScript and c#. Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.
    https://ninjatrader.com/support/foru...040#post786040

    NinjaScript Strategies at this time cannot trade options.

    Where are you getting stuck? Do you have a base NinjaScript Strategy that is coded that is causing errors we may assist with?
    Last edited by NinjaTrader_ChelseaB; 11-14-2021, 10:03 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I knew there would be a catch. It couldn't do it 10 years ago either. Oh well.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      101 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      52 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      32 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      36 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      73 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X