Indicator not Plotting correct bar color - NinjaTrader Programming | futures io social day trading
futures io futures trading


Indicator not Plotting correct bar color
Updated: Views / Replies:734 / 2
Created: by ECI Ed Attachments:1

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Indicator not Plotting correct bar color

  #1 (permalink)
Trading Apprentice
Seminole, FL
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 17 since Oct 2011
Thanks: 9 given, 1 received

Indicator not Plotting correct bar color

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)

Last edited by ECI Ed; July 1st, 2013 at 03:30 PM. Reason: Left out bar thickness problem
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT 8, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,332 since Aug 2009
Thanks: 4,579 given, 10,313 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.


Last edited by Silvester17; July 1st, 2013 at 03:51 PM.
Reply With Quote
The following 2 users say Thank You to Silvester17 for this post:

Reply



futures io > > > > > Indicator not Plotting correct bar color

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heikin Ashi indicator with bar outline same color as bar? Todd NinjaTrader 29 September 7th, 2013 08:33 AM
Pips counter - bar changes to another color jonc NinjaTrader 0 May 21st, 2012 02:22 PM
How to Color a Single Bar in NT7? aligator NinjaTrader Programming 10 January 8th, 2012 04:41 PM
NT not showing correct range bar size gracepips NinjaTrader 6 March 28th, 2011 11:36 AM
Color changing Regression Line with Paint Bar Gibby NinjaTrader Programming 49 April 23rd, 2010 03:54 PM


All times are GMT -4. The time now is 05:25 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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
Page generated 2017-12-16 in 0.07 seconds with 20 queries on phoenix via your IP 54.160.245.121