Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EMA Alert Momentum

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

    EMA Alert Momentum

    Hi All.

    First thanks for the support to the community for helping me. I have a question. Is there a way to have a text or email alert set up in my EMA Slope indicator 23 high and 23 low EMA? What I am trying to achieve is if the EMA slope up or down a certain degree(momentum) I would get a text. I am missing a lot of trades because I keep missing the momentum. any suggestions or advice
    Attached Files

    #2
    Hello wealthcig,

    Yes, it is possible to send an email and a text message.

    I have a video that demonstrates the process of setting up gmail as a share service.
    https://drive.google.com/file/d/10vAzAOdqF8lmj4M1MS5EOT-j4xBdtgep/view?usp=sharing

    Below I am providing a link to the help guide on 'Managing Share Services'.
    http://ninjatrader.com/support/helpG...gShareServices

    As well as a link to the instructions for common SMTP server setups.
    http://ninjatrader.com/support/forum...ad.php?t=45339

    And a (publicly available) 3rd party link to common email to sms address formats. (for Verizon this is the 10-digit number followed by @vtext.com. For example [email protected])


    Emails can also be sent in NinjaTrader 8 using the SendMail() method from a NinjaScript.
    http://ninjatrader.com/support/helpG...s/sendmail.htm
    https://ninjatrader.com/support/help...g_concepts.htm

    Please let me know if you would like assistance with the setup.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      what about the momentum in the indicator?

      Comment


        #4
        Hello wealthcig,

        It sounds like you want to measure the slope. For this there is the Slope() method.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Yes where would I put it in the indicator I have without messing it up

          Comment


            #6
            Hello wealthcig,

            Likely, this would go in OnBarUpdate().

            For example:
            if (Slope(EMA(14), 10, 0) > 0)
            {
            Print("upslope");
            }
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              I input the parameters but its not responding
              Attached Files

              Comment


                #8
                Hello wealthcig,

                When you say 'its not responding' do you mean the entire NinjaTrader platform has gone gray and there is a windows message saying the application has stopped responding?

                Or do you mean that you are printing Slope(EMA(23), 10, 0) and this is printing a value that is less than 0?
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  yes its not printing anything

                  Comment


                    #10
                    Hello wealthcig,

                    This may indicate one of the outer conditions is not evaluating as true.

                    Outside of all conditions containing the order method, print the time of the bar, and all values used in the outermost condition.

                    Meaning:

                    Print(string.Format("{0} | ", Time[0])); /* print is here outside of the conditions that are not evaluating as true */

                    if (/* this is the outer condition */)
                    {
                    if (/* this is the inner condition */)
                    {
                    /* order method is here */
                    }
                    }

                    Then please save the output to a text file and attach this as an attachment with your next post.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      They are not time-based bars they are Renko bars. I am not sure how to do this

                      Comment


                        #12
                        Hello wealthcig,

                        Renko bars will still have time stamps. Time[0] is the close time of the bar, for all bar types, including renko bars.

                        Below I am providing a link to a forum post that demonstrates how to use prints to understand behavior and includes videos.


                        I am also including a link to a forum post with helpful information about getting started with NinjaScript and C#.


                        Try by just printing the time of the bar outside of all conditions that trigger the order method.
                        Chelsea B.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        648 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        369 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        108 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        572 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        574 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X