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?
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,
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' with your own formula.
if (Close > Close )
BarColor = Color.Yellow;
BarColor = Color.Red;
if (Close<Close )
BarColor = Color.MediumPurple;
Last edited by stephenszpak; October 16th, 2010 at 11:27 PM.
Reason: more comments
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 == Close bars that don't get painted correctly.
I am attaching the .cs file so you can put it in either nt7 or nt6.5
The following user says Thank You to MWinfrey for this post: