Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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
Can you help answer these questions from other members on NexusFi?
Dear friends,
The two indicators, z1TrendBars and DoubleMAPaint_HolyGrail are very good, but I believe to enhance them we need to make the Candle Stick Up Bars Hollow. This way is easier to identify the Candle Stick Up Bars.
Can someone help to do this, …
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;
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