Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert on strategies

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

    Alert on strategies

    Hello

    I am developing an strategy that draws text, color bars and draws triangles (up or down), when conditions are met and works ok.
    The problem is that it should also alert. but this method does not work...

    BarBrush = Brushes.Fuchsia;
    CandleOutlineBrush = Brushes.Fuchsia;
    Draw.TriangleDown(this, @""+CurrentBar, true, 0, (High[1] + (20 * TickSize)) , ColorDown);
    Alert("", Priority.High, "Entry Short", mySoundFile, rearmAlertInSeconds, Brushes.Black, Brushes.Crimson);
    Draw.Text(this, "" + CurrentBar, true, @"40", 1, High[1] + 6 * TickSize , 0, ColorDown, largeFont, TextAlignment.Center, Brushes.Transparent, Brushes.Transparent, 0);

    Any idea why Alert does not work?

    Thanks

    #2
    Hello Impeesa,

    What part is not working with the alert? Is it the sound or is the alert not being sent to the alert log at all?

    I look forward to being of further assistance.

    Comment


      #3
      Hello, Jesse

      None of them works.

      Comment


        #4
        Hello Impeesa,

        One problem may be that you are not specifying an ID, I would suggest to try the alert sample from the help guide and see if that works in place of what you coded.

        Alert("myAlert", Priority.High, "Reached threshold", NinjaTrader.Core.Globals.InstallDir+@"\sounds\Aler t1.wav", 10, Brushes.Black, Brushes.Yellow);




        I look forward to being of further assistance.

        Comment


          #5
          Hello, Jesse

          That is not the problem. I have copied the alert sample and it is displayed in Alerts Log filtered Medium and Low...
          Attached Files

          Comment


            #6
            Hello Impeesa,

            It looks like this relates to your other post. Please follow up in your other post so that we are not doing double work here. In the future if you have a similar or relevant question please include that in only one post.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            44 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            124 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            65 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X