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

Trend Magic

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

    Trend Magic

    https://ninjatraderecosystem.com/use...d/trend-magic/

    This is great indicator but doesn't have an alert with alert file name

    is anyone can help please to add Alert with option to choose Alert sound file name when the trend change?

    Thank you in advance
    Attached Files
    Last edited by Mike.A; 07-26-2023, 09:06 AM.

    #2
    Hello Mike.A,

    You can make a sound input property using the following code:

    Code:
    [NinjaScriptProperty]
    [Display(Name="MyFile", Order=1, GroupName="Parameters")]
    [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPick er", Filter="Wav Files (*.wav)|*.wav", Title="Select Files")]
    public string MyFile
    { get; set; }
    To produce alerts you can use the Alert method: https://ninjatrader.com/support/help...lightsub=alert

    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse

      That's was so fast, Thank you so much

      I did but still not get alert to check on and off or Alert sound file name to choose

      Sorry I am not advanced to work with coding

      if any chance to be fix, I will appreciate it

      if it is not allowed to do so, I understand and I appreciate it

      Thanks again
      Mike

      Comment


        #4
        Hello Mike.A,

        If you added that property to the script that would make an input so you can manually select a sound file from the indicators properties. That won't do anything else besides that, to make an alert you would also have to add the Alert() syntax into the existing conditions where you want the alert to happen. The Alert syntax can use the MyFile string as the path to the sound file to use.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Hello Jesse
          Thank is exactly correct, but sorry I try to add the rest to make it work but I not able to do it even I try to copy some language from another indicator but it is seem I am not expert to do so

          Thank you very much and if it is against the rules to be done by Ninjatrader support that is alright, I am may be lucky and get some one to add it to the indicator

          Thank you again

          Mike

          Comment


            #6
            Can anyone share the indicator with the alert already set? Thank you

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by ETFVoyageur, Today, 02:04 PM
            3 responses
            21 views
            0 likes
            Last Post ETFVoyageur  
            Started by cre8able, Today, 06:18 PM
            0 responses
            5 views
            0 likes
            Last Post cre8able  
            Started by ETFVoyageur, Today, 06:05 PM
            0 responses
            3 views
            0 likes
            Last Post ETFVoyageur  
            Started by TAJTrades, 04-28-2024, 09:46 AM
            2 responses
            17 views
            0 likes
            Last Post TAJTrades  
            Started by mjbatts91, Today, 04:48 PM
            0 responses
            6 views
            0 likes
            Last Post mjbatts91  
            Working...
            X