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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        220 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        135 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        150 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        235 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        193 views
        0 likes
        Last Post CarlTrading  
        Working...
        X