Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

SMA strategy help

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

    SMA strategy help

    Hello I need some help setting this up, On a SMA cross over how can I set it to buy or sell after a certain amount of bars, for example after fast sma crosses above the slow sma I want to wait for 3 bars to close above the slow sma before I buy,, how can I set this up ?

    thanks

    #2
    Hello wallace15269,

    Thank you for writing in.

    I put together a sample strategy which will set a variable of type bool to true as well as set the CurrentBar to a variable +3, when 1 SMA crosses above another, and in a different set of conditions, I check that this bool is true and whether the CurrentBar is greater than xCurrentBar, and if so, EnterLong.

    I have attached the strategy.

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      re

      Hello thanks for the reply, How do I set this up in the strategy builder without going it the code cause I don't know how to program code,

      thanks

      Comment


        #4
        Hello wallace15269,

        This would require you work outside the strategy builder however I will submit a feature request which would allow you to save a value plus an offset to a variable, which would make this possible in the strategy builder.

        If you'd like I can have someone reach out with a list of third parties which would be interested in building this for you outside the builder.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          re

          Hello sure a list would be great.

          thanks

          Comment


            #6
            Hello wallace15269,

            This is Jared from the NinjaTrader Business Development team responding on behalf of my colleague Alan.

            You can search our extensive library of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more:

            Search trading indicators, apps and services to personalize your NinjaTrader software. Explore custom trading indicators, automated strategies, free trading apps & more!


            You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third-party services for NinjaTrader, all pricing and support information will need to be obtained through the consultant.

            Let me know if I may be of further assistance

            This NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem, LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
            Jared M.NinjaTrader Customer Service

            Comment


              #7
              question

              Hello thinks for the list, also I have a question this is off the post subject does ninjatrader work with robinhood broker ?

              thanks

              Comment


                #8
                Hello wallace15269,

                Robinhood is not currently on our list of supported brokers.

                Let us know if you have any questions.
                Josh G.NinjaTrader Customer Service

                Comment


                  #9
                  re

                  Hello are there plans to add it?

                  Comment


                    #10
                    This is currently under investigation by our development team in an active feature request. I will go ahead and have your vote added to that request.
                    Josh G.NinjaTrader Customer Service

                    Comment


                      #11
                      re

                      hello also when backtesting why are a lot of stocks not available when I look for them ?

                      Comment


                        #12
                        What instrument are you looking for?

                        Can you find the instrument when you search for it in your 'Instrument Lookup Window'?
                        Josh G.NinjaTrader Customer Service

                        Comment


                          #13
                          re

                          No a lot of stocks I cant find like for example EMAN

                          Comment


                            #14
                            Try manually typing the instrument into the Instrument selector of your Data Series or Chart Window. NinjaTrader should automatically create that instrument in the database once you have typed it in the first time. Depending on your data provider you should then see price data for that instrument.
                            Josh G.NinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by timmbbo, 07-05-2023, 10:21 PM
                            3 responses
                            150 views
                            0 likes
                            Last Post grayfrog  
                            Started by Lumbeezl, 01-11-2022, 06:50 PM
                            30 responses
                            804 views
                            1 like
                            Last Post grayfrog  
                            Started by xiinteractive, 04-09-2024, 08:08 AM
                            3 responses
                            11 views
                            0 likes
                            Last Post NinjaTrader_Erick  
                            Started by Johnny Santiago, 10-11-2019, 09:21 AM
                            95 responses
                            6,194 views
                            0 likes
                            Last Post xiinteractive  
                            Started by Irukandji, Today, 09:34 AM
                            1 response
                            3 views
                            0 likes
                            Last Post NinjaTrader_Clayton  
                            Working...
                            X