NexusFi: Find Your Edge


Home Menu

 





Change color of LineOnClose from an indicator?


Discussion in NinjaTrader

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




 
Search this Thread

Change color of LineOnClose from an indicator?

  #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,353

On a chart with LineOnClose as the Chart Style, I need to Over Ride the color of the LineOnClose from an indicator. Can someone provide the syntax ?

Thanks!

Fat Tails Answered this in another thread .

Thanks Fat Tails!


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.


Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
36 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


ThatManFromTexas View Post
On a chart with LineOnClose as the Chart Style, I need to Over Ride the color of the LineOnClose from an indicator. Can someone provide the syntax ?

Thanks!

Fat Tails Answered this in another thread .

Thanks Fat Tails!

Yes, you started two threads for a similar subject, which left me confused. Sorry for giving the right answer in the wrong place.

Reply With Quote
Thanked by:




Last Updated on May 11, 2011


© 2024 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 - Privacy Policy - Downloads - Top
no new posts