color coding to higher-same-lower closes - NinjaTrader Programming | futures io social day trading
futures io futures trading


color coding to higher-same-lower closes
Updated: Views / Replies:1,333 / 7
Created: by stephenszpak Attachments:4

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
 

color coding to higher-same-lower closes

  #1 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received

color coding to higher-same-lower closes

Hi

I don't think what I want is possible in NT without coding.

Has this coding been done already? If the link can be provided that's great.



I just want color coding of the price bars according to the closes. The close
relative to the open is NOT part of what I want.

If close higher than previous close, then yellow.
If close same as previous close, then red.
If close lower than previous close, then blue.


In the attachment I would like to see red, red, red, blue,red, blue, red,
just as an example, as one looks left to right concentrating on the vertical lines I've added.
I would think this has been done already by someone somewhere?

- Stephen

Attached Thumbnails
color coding to higher-same-lower closes-color-coding-hsl.jpg  
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
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,315 received
Forum Reputation: Legendary



stephenszpak View Post
Hi

I don't think what I want is possible in NT without coding.

Has this coding been done already? If the link can be provided that's great.



I just want color coding of the price bars according to the closes. The close
relative to the open is NOT part of what I want.

If close higher than previous close, then yellow.
If close same as previous close, then red.
If close lower than previous close, then blue.


In the attachment I would like to see red, red, red, blue,red, blue, red,
just as an example, as one looks left to right concentrating on the vertical lines I've added.
I would think this has been done already by someone somewhere?

- Stephen

see post 105
https://futures.io/journals-daily-charts-chart-reading/2848-cunparis-journal-thoughts-more-11.html#post30868

or z1trend
https://futures.io/elite-circle/2246-two-good-indicators-needing-enhance.html#post20392

Reply With Quote
The following user says Thank You to cory for this post:
 
  #4 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received

I checked out DoubleMAPaintHolyGrail. That seemed to be
the closest to what I wanted. NT said my moving averages
were more recent than the ones in the indicator listed above
so I didn't accept them. I don't know if that affected things or
not. It didn't seem to work to do my basic color coding. I might
try to program this myself but it will probably take some time, if
I can do it at all.

Thanks for the effort,

- Stephen

Ok, I got this far but it's not quite right...

protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(Close[0]);


if (Close[0] > Close [1])
BarColor = Color.Yellow;
if (Close[0]==Close[1])
BarColor = Color.Red;
if (Close[0]<Close [1])
BarColor = Color.MediumPurple;


}


Last edited by stephenszpak; October 17th, 2010 at 12:27 AM. Reason: more comments
Reply With Quote
 
  #5 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received

How do you use it?

Attached Files
Register to download File Type: zip ClosePosition.zip (2.2 KB, 16 views)
Reply With Quote
 
  #6 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received

vegasfoster

Thanks a lot!

I'm just playing around using Kase bars on CL market replay data.
See attachment if you wish.

- Stephen

Attached Thumbnails
color coding to higher-same-lower closes-image-using-hsl-kase-bars.jpg  
Reply With Quote
 
  #7 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,879 since Jul 2009
Thanks: 1,449 given, 3,306 received


stephenszpak View Post
vegasfoster

Thanks a lot!

I'm just playing around using Kase bars on CL market replay data.
See attachment if you wish.

- Stephen

Take a look at this and let me know what you think. You will see that I roundprice to the ticksize so you can actually compare closes. Otherwise, you will see some situations where Close[0] == Close[1] bars that don't get painted correctly.

I am attaching the .cs file so you can put it in either nt7 or nt6.5

Mike

Attached Files
Register to download File Type: cs mwColorBars.cs (4.9 KB, 16 views)
Reply With Quote
The following user says Thank You to MWinfrey for this post:
 
  #8 (permalink)
Elite Member
Massachusetts (USA)
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: YM
 
stephenszpak's Avatar
 
Posts: 778 since Jun 2009
Thanks: 144 given, 358 received


MWinfrey View Post
Take a look at this and let me know what you think. You will see that I roundprice to the ticksize so you can actually compare closes. Otherwise, you will see some situations where Close[0] == Close[1] bars that don't get painted correctly.

I am attaching the .cs file so you can put it in either nt7 or nt6.5

Mike

I'm ok for now. Thanks.

Reply With Quote

Reply



futures io > > > > > color coding to higher-same-lower closes

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
What are your feelings when the market closes each day,or shuts down for the weekend? forrestang Psychology and Money Management 22 July 26th, 2011 11:35 PM
Color coding for indicator line help? hector24 NinjaTrader Programming 8 July 13th, 2011 10:10 PM
Russia May Lower Holdings of U.S. Debt kbit News and Current Events 0 June 20th, 2011 02:48 PM
basic color coding according to direction of a moving average stephenszpak NinjaTrader Programming 7 May 29th, 2011 10:49 PM
HH HL Higher highs, Higher lows emini_Holy_Grail Traders Hideout 3 January 22nd, 2010 05:10 PM


All times are GMT -4. The time now is 08:49 PM.

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-13 in 0.11 seconds with 20 queries on phoenix via your IP 54.160.245.121