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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
51 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
142 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
275 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment