Hi All, I've modified the code in the forum for outside bars to be Green when closing above the previous day close, and red when closing below the previous day close.
_SECTION_BEGIN("Outsidebar");
outsidebarhigh = H >= Ref( H, -1 ) AND L <= Ref( L, -1 ) AND C > Ref( C, -1);
outsidebarlow = H >= Ref( H, -1 ) AND L <= Ref( L, -1 ) AND C < Ref( C, -1);
insidebar = H <= Ref( H, -1 ) AND L >= Ref( L, -1 );
upbar = H > Ref( H, -1 ) AND L >= Ref( L, -1 );
downbar = L < Ref( L, -1 ) AND H <= Ref( H, -1 );
graph0 = close;
graph0style = 128;
barcolor = IIF( outsidebarhigh, colorbrightGreen, IIF( outsidebarlow, colorRed, IIF( insidebar, 1, IIF( downbar, 1, IIF( upbar, 1, 0 ) ) ) ) );
graph0barcolor = ValueWhen( barcolor != 0, barcolor );
_SECTION_END();
I've been messing around with a bunch of variations to the code with the intention of showing the outside bar as a thick bar whilst the other bars are a standard thickness. This is one of the variations:
barcolor = IIF( outsidebarhigh, colorBrightGreen | styleThick, IIF( outsidebarlow, colorRed | styleThick, IIF( insidebar, 1, IIF( downbar, 1, IIF( upbar, 1, 0 ) ) ) ) );
Any suggestions would be greatly appreciated.
Thanks