Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
How to color indicator only when above 2.5 lines
Collapse
X
-
How to color indicator only when above 2.5 lines
How can I color the background only when indicator is above 2.5 line? Shown in red in the attached chart.Last edited by afshinmoshrefi; 07-01-2016, 08:31 AM.Tags: None
-
Hello afshinmoshrefi, and thank you for your question.
You can use BackColorSeries[int barsAgo] to change the background color of a panel behind an indicator at the specified barsAgo value. To change the entire background, you can loop between 0 and CurrentBar. I am including a help guide link for more information.
Please let us know if there is any other way we can help.Jessica P.NinjaTrader Customer Service
-
That won't work. I want to only color the background that is above 2.5 inside the indicator lines. I just photoshopped the attached chart to color the area in question in red.Last edited by afshinmoshrefi; 07-01-2016, 08:30 AM.
Comment
-
Hello afshinmoshrefi,
If you would like to extend Ninja beyond the documented functionality, which will let you color a slice of a panel behind a bar, you will need to use MSDN C# code. You may want to refer to this forums post as a reference, as it does something very similar to what you are proposing.
Please let us know if there is any other way we can help.Jessica P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Vietanhnguyen2hotmailcom, 05-03-2024, 10:29 AM
|
4 responses
24 views
0 likes
|
Last Post Yesterday, 09:06 PM | ||
Started by PhillT, 04-19-2024, 02:16 PM
|
4 responses
36 views
0 likes
|
Last Post
by PhillT
Yesterday, 04:24 PM
|
||
Started by ageeholdings, 05-01-2024, 05:22 AM
|
5 responses
38 views
0 likes
|
Last Post
by ageeholdings
Yesterday, 03:21 PM
|
||
Started by reynoldsn, Yesterday, 02:34 PM
|
0 responses
14 views
0 likes
|
Last Post
by reynoldsn
Yesterday, 02:34 PM
|
||
Started by nightstalker, Yesterday, 02:05 PM
|
0 responses
25 views
0 likes
|
Last Post
by nightstalker
Yesterday, 02:05 PM
|
Comment