Indicator not Plotting correct bar color - futures io
futures io



Indicator not Plotting correct bar color


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Indicator not Plotting correct bar color

(login for full post details)
  #1 (permalink)
ECI Ed
Seminole, FL
 
 
Posts: 17 since Oct 2011
Thanks: 9 given, 2 received

The attached indicator compiles and calculates the correct values, but it won't plot the bar color correctly and I can't adjust the width of the bar, and I'm getting no clues as to what the problem could be. Could someone please help point me to the incorrect syntax?

Thanks in advance.

Attached Files
Register to download File Type: cs SMIwDiv.cs (12.2 KB, 11 views)
Reply With Quote

Can you help answer these questions
from other members on futures io?
TradingView help in improving Anchored Vwap
Platforms and Indicators
TD Sequential for NT or MW?
Platforms and Indicators
Is there inherently more opportunity in smaller markets?
Traders Hideout
MacdBB V402 NT804 + gradient + pullback not working on N …
NinjaTrader
1 min chart v-shape scan help please
ThinkOrSwim
 
 
(login for full post details)
  #3 (permalink)
 Silvester17 
Market Wizard
Columbus, OH
 
Experience: None
Platform: NT 8, TOS
Trading: ES
 
Silvester17's Avatar
 
Posts: 3,587 since Aug 2009
Thanks: 5,083 given, 11,396 received



ECI Ed View Post
The attached indicator compiles and calculates the correct values, but it won't plot the bar color correctly and I can't adjust the width of the bar, and I'm getting no clues as to what the problem could be. Could someone please help point me to the incorrect syntax?

Thanks in advance.

I would try something like this:

 
Code
if ( smis[0]>esmis[0] ) 
				
				PlotColors[0][0] = Color.Lime;
			else 
				PlotColors[0][0] = Color.Red;
edit:

also why do you need this part:

 
Code
                        Lines[0].Pen = new Pen(Color.Red, 2);
		 	Lines[1].Pen = new Pen(Color.Red, 2);
		   	Lines[2].Pen = new Pen(Color.Gray, 2);
I think you can delete those lines and still get the desired result.

Reply With Quote
The following 2 users say Thank You to Silvester17 for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Indicator not Plotting correct bar color


Last Updated on July 1, 2013


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

August
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts