Announcement

Collapse
No announcement yet.

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

    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.




        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.

            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 abelsheila, Yesterday, 07:38 PM
              0 responses
              5 views
              0 likes
              Last Post abelsheila  
              Started by nailz420, Yesterday, 09:14 AM
              1 response
              38 views
              0 likes
              Last Post NinjaTrader_ChristopherJ  
              Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
              0 responses
              265 views
              0 likes
              Last Post NinjaTrader_Brett  
              Started by domjabs, 05-12-2025, 01:55 PM
              2 responses
              56 views
              0 likes
              Last Post domjabs
              by domjabs
               
              Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
              1 response
              59 views
              0 likes
              Last Post NinjaTrader_ChristopherJ  
              Working...
              X