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
Chart Background Color
Collapse
X
-
Chart Background Color
Is there a variable I can use to pickup the color that is being used as the background for the chart? I am trying to draw a box with the same color as the background of the chart, but don't want to statically set the color of the box because if the background color changes the box won't blend in.Josh P.NinjaTrader Customer ServiceTags: None
-
Thanks for the post emuns, while the ChartControls would not be supported territory you could for example look into adding this snippet in OnStart() to change the color to your liking from the code -
protected override void OnStartUp()
{
ChartControl.BackColor = Color.AliceBlue; // your color here.
}
The color could be also made a public user input for the script for sure.
You probably also want to add some logic to first store the current BackColor in a custom variable so you could restore to the chart default once the study is removed in OnTermination().Last edited by NinjaTrader_Bertrand; 11-11-2013, 04:36 AM.BertrandNinjaTrader Customer Service
Comment
-
Hello Bertrand,
Iˇm not sure if I understand what you mean or maybe you don´t understand what I mean... I use my own indicator (see attachment) which displays different color of a background of a chart depending on ETH/RTH. If I would like to change the color I wouln´t like to do it by going to the script but rather just changing it in Parameters. Is this possible?
Thank you.Attached Files
Comment
-
Thanks for the clarification - that was indeed a misunderstanding on my part here.
You can make a user input of type color to make this choice for your indicator script available from the UI directly, we also have a tip that would go into the steps needed to achieve that - http://www.ninjatrader.com/support/f...ead.php?t=4977BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pkefal, 04-11-2024, 07:39 AM
|
11 responses
36 views
0 likes
|
Last Post
by jeronymite
Today, 09:37 PM
|
||
Started by bill2023, Yesterday, 08:51 AM
|
8 responses
44 views
0 likes
|
Last Post
by bill2023
Today, 09:27 PM
|
||
Started by yertle, Today, 08:38 AM
|
6 responses
25 views
0 likes
|
Last Post
by ryjoga
Today, 09:17 PM
|
||
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
24 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
16 views
0 likes
|
Last Post Today, 06:43 PM |
Comment