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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      48 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X