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)
{ ------------------------- Revision 1 Aug 15 07 ------------------------------
- Simplified coloring code for efficiency.
- Removed Once command to permit use with pre-8.2 Tradestation.
- Added efficiency fix so RGB color values as inputs need only calculate once on startup.
}
// Heikin-Ashi Candles by Suri Duddella (deMicron)
if BarNumber = 1 then
begin
haOpen = open;
haClose = (O+H+L+C)/4;
haHigh = MaxList( high, haOpen, haClose);
haLow = MinList( low, haOpen,haClose);
end;
if haClose > haOpen then
Candlecolor = ColorU
else
Candlecolor = ColorD;
for value1 = 1 to CompBars
begin
if haOpen <= MaxList(haOpen[value1],haClose[value1]) and
haOpen >= MinList(haOpen[value1],haClose[value1]) and
haClose <= MaxList(haOpen[value1],haClose[value1]) and
haClose >= MinList(haOpen[value1],haClose[value1]) then
Candlecolor = Candlecolor[value1];
end;
Thx for trying a second time, but I don't see anything there for painting a background color on the chart. Please point to me the line(s) of code you were thinking...