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.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Alert for OHLC, SMA, Pivots
Collapse
X
-
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.Tags: None
-
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
-
Thanks! I will give that a try. What does the MIN stand for? Are there similar wizard choices to the code you gave me?Originally posted by Josh View PostYou 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");
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
627 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
359 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
562 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
567 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment