If you want the chart set up a certain way when the EA starts, put this code in, and adjust to your needs.
The following give you a blank chart with yellow foreground. No time or price, no grids, no price.
I use this for a multi-pair so I want a blank screen.
I just discovered this a week ago...
Code: Select all
void ChartSetup()
{
ChartSetInteger(0,CHART_MODE,CHART_LINE);
ChartSetInteger(0,CHART_COLOR_BACKGROUND,Black);
ChartSetInteger(0,CHART_COLOR_FOREGROUND,Yellow);
ChartSetInteger(0,CHART_SHOW_GRID,0);
ChartSetInteger(0,CHART_FOREGROUND,0);
ChartSetInteger(0,CHART_SHOW_BID_LINE,0);
ChartSetInteger(0,CHART_SHOW_OHLC,0);
ChartSetInteger(0,CHART_SHOW_PERIOD_SEP,0);
ChartSetInteger(0,CHART_SHOW_ASK_LINE,0);
ChartSetInteger(0,CHART_SHOW_VOLUMES,0);
ChartSetInteger(0,CHART_SHOW_OBJECT_DESCR,0);
ChartSetInteger(0,CHART_SHOW_TRADE_LEVELS,0);
ChartSetInteger(0,CHART_SHOW_DATE_SCALE,0);
ChartSetInteger(0,CHART_SHOW_PRICE_SCALE,0);
ChartSetInteger(0,CHART_COLOR_GRID,clrNONE);
ChartSetInteger(0,CHART_COLOR_VOLUME,clrNONE);
ChartSetInteger(0,CHART_COLOR_CHART_UP,clrNONE);
ChartSetInteger(0,CHART_COLOR_CHART_DOWN,clrNONE);
ChartSetInteger(0,CHART_COLOR_CHART_LINE,clrNONE);
ChartSetInteger(0,CHART_COLOR_CANDLE_BULL,clrNONE);
ChartSetInteger(0,CHART_COLOR_CANDLE_BEAR,clrNONE);
ChartSetInteger(0,CHART_COLOR_BID,clrNONE);
ChartSetInteger(0,CHART_COLOR_ASK,clrNONE);
ChartSetInteger(0,CHART_COLOR_LAST,clrNONE);
ChartSetInteger(0,CHART_COLOR_STOP_LEVEL,clrNONE);
ChartSetInteger(0,CHART_SHOW_LAST_LINE,0);
}