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

Price Alert

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

    Price Alert

    Ninjas,

    Is it possible for price to show in the alert wiindow when an alert is triggered?

    I have the following alert that will appear in the alert window:

    Alert("myAlert", NinjaTrader.Cbi.Priority.High, "MFI Signal", "Alert2.wav", 10, Color.Black, Color.Yellow);


    I would like the price to also appear. Can you please show me how to make it happen?

    Cheers

    Carlton

    #2
    Carlton, it sure is possible to have price in the alert. In the code where you have "MFI Signal", that is what is written to the alert window. We can add the most recent price to that too by using Close[0] -
    Code:
    Alert("myAlert", NinjaTrader.Cbi.Priority.High, "MFI Signal. Close = " + Close[0].ToString(), "Alert2.wav", 10, Color.Black, Color.Yellow);
    Please give that a go and let me know how it works out.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Austin,

      Going to try now.

      I will let you how I get on.

      Cheers mate.

      Comment


        #4
        Work fine.

        Cheers

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by briansaul, Today, 05:31 AM
        0 responses
        1 view
        0 likes
        Last Post briansaul  
        Started by fwendolynlpxz, Today, 05:19 AM
        0 responses
        4 views
        0 likes
        Last Post fwendolynlpxz  
        Started by traderqz, Yesterday, 12:06 AM
        11 responses
        28 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by PaulMohn, Today, 03:49 AM
        0 responses
        8 views
        0 likes
        Last Post PaulMohn  
        Started by inanazsocial, Today, 01:15 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jason  
        Working...
        X