Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I would like to set the chart background color in code....
For example, when I want to print or save the chart, I want the background to be White. Otherwise, I use a darker color, which does not print well, to ease the brightness of the chart on my eyes.
Now I have to go through multiple steps, right mouse click, pop up box....et cetera
If I can access the Chart property directly and change the color with code then I can just make a button.
Actually when I think about it...wouldn't it be great to have a button for Print, and a button for Save, that would do the whole thing with one click...change the chart background to white, print/save, and then revert the chart back to the original color...better yet, to do this in the background.
any ideas guys?
(it would be better even yet, if Ninja would provide this feature...when Printing or Saving to have a default color for background)
Can you help answer these questions from other members on NexusFi?
ChartMinder is a NinjaTrader7 indicator for capturing chart images from single or grouped charts for local logging or online posting. It follows in the footsteps of vvhg's vvScreenShot and breaks new ground, hopefully with much more to follow.
This little indicator can save a screenshot of a chart (the chart the indicator is applied to) to a user selected folder.
It works with a little button on the chart:
93004
or with the hotkey Alt+P (this can be changed in line 160 of the code).
Ok, sample TEST code attached. This will put a button on ChartTrader that allows clicks to toggle through a hard coded group of colors....see ColorButton_Click(...) to add or delete colors.
I don't like using drop downs because they require multiple mouse movements...for me they are too complicated when I want to keep my focus on the charts.
So, I prefer to click through the short list rather than do the drop down.
A single click advances through the list.
The list could be in an array or other structure.
For it to work, the initial chart color must be one in the list.
@vantojo,
As a reward for sharing with the community here is updated version which doesn't hard code Colors, instead it lets you select new colors from the collection editor.
For those trying it out - the button is located on the Chart Trader.