Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

alert

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

    alert

    Hi,

    i have problems with Alert
    I have code:

    private int alertId=0;
    private int arrowId=0;
    OnBarUpdate() {
    ...
    if (something) {
    DrawArrowLine("Arrow"+arrowId, ...other atributes...);
    arrowId++;
    Alert("Alert"+alertId, Priority.High, "message", "sound.wav", 0, Color.White, Color.Black);
    alertId++;
    }
    ...
    }

    now. when something is true, it will draw arrow and i hear the sound. Thats OK. But sometimes, atribut "something" is false and indicator will not draw the arrow in this case (thats ok), but it makes the sound anyway and thats not ok. I dont know why??
    Could you help me please?

    Thank you
    Last edited by zooinek; 05-20-2009, 03:35 PM. Reason: grammer

    #2
    You sure its actually the same alert? You can test this by printing the values of your alertId and and arrowId. Then looking inside the Alerts window to find the alert name and correlate it to having no arrow on the chart.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      And where can i find Alers window please?

      Comment


        #4
        File->New->Alerts
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        597 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        555 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X