Announcement

Collapse
No announcement yet.

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:

            https://ninjatraderecosystem.com/Vendors/Consultants#81

            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 pjsmith, Today, 01:00 AM
                            1 response
                            10 views
                            0 likes
                            Last Post NT-Roland  
                            Started by alejandro888, Yesterday, 08:41 PM
                            0 responses
                            9 views
                            0 likes
                            Last Post alejandro888  
                            Started by UltraNIX, Today, 02:14 AM
                            0 responses
                            8 views
                            0 likes
                            Last Post UltraNIX  
                            Started by augustfay, Yesterday, 12:06 PM
                            1 response
                            13 views
                            0 likes
                            Last Post NinjaTrader_Jason  
                            Started by klaus w, Yesterday, 12:13 PM
                            2 responses
                            25 views
                            0 likes
                            Last Post klaus w
                            by klaus w
                             
                            Working...
                            X