Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator that alerts me when candle is 10 pts big
Collapse
X
-
Indicator that alerts me when candle is 10 pts big
Hi can anyone help me code a simple indicator that alerts me when a candle is 10pts big on the e-mini on the 5 minute chart. So from open of the candle till close of the candle has to be 10pts. -
Hello wallsteetking,
Welcome to the NinjaTrader forums!
Below is a snippet that will do this. From open to close like this suggests a down candle. You can reverse for an up candle or take absolute value if direction doesn't matter.
if (Open[0] - Close[0] == 10)
Alert("myAlert", Priority.High, "AlertMessage", "SoundFile", 0, Color.White, Color.Black);Ryan M.NinjaTrader Customer Service
-
Thank you for you help Ryan. I have one more question is it possible to have the code say
= If 2 X 10pts (one candle after another) that the alert goes off.
Comment
-
Yes, you can add:
if (Open[0] - Close[0] == 10 && Open[1] - Close[1] == 10)
Alert("myAlert", Priority.High, "AlertMessage", "SoundFile", 0, Color.White, Color.Black);
Since you're accessing index values one bar back, make sure you follow this post to avoid errors when running the script:
Ryan M.NinjaTrader Customer Service
Comment
-
Need help
Dear Ryan
thank you for your help on helping me make my custom indicator. However, I am having problem writing the script. It seems every time I type in the code in Ninja Script I get an error. could you please help me write the code and upload the indicator.
All I want is a indicator that alerts ( Yellow highlight or alarm) if If 2 X 10pts or greater..... For example if the candle closes 11pts it does not matter it has to close above 10 though.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
581 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
338 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment