Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert based on Buy signals

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

    #16
    Hello manxtrader75,

    Thank you for your reply.

    In the version of the SuperTrend indicator you're using, the issue is that it doesn't add that extra part of the path within the Alert() method. So this:

    Alert("NewUpTrend", Priority.Medium, "NewUpTrend", confirmedUpTrend, rearmTime, Brushes.Black, upColor);

    Would need to be changed to this:

    Alert("NewUpTrend", Priority.Medium, "NewUpTrend", NinjaTrader.Core.Globals.InstallDir +confirmedUpTrend, rearmTime, Brushes.Black, upColor);

    Try changing the alerts to add that to each of them before the variable for the rest of the path.

    Please let us know if we may be of further assistance to you.

    Comment


      #17
      Thanks NinjaTrader_Kate That did the trick. Is there a way to add a pop-up as well? I have 8 charts up and it's hard to tell which one actually popped. Thanks for your assistance!

      Comment


        #18
        Hello manxtrader75,

        Thank you for your reply.

        There would be no supported method to call the alert dialogue window from NinjaScript, however it would be possible to open your own AddOn window to display an alert.

        Here's an example from the forums about how you can open a window from a script. The second example is specifically opening one from an indicator:



        Please let us know if we may be of further assistance to you.

        Comment


          #19
          Hi Kate. I was thinking of more like adding this type of code to the indictor itself (if that's possible)?

          Click image for larger version

Name:	Untitled.png
Views:	104
Size:	64.8 KB
ID:	1096364

          Comment


            #20
            Hello manxtrader75,

            Thank you for your reply.

            That's exactly what I was referring to - unfortunately that's not accessible from NinjaScript. You'd need to either try creating your own addon window or one of my colleagues mentioned you could try using Log() with LogLevel.Alert after the alert itself is triggered:

            Log("This will generate a pop-up notification window as well", LogLevel.Alert);

            The downside to this is that this also prints the alert to the Control Center log which can have a performance impact if a lot of alerts are going off.

            Here's a link to our help guide on Log:


            Please let us know if we may be of further assistance to you.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            579 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X