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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
155 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
137 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment