How to Remove Chart Border in MT5 3 replies
Right Wrong Right Wrong Right Wrong 13 replies
Price Action - Right To Left Or Left To Right? 4 replies
Newb at the right place and the right time 1 reply
Does anyone know where I can get a real-time Dow Jones avg chart? 10 replies
datetime right_shift(int index) { //TODO add logic to account for closed market datetime zero_bar = (datetime)SeriesInfoInteger( _Symbol, PERIOD_CURRENT, SERIES_LASTBAR_DATE ); return zero_bar + PeriodSeconds() * index; }
datetime zero_bar = (datetime)SeriesInfoInteger( _Symbol, PERIOD_CURRENT, SERIES_LASTBAR_DATE );
datetime zero_bar = Time[0];
datetime right_side_of_chart(void) { int first_visible = (int)ChartGetInteger(0, CHART_FIRST_VISIBLE_BAR); int width = (int)ChartGetInteger(0, CHART_WIDTH_IN_BARS); datetime zero_bar = (datetime)SeriesInfoInteger( _Symbol, PERIOD_CURRENT, SERIES_LASTBAR_DATE ); return zero_bar + PeriodSeconds() * (width - first_visible); }
DislikedAlso, it's better to use SeriesInfoInteger than to rely on the wonky built in arrays.Ignored