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

EMA with alert wanted

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

    #16
    Hi jtrade,

    That I am aware of this is not possible. You would need to not add the indicator with the strategy and add it manually instead.

    I think it would be good to have an option for this and am submitting a feature request for this in your behalf.

    Thank you for the great suggestion to improve NinjaTrader.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Hi jtrade,

      After talking with our development department, they have let me know you could accomplish this by adding the following code to the EMA class in a copy of the EMA indicator.

      public override string ToString()
      {
      return "";
      }

      This would cause the label to always be blank.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        jtrade,

        It turns out do this is easier than I previously thought.

        You do not have to create a copy of the indicator. Instead try the following in the strategy file that adds the indicator.

        Add(EMA(14));
        EMA(14).Name = "";
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Chelsea - thanks for this, but I do not see that "Add" code within the strat.
          I have :

          Add(EMA(EMAPeriod));

          ?

          Comment


            #20
            Hello jtrade,

            The call you have is basically the same. Instead of setting the period to 14, your code sets the period to the value of the EMAPeriod variable. My guess is this is so you can choose the EMAPeriod in the strategy parameters.

            Try:

            Add(EMA(EMAPeriod));
            EMA(EMAPeriod).Name = "";
            Chelsea B.NinjaTrader Customer Service

            Comment


              #21
              That did it !

              Well done, thank-you and have a great weekend.

              J.

              Comment


                #22
                Help needed

                Hi

                I have DL this strat and can't seem to get the sound alert working,
                also may need to ask re other parameters i'm not sure about, possibly change sound alert for above below diff sounds etc, ( i think i can do once i get it working the way it is)

                Can someone from support assist please

                Cheers Angelo

                Comment


                  #23
                  Hi Spaggetti Ninjja,

                  Is this related to the AlertEMAPrice strategy from this thread?

                  Is the strategy enabled?

                  Have you experienced a crossover (in real time)?

                  Is the Alerts window open? (File -> New -> Alerts...)
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #24
                    Originally posted by NinjaTrader_ChelseaB View Post
                    Hi Spaggetti Ninjja,

                    Is this related to the AlertEMAPrice strategy from this thread? YES

                    Is the strategy enabled? it has been aplied but i do recall an enable button i don't recall if i enabled

                    Have you experienced a crossover (in real time)? YES

                    Is the Alerts window open? (File -> New -> Alerts...)
                    Nope, does it need to be in conjuction with a startergy, if so why>

                    Cheers Angelo

                    Comment


                      #25
                      Hi Spaggetti Ninjja,

                      In the Strategies tab of the Control Center there is an enabled check box on each instance of strategies.

                      Your strategy will need to be enabled to work. Check that this box is checked and that the strategy name is showing with a green background.

                      If the Alerts window is open, you will visibly see alerts in case there are no sounds. To see alerts the Alerts window will need to be open as alerts will go to the Alerts window.
                      Last edited by NinjaTrader_ChelseaB; 07-10-2014, 07:42 AM.
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #26
                        Hi Chelsea,

                        Applied those actions, waiting for the alert now,

                        off topic request
                        can you direct me to or tell me how to remove a third party indi that doesn't appear in the indi edit section? it's one that is activated by the machine serial number by NT, have also looked in the explorer window to delete directly from the source but there is no file name to identify it and i don't want to delete the wrong one

                        Cheers

                        Comment


                          #27
                          Hi Spaggetti Ninjja,

                          To remove open source indicators please:
                          • Click Tools -> Edit NinjaScript -> Indicator...
                          • Select the indicator to remove -> click the Delete button


                          To remove an open source strategy please:
                          • Click Tools -> Edit NinjaScript -> Strategy...
                          • Select the strategy to remove -> click the Delete button


                          To remove a third party assembly package please:
                          • Click File -> Utilities -> Remove NinjaAcript Assembly...
                          • Select the assembly to remove -> click the Remove button
                          Chelsea B.NinjaTrader Customer Service

                          Comment


                            #28
                            I did it, thanks everyone.
                            Download the latest ringtones at tonosdellamadagratis.com
                            Last edited by ruscomir6789; 03-12-2023, 06:52 AM.

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by cmtjoancolmenero, Yesterday, 03:58 PM
                            1 response
                            17 views
                            0 likes
                            Last Post NinjaTrader_Gaby  
                            Started by benmarkal, Yesterday, 12:52 PM
                            3 responses
                            23 views
                            0 likes
                            Last Post NinjaTrader_Gaby  
                            Started by helpwanted, Today, 03:06 AM
                            1 response
                            19 views
                            0 likes
                            Last Post sarafuenonly123  
                            Started by Brevo, Today, 01:45 AM
                            0 responses
                            11 views
                            0 likes
                            Last Post Brevo
                            by Brevo
                             
                            Started by pvincent, 06-23-2022, 12:53 PM
                            14 responses
                            244 views
                            0 likes
                            Last Post Nyman
                            by Nyman
                             
                            Working...
                            X