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 proptrade13, Today, 11:06 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by quantismo, 04-17-2024, 05:13 PM
          4 responses
          32 views
          0 likes
          Last Post quantismo  
          Started by love2code2trade, 04-17-2024, 01:45 PM
          4 responses
          32 views
          0 likes
          Last Post love2code2trade  
          Started by cls71, Today, 04:45 AM
          2 responses
          10 views
          0 likes
          Last Post eDanny
          by eDanny
           
          Started by kulwinder73, Today, 10:31 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Erick  
          Working...
          X