Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Newbie - Questions

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

    Newbie - Questions

    Hi all,

    I am new to the NinjaTrader Software and I have few basic questions so I apologize if they already been asked:

    1) I am looking at backtesting a basic long term strategy on equities that involve a monthly chart and enters a long position when the price closes above the 10 month SMA and exits when the price closes below the 10 month SMA. However, orders are only placed once month; on the last day of the month (I hope this makes sense). Is there a way to accomplish this using the wizard?

    2) Is scripts created per ThinkorSwim (ThinkScript) compatible with the NinjaTrader? I have few script set up that I would like to convert if possible.

    Thanks in advance for your help!

    Jim

    #2
    Hello Jim,
    Thanks for writing in and I am happy to assist you.

    1. Yes, you can create such strategy very easily via the wizard. Please see this YouTube video to see how to create basic strategy via Strategy Wizard http://www.youtube.com/watch?v=fVFqw...G0IuPM3sjVBRyC

    2. Unfortunately ThinkOrSwim scripts are not compatible with NinjaTrader. You can contact any of our independent NinjaScript consultants and ask them if they convert ThinkOrSwim script to NinjaScript. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks for your help! I watched the video and applied some of the knowledge gained and this is what I came up with: Does this look right based on my previous post? Also, what do you suggest for set order quantity? (account size/default quantity/strategy).


      /// <summary>
      /// This method is used to configure the strategy and is called once before any strategy method is called.
      /// </summary>
      protected override void Initialize()
      {
      Add(SMA(MonthlyMA));
      Add(SMA(MonthlyMA));

      CalculateOnBarClose = true;
      }

      /// <summary>
      /// Called on each bar update event (incoming tick)
      /// </summary>
      protected override void OnBarUpdate()
      {
      // Condition set 1
      if (Close[0] > SMA(MonthlyMA)[0])
      {
      EnterLong(DefaultQuantity, "");
      }

      // Condition set 2
      if (Close[0] < SMA(MonthlyMA)[0])
      {
      ExitLong("", "");
      }
      }

      Comment


        #4
        Hello jaslinger,
        Yes the codes are fine. Since you will be testing it on monthly bars you may not have any signals for months.
        You can set the appropriate quantity according to your risk appetite.

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Thanks! I realized the monthly bars situation but since I am testing this on ETFs/Stocks, I am comfortable with the initial results thus far. Just trying to get my feet wet before I plunge further into this, if you will

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Brevo, Today, 01:45 AM
          0 responses
          6 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          3 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          241 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          384 views
          1 like
          Last Post Gavini
          by Gavini
           
          Started by oviejo, Today, 12:28 AM
          0 responses
          6 views
          0 likes
          Last Post oviejo
          by oviejo
           
          Working...
          X