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

Crear alerta con condiciones que afectan a dos gráficos diferentes

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

    Crear alerta con condiciones que afectan a dos gráficos diferentes

    Buenos días,
    Agradecería me indicaran si es posible y cómo configurar una alerta que tenga en cuenta condiciones de diferentes gráficos.
    Muchas gracias,
    un saludo,

    #2
    Hola Tibucan,

    Gracias por escribirnos hoy.

    Tenemos capacidad limitada para proporcionar soporte de plataforma en español; sin embargo, hemos encontrado que este sitio https://www.deepl.com/es/translator puede traducir el inglés al español con buena calidad. Por favor copie nuestra respuesta y luego navegue al sitio que le colocamos para pegar la respuesta en el cuadro hacia la izquierda.

    To create an alert in a custom NinjaScript you may use the Alert() method. To play a sound from a custom NinjaScript when a condition becomes true you may use the PlaySound() method.

    You could create a condition in a custom NinjaScript and then call the Alert() or PlaySound() method within the condition to trigger the alert or sound when the condition is true.

    A simple example of this could be seen below. The example checks if the current Close price is greater than the current Open price and calls the Alert() method.

    Code:
    if (Close[0] > Open[0])
    {
         Alert("myAlert", Priority.High, "Close price greater than Open price", NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert1.wav", 10, Brushes.Black, Brushes.Yellow);
    }
    See the help guide documentation below for more information and sample code.

    Alert(): https://ninjatrader.com/support/help.../nt8/alert.htm
    PlaySound(): https://ninjatrader.com/support/help.../playsound.htm

    Below is a link to a forum post with helpful information about getting started with NinjaScript which you might find helpful.
    https://ninjatrader.com/support/foru...040#post786040

    Please let me know if I may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Buenos días,
      Muchas gracias por tu ayuda.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,404 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      95 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      8 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      159 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      8 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X