Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ema cross
Collapse
X
-
Ema cross
Can anyone help me with a ema cross indicator that changes the bars color when the fast ema crosses up over the slow and changes another color when the fast ema crosses down over the slow ema. Thank you to anyone who decides to help me here.Tags: None
-
Hello dstewart12,
You may find the Strategy Builder helpful in generating this code. Then you can copy and paste the logic from OnBarUpdate() into an indicator.
Below I am providing link to a forum post with helpful resources on getting started with NinjaScript and C#. Please watch the videos 'Automate Your Trading with NinjaTrader's Strategy Builder' and 'NinjaScript Editor 401'.
In the Strategy Builder Condition Builder, you can select EMA on the left, Cross above in the center, and EMA on the right. For the action in the 'Do the following' select Drawing -> Set bar color.
This thread will remain open for any community members that would like to build this script at your request as a convenience to you.
You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
628 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
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment