Change Chart Colors

ESPL can change chart colors.  The color variables can be read using GetVariable and assigned using SetVariable. These constants are used to read or set the colors.

eColorChart            {background color}
eColorBars
eColorBarsUp
eColorBarsDn
eColorCross
eColorVolume
eColorOpenInt
eColorGrid
eColorFont

Below is one of my test scripts.   Initial chart is recolored to a green background with white font.   Then, by clicking button #2 the chart background is changed to red with a black font.  I can envision some using this capability as an alert notification.

Example:

begin
  if who=1 then begin
    chart('sp0z.d');
    SetVariable(eColorChart,clGreen);
    SetVariable(eColorFont,clWhite);
  end;
  if who=2 then begin
    FindWindow(eChart);
    SetVariable(eColorChart,clRed);
    SetVariable(eColorFont,clBlack);
  end;
end;