The indicator shows the use of the free Library for Custom Chart library for the automatic connection of the indicators to iCustomChart custom charts created on the basis of custom history files.
The presence of iCustomChart custom chart is checked when attaching the indicator to a chart window. In case a custom chart has been uploaded, the library functions use the data of that chart. Otherwise, the data of a standard chart is used. Therefore, the indicator can work both with custom and standard charts without the need for any changes.
Instructions
- Download Library for Custom Chart library file and place it to the terminal_data_folder\MQL5\Libraries
- Download the file containing the library functions description LibCustomChart.mqh and place it to the terminal_data_folder\MQL5\Include
- Download Nikolay Kositsin’s SmoothAlgorithms.mqh file containing the description of smoothings classes and place it to the terminal_data_folder\MQL5\Include
- Download the iSmoothLines.mq5 file and place it to the terminal_data_folder\MQL5\Indicators
- Download iSmoothLines.mq5 to MetaEditor and compile (F7)
- iSmoothLines.ex5 indicator can be launched both on a standard and custom chart created with the use of iCustomChart
- The following steps must be executed to upload the indicator on a custom chart:
- download demo or full version of iCustomChart and attach it to any chart window;
- then attach iSmoothLines to the same window. iSmoothLines will automatically detect the presence of iCustomChart and get calculation data from it.