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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      96 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      23 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      34 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      34 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X