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 carnitron, Today, 08:42 PM
            0 responses
            5 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Today, 07:51 PM
            0 responses
            6 views
            0 likes
            Last Post strategist007  
            Started by StockTrader88, 03-06-2021, 08:58 AM
            44 responses
            3,974 views
            3 likes
            Last Post jhudas88  
            Started by rbeckmann05, Today, 06:48 PM
            0 responses
            8 views
            0 likes
            Last Post rbeckmann05  
            Started by rhyminkevin, Today, 04:58 PM
            4 responses
            58 views
            0 likes
            Last Post dp8282
            by dp8282
             
            Working...
            X