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 cmoran13, Yesterday, 01:02 PM
          0 responses
          31 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          22 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          162 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          95 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          151 views
          2 likes
          Last Post CaptainJack  
          Working...
          X