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

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 RideMe, 04-07-2024, 04:54 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by f.saeidi, Today, 08:13 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DavidHP, Today, 07:56 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by kujista, Today, 06:23 AM
        3 responses
        10 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by Mindset, Yesterday, 02:04 AM
        2 responses
        18 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Working...
        X