Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Color MA based on slope?
Collapse
X
-
Color MA based on slope?
How can you color an MA based on slope or rising/falling? Ideally, I would like to change the colors as the slope intensifies, etc., but just rising/falling is what I am trying to do now. I assume this would be a Ninjascript design?Tags: None
-
Hello Stok,
Thanks for your post.
Correct, any modifications would need to be through Ninjascript. If you would like educational links to get you started with Ninjascript please let us know. If you would like this developed for you, we can provide references to 3rd party coders who could provide this service. Finally, you may find examples of what you need in the NT8 indicators downloads section.
The IsRising() and IsFalling() methods can be found here:
A good example of this can be found in the MACrossbuilder here: https://ninjatrader.com/support/foru...d=7&linkid=906
The IsRising and IsFalling simply compare the current value to the prior value.
You can use the Slope() method to determine the slope over a period of time (bars), here is a link to the slope method: https://ninjatrader.com/support/help...-us/?slope.htm
-
Thanks Paul!Originally posted by NinjaTrader_Paul View PostHello Stok,
Thanks for your post.
Correct, any modifications would need to be through Ninjascript. If you would like educational links to get you started with Ninjascript please let us know. If you would like this developed for you, we can provide references to 3rd party coders who could provide this service. Finally, you may find examples of what you need in the NT8 indicators downloads section.
The IsRising() and IsFalling() methods can be found here:
A good example of this can be found in the MACrossbuilder here: https://ninjatrader.com/support/foru...d=7&linkid=906
The IsRising and IsFalling simply compare the current value to the prior value.
You can use the Slope() method to determine the slope over a period of time (bars), here is a link to the slope method: https://ninjatrader.com/support/help...-us/?slope.htm
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
84 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
47 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
66 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
58 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment