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)
as far as I am aware legacy plots are not designed to use Color objects, they are intended for the standard or custom foreground and background color to a Forms control or DrawingObject (while plots are not a DrawingObject). Plots expect legacy colors, one of the 16 named colors (like Red or Blue etc.) or RGB/ARGB values.
"elsystem.drawing.color.FromArgb(255,255,255,255)" is not an integer or double and what value Tradestation uses
when you use it with legacy plots might be a question to ask the developers directly. The reason why you are seeing different
colors for every bar is likely due to the fact that you create a new instance of the object on every code calculation.
If you would create the color once only and then use that going forward, you should see the same color for all bars (although likely
not white).
For your code snippet the better approach would be using something along the lines of:
Variables:
int plotColor ( ARGB( 255, 255, 255, 255) );