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 mjairg, 07-20-2023, 11:57 PM
      3 responses
      213 views
      1 like
      Last Post PaulMohn  
      Started by TheWhiteDragon, 01-21-2019, 12:44 PM
      4 responses
      544 views
      0 likes
      Last Post PaulMohn  
      Started by GLFX005, Today, 03:23 AM
      0 responses
      3 views
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      12 views
      0 likes
      Last Post XXtrader  
      Started by Waxavi, Today, 02:10 AM
      0 responses
      7 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Working...
      X