Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert for OHLC, SMA, Pivots

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

    Alert for OHLC, SMA, Pivots

    Hi,
    I was trying to develope a strategy that alerts me when the price high (going up), or price low (going down) hits either a OHLC, SMA, or pivot on a 1min chart but I couldn't seem to get it to work. Could you give me an example of what the wizard or code might look like. I also want it to alert right when it happens not on bar close. What I am trying to do is have it alert (audio) me when the price on the Dow say hits the low for the day again so that I am aware of it while I am trading on the ES. Any help would be much appreciated. Thank you.

    #2
    You would want to use PlaySound() or Alert(). Remember to set CalculateOnBarClose to false since you want it to process on every tick. Now you just need a condition. Maybe something like:
    Code:
    if (Close[0] == MIN(Low, Bars.BarsSinceSession)[0])
         PlaySound(@"C:\mySound.wav");
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by Josh View Post
      You would want to use PlaySound() or Alert(). Remember to set CalculateOnBarClose to false since you want it to process on every tick. Now you just need a condition. Maybe something like:
      Code:
      if (Close[0] == MIN(Low, Bars.BarsSinceSession)[0])
           PlaySound(@"C:\mySound.wav");
      Thanks! I will give that a try. What does the MIN stand for? Are there similar wizard choices to the code you gave me?

      Comment


        #4
        MIN gives you the lowest value of the series over a period. You can see more in the Help Guide.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          "thank You!"

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          51 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          142 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          160 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          96 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          275 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X