Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Color band
Collapse
X
-
Color band
Hi, I want to create a colored band using an EMA ... basically, take 5 ticks on both sides of the EMA and color is red when falling and green when rising. Got the 'falling' and 'rising' down, but now sure how to fill in the band with a color. Can you direct me to a resource that can help. thanks!Tags: None
-
OK ... I'm doing something wrong but cannot see it. Maybe you canhelp me. when compiling, I'm getting a CS1502 error message. This error can occur when you pass in incorrect parameter object types into a method such as an indicator.
DrawRegion("tag1", CurrentBar , 0, EMA(160)[0], (EMA(160)[0] + (6* TickSize)) , Color.Transparent, Color.LightGreen, 3);
Comment
-
Hello pman777,
The best overload for a draw region is- 2 IDataSeries
- I IDataSereis and 1 double
You have assigned 2 double and thus you are getting the error. Please modify your code as below and see if you can get it work.
Code:DrawRegion("tag1", CurrentBar , 0,[B] EMA(160)[/B], (EMA(160)[0] + (6* TickSize)) , Color.Transparent, Color.LightGreen, 3);JoydeepNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
164 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
319 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
246 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment