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 futtrader, 04-21-2024, 01:50 AM
            4 responses
            41 views
            0 likes
            Last Post futtrader  
            Started by Option Whisperer, Today, 09:55 AM
            1 response
            11 views
            0 likes
            Last Post bltdavid  
            Started by port119, Today, 02:43 PM
            0 responses
            7 views
            0 likes
            Last Post port119
            by port119
             
            Started by Philippe56140, Today, 02:35 PM
            0 responses
            7 views
            0 likes
            Last Post Philippe56140  
            Started by 00nevest, Today, 02:27 PM
            0 responses
            7 views
            0 likes
            Last Post 00nevest  
            Working...
            X