• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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,
        https://www.youtube.com/watch?v=Q06x...ZmVnauWXkWe0Nf

        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 Revan, Yesterday, 11:53 PM
                  4 responses
                  23 views
                  0 likes
                  Last Post NinjaTrader_Jim  
                  Started by Vincere, Today, 03:32 AM
                  1 response
                  3 views
                  0 likes
                  Last Post NinjaTrader_ChrisSch  
                  Started by hir04068, Today, 04:26 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post hir04068  
                  Started by Thomas79, Today, 03:22 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post Thomas79  
                  Started by pjsmith, Today, 12:50 AM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_ChrisSch  
                  Working...
                  X