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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        169 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        326 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        252 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        353 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        180 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X