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

ninja script add-on for indicator alert by email

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

    ninja script add-on for indicator alert by email

    hello
    is there a script for NT 8 that creats alert for indicators through email?
    I found only alerts by email script for trades executions

    #2
    Hello yossefbn,

    You can add a ShareService using the control center -> tools -> options menu and then use the platforms Alert system to send emails based on conditions you make with indicators. There is a guide on how to set up a share service here: https://ninjatrader.com/support/help...gShareServices

    You can read about using alerts here: https://ninjatrader.com/support/help...nt8/alerts.htm

    JesseNinjaTrader Customer Service

    Comment


      #3
      I have been using ninja trader to create a "strategy", but for all intents it truly operates as an indicator currently. How difficult would it be to convert a strategy into an indicator? My strategy currently doesn't make any automated trades, because there are so many rules I just haven't found the time to code them all. Though one day this would be nice.

      OR can shared services be access by strategies as well? For instance, if the platform would make a trade it would send you an alert?

      I've set up my shared services already, just can't do anything useful with them yet.

      Thanks

      Comment


        #4
        Hello RISKYBUSINEZZ,

        If you are not using any strategy specific properties it would likely be pretty easy to convert to an indicator, strategies and indicators are structured the same. I would suggest opening your strategies code and then look at any stock indicator, you will be able to see how they are similar.

        Share services can also be used in a strategy, if you are using the builder that is an action under misc -> Share. A strategy can only observe its own trades so that specifically couldnt be used to send alerts about trades unless it made the trades itself.




        JesseNinjaTrader Customer Service

        Comment


          #5
          So to be clear, the following command can not be used in strategies using ninja script editor?

          Share("Text message via email","A Potential Bullish RTY DON 15 min", new object[]{"##########@mms.att.net"});
          Also, when I used strategy builder to generate an example it showed very differently than the NT8 manual. This is the code that the strategy builder generated.
          Share(@"Text message via email", @"There is a potential trade", @"C:\Users\Owner\Pictures\Screenshots\QQQ rollover top 6_14_2024.png");

          Comment


            #6
            Hello RISKYBUSINEZZ,

            As long as the code you used compiles and uses a valid share service that would be fine. I would suggest using the builder to generate code, that will generate valid code when creating conditions or actions. The help guide may have different samples but those are also valid to use.
            JesseNinjaTrader Customer Service

            Comment


              #7
              One thing I found interesting. is that the share service will communicate the message even if there is not a valid screen shot to send. That is good. I didn't find a good way to test the share service though. I just had to try it live.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NeoTraderBot, Yesterday, 10:55 PM
              0 responses
              6 views
              0 likes
              Last Post NeoTraderBot  
              Started by OliverWaters, Yesterday, 10:35 PM
              0 responses
              6 views
              0 likes
              Last Post OliverWaters  
              Started by Graci117, 07-06-2024, 09:32 AM
              6 responses
              37 views
              0 likes
              Last Post Graci117  
              Started by AdamDJ8, 07-01-2024, 06:50 PM
              2 responses
              123 views
              0 likes
              Last Post AdamDJ8
              by AdamDJ8
               
              Started by AdamDJ8, 07-01-2024, 05:55 PM
              3 responses
              32 views
              0 likes
              Last Post AdamDJ8
              by AdamDJ8
               
              Working...
              X