Pre-market & Post-Market Trading Hours Color Coding
I have my charts in Multicharts reflective of a 24/7 time frame, as opposed to just market orders. I emailed Multicharts to see if there is a way that they can color the chart differently for the time period that is not market hours. They gave me a link to a code which I did try. It looks as though I can make it work, however, currently it does not color the chart to market hours vs non market hours. When I asked them how to fix it, they made out that changing the code would be easy to make it reflective of just market hours and non market hours. Does anyone know how to do this? It is above me. Thanks! Here is the code they gave me:
input : PosColor(green), NegColor(red);
var : var1_upvalue(999999),
if c >= averagefc(c, 21) then
var3_color = PosColor;
var3_color = NegColor;
Insert this indicator into your chart, change the plottypes to "Bar High" and "Bar Low" and change the thickness to level 5 or higher. Change the indicator to be shown in Subgraph 1 and "Same as Instrument" in scaling. Right klick the indicator in the chart and change "Visual Order" to " Send to Back". Edit the instrument plot thickness just for 1 level and that is it. No need to re-plot candles or bars and paying other programmer for such an easy thing.