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 Taddypole, 04-26-2024, 02:47 PM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_Eduardo  
            Started by futtrader, 04-21-2024, 01:50 AM
            6 responses
            58 views
            0 likes
            Last Post futtrader  
            Started by sgordet, Today, 11:48 AM
            0 responses
            4 views
            0 likes
            Last Post sgordet
            by sgordet
             
            Started by Trader146, Today, 11:41 AM
            0 responses
            5 views
            0 likes
            Last Post Trader146  
            Started by jpapa, 04-23-2024, 07:22 AM
            2 responses
            21 views
            0 likes
            Last Post rene69851  
            Working...
            X