• 概述
  • 评论
  • 评论 (3)
  • 新特性

VR Change PeriodMT5

This is a simple utility for the MetaTrader 5 terminal. It displays buttons for changing the chart period. As well as buttons of the chart scaling.

Good for working in the full screen mode.

The utility creates buttons with a time frame selected in settings.


Settings:

  • TimeFrame1 - Button period
  • TimeFrame2 - Button period
  • TimeFrame3 - Period button; if equal to the previous one, the button is not drawn
  • TimeFrame4 - Period button; if equal to the previous one, the button is not drawn
  • TimeFrame5 - Period button; if equal to the previous one, the button is not drawn
  • TimeFrame6 - Period button; if equal to the previous one, the button is not drawn
  • TimeFrame7 - Period button; if equal to the previous one, the button is not drawn
  • TimeFrame8 - Period button; if equal to the previous one, the button is not drawn
  • clrButton - Color of period buttons
  • X_Position - Position along the X axis
  • Y_Position - Position along the Y axis
  • CornierPosition - Angle of position connection (0,1,2,3); 0-upper left
  • Prefix - Prefix in object names to clear elements (2 letters)

To limit number of buttons, all further time frames must be equal to the last operational time frame in the utility settings.

Example of settings which has only three period buttons:

  • TimeFrame1 = PERIOD_M1;
  • TimeFrame2 = PERIOD_M2;
  • TimeFrame3 = PERIOD_M5;
  • TimeFrame4 = PERIOD_M5;
  • TimeFrame5 = PERIOD_M5;
  • TimeFrame6 = PERIOD_M5;
  • TimeFrame7 = PERIOD_M5;
  • TimeFrame8 = PERIOD_M5;

Example of settings which has only five period buttons:

  • TimeFrame1 = PERIOD_M1;
  • TimeFrame2 = PERIOD_M2;
  • TimeFrame3 = PERIOD_M5;
  • TimeFrame4 = PERIOD_M6;
  • TimeFrame5 = PERIOD_M10;
  • TimeFrame6 = PERIOD_M10;
  • TimeFrame7 = PERIOD_M10;
  • TimeFrame8 = PERIOD_M10;


Important:

The utility is designed in the form of an indicator and allows to import an operating function.

void AddButtonPeriod(
                     const int x_position, // Position along the X axis
                     const int y_position, // Position along the Y axis
                     const ENUM_BASE_CORNER cornierposition, // Angle of position connection (0,1,2,3); 0-upper left
                     const color clrbutton, // Color of period buttons
                     const string prefix,   // refix in object names to clear elements (2 letters)
                     const ENUM_TIMEFRAMES timeframe1, // Time frame from settings
                     const ENUM_TIMEFRAMES timeframe2, // Time frame from settings
                     const ENUM_TIMEFRAMES timeframe3, // Time frame from settings
                     const ENUM_TIMEFRAMES timeframe4, // Time frame from settings
                     const ENUM_TIMEFRAMES timeframe5, // Time frame from settings
                     const ENUM_TIMEFRAMES timeframe6, // Time frame from settings
                     const ENUM_TIMEFRAMES timeframe7, // Time frame from settings
                     const ENUM_TIMEFRAMES timeframe8  // Time frame from settings
                     )

Find out how to import a function in the Docs section.

Go to the MetaTrader 4 version of the product

无评论
版本 15.73 - 2015.07.24
Added:
Buttons for changing a scale.
Button for chart autoscroll.
Button for shifting the chart to the left.
版本 15.72 - 2015.07.10
Improvement:
When settings are modified, these modifications come into effect immediately. Previously the indicator had to be reinstalled.