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

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/869
Expert Advisor Demonstrating LibCustomChart Application
The Expert Advisor shows the use of the free LibCustomChart library for the automatic connection of the Expert Advisors and indicators to iCustomChart custom charts created on the basis of custom history files.
ColorChart
Simple script to randomize all colors of your chart. Just click on it and see results yourself!
AutoNK
The indicator creates a channel and provides the possibility to configure it with automatic tuning.
JPTrend indicator
The indicator calculates the resistance and support lines and shows alerts when price is reached them.