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

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.
    JesseNinjaTrader Customer Service

    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.
        JesseNinjaTrader Customer Service

        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.

            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by geddyisodin, Today, 05:20 AM
            4 responses
            28 views
            0 likes
            Last Post geddyisodin  
            Started by geotrades1, Today, 10:02 AM
            2 responses
            5 views
            0 likes
            Last Post geotrades1  
            Started by ender_wiggum, Today, 09:50 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by rajendrasubedi2023, Today, 09:50 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by bmartz, Today, 09:30 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Erick  
            Working...
            X