Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Paintbar of SMA crossover
Collapse
X
-
Paintbar of SMA crossover
Does anybody have the script for a PaintBar of a SMA crossover whereby when a 6 bar SMA crosses above a 12 bar SMA on the close the price bars are painted green for example and when a 6 bar crosses below the 12 bar the price bars are painted red. I am terrible at writing my own indicators. Thank you very much ahead of time.Tags: None
-
Hello cajunman,
I took a look around to see if there is an existing script that does this, but I was not able to find an existing script.
This script would not require much code to create.
For example:
if (CrossAbove(SMA(6), SMA(12), 1))
{
BarColor = Color.Green;
}
This would change the bar color when the SMA with a period of 6 crosses above the SMA with a period of 12.
CrossAbove - http://ninjatrader.com/support/helpG...crossabove.htm
BarColor - http://ninjatrader.com/support/helpG...7/barcolor.htm
While I will not be able to create this script at your request, this thread will remain open for any community members that would like to create this script as a convenience to you.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
129 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
74 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
117 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
111 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
89 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment