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

Crossing of emas

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

    Crossing of emas

    Hello. Hi. Excuse my English. I have an indicator that draws an arrow when two EMAs are crossed. If the value of an ema is a tick greater than that of the second theme, the arrow is drawn. I want the arrow to be drawn when the value of one theme is at least 3 ticks greater than the other. How is it done? Thank you. Thank you.

    #2
    Hello julifro,

    Thank you for your note.

    You would do this using the NinjaScript Editor however this would require coding experience.

    We do not build custom indicators or strategies for customers however if you’d like I could have someone from our business development team pass over a list of professional Ninja Script consultants that you could contact about modifying this for you.

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

    Comment


      #3
      I asked the wrong question.
      The indicator is written on it.
      I just want to know how to add 3 ticks to the value of the EMA
      Oh, thank you.

      Comment


        #4
        Hello julifro,

        You would need to modify the indicator using the NinjaScript Editor.

        I have provided a link on using the editor,
        Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.


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

        Comment


          #5
          this is the indicator
          Attached Files

          Comment


            #6
            julifro.

            I think you simply need to add "+ 3* TickSize" or "- 3* TickSize" depending on which EMA you want to put the difference of 3 ticks. I'd suggest adding it one at a time and see what it gives you.

            For example:

            if(EMA(Input, fastPeriod)[0] + 3*TickSize >= EMA(Input, mediumPeriod)[0] && EMA(Input, mediumPeriod)[0] >= EMA(Input, slowPeriod)[0] )

            or

            if(EMA(Input, fastPeriod)[0] >= EMA(Input, mediumPeriod)[0] - 3*TickSize && EMA(Input, mediumPeriod)[0] >= EMA(Input, slowPeriod)[0] )

            etc.

            Note to spell TickSize correctly, with a capital "T" and capital "S".

            sandman

            Comment


              #7
              Hello julifro,

              In the support department at NinjaTrader we do not create, debug, or modify code for our clients. This is so that we can maintain a high level of service for all of our clients.

              You can also contact a professional NinjaScript Consultants who would be eager to create or modify this script at your request or assist you with your script. Please let me know if you would like our business development follow up with you with a list of professional NinjaScript Consultants who would be happy to create this script or any others at your request.

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

              Comment


                #8
                At no time did I request the creation or modification of an indicator. I have asked for help on what would be the correct code to perform a calculation. I have asked a programming question in C # as I have done in other occasions and kindly I have been helped in this forum. If the policy of ninjatrader is to stop helping its users I will gladly go to another graphics platform.

                Comment


                  #9
                  Hello julifro,

                  Sandman was kind enough to provide an explanation for how you would accomplish this.

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

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by sidlercom80, 10-28-2023, 08:49 AM
                  168 responses
                  2,262 views
                  0 likes
                  Last Post sidlercom80  
                  Started by Barry Milan, Yesterday, 10:35 PM
                  3 responses
                  10 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by WeyldFalcon, 12-10-2020, 06:48 PM
                  14 responses
                  1,429 views
                  0 likes
                  Last Post Handclap0241  
                  Started by DJ888, 04-16-2024, 06:09 PM
                  2 responses
                  9 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by jeronymite, 04-12-2024, 04:26 PM
                  3 responses
                  41 views
                  0 likes
                  Last Post jeronymite  
                  Working...
                  X