NexusFi: Find Your Edge


Home Menu

 





ChartControl Documentation


Discussion in NinjaTrader

Updated
    1. trending_up 5,718 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,360

Is there any documentation anywhere that gives details on ChartControls?

Thanks!


I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Trump Media to sell instant access to market-moving soci …
Traders Hideout
No book, only a stair: journaling fills where price move …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117

There is no documentation on ChartControls.

If you want to change the color for the ChartStyle LineOnClose, you can do this programmatically, but it will change the color for the entire plot. As far as I know, the ChartStyle LineOnClose does not use several pens or a BarColorSeries to store the values of the selected color for each bar.

This is the way to change the color of the whole plot:

 
Code
if (ChartControl.ChartStyleType == ChartStyleType.LineOnClose)
                        ChartControl.ChartStyle.UpColor = Color.Blue;
Note that the ChartStyle LineOnClose only uses the property UpColor. DownColor is not used.


Reply With Quote
Thanked by:
  #3 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,360



Fat Tails View Post
There is no documentation on ChartControls.

If you want to change the color for the ChartStyle LineOnClose, you can do this programmatically, but it will change the color for the entire plot. As far as I know, the ChartStyle LineOnClose does not use several pens or a BarColorSeries to store the values of the selected color for each bar.

This is the way to change the color of the whole plot:

 
Code
if (ChartControl.ChartStyleType == ChartStyleType.LineOnClose)
                        ChartControl.ChartStyle.UpColor = Color.Blue;
Note that the ChartStyle LineOnClose only uses the property UpColor. DownColor is not used.

You are correct about the changing colors, I just couldn't remember that the UpColor was what painted LineOnClose.

Thanks!


I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Started this thread Reply With Quote
  #4 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


ThatManFromTexas View Post
You are correct about the changing colors, I just couldn't remember that the UpColor was what painted LineOnClose.

Thanks!

But I have found no way to make it paint blue, if it is moving up, and red, if it is moving down. You can just change the color of the whole plot from the first bar of the chart to the last bar painted.


Reply With Quote




Last Updated on May 11, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts