Announcement

Collapse
No announcement yet.

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.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      333 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X