How can I code a specific chart pattern to light up ONLY when it closes below a specific SMA?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Chart Pattern with SMA
Collapse
X
-
-
Hello joeyfreshwater,
Thanks for your post and welcome to the NinjaTrader forums!
You would need to create the logic of the chart pattern and combine it with the logic of the current bars close relative to the current value of the SMA.
Depending on what chart pattern you need, you may be able to use the indicator "CandleStickPatterns" in your NinjaTrader. When the indicator detects the selected pattern it will produce a signal of +1.
To "light" up the chart pattern, there are a number of means to draw attention to the pattern, it just depends on what you would like to do.
If you are not familiar with Ninjascript, which is based on C#, you can walk through a tutorial here: https://ninjatrader.com/support/help...indicators.htm
If you are not familiar with C# programming language you can do an online search for C# tutorials.
In addition, you are welcome to attend the free Ninjascript webinar: https://ninjatrader.com/Webinar/NinjaScript-Editor-401
If you cannot attend, you can view a previous recording here: https://www.youtube.com/watch?v=H7aD...We0Nf&index=15
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment