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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        36 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        14 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        19 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X