mod this code (Schaff Trend Cycle) to work with selectable Time frame

 

Hi all,


Could someone help me or point me to the right direction to mod this indicator to have option to select different timeframe and with an option to display in the main signal windows then under.

The code is here:

https://www.mql5.com/en/code/20281


Thank you very much

Schaff Trend Cycle
Schaff Trend Cycle
  • www.mql5.com
The Schaff Trend Cycle (STC) indicator is the product of combining Slow Stochastics and the Moving Average Convergence/Divergence (MACD). The MACD has a reputation as a trend indicator, but it's also notorious for lagging due to its slow responsive signal line. The improved signal line gives the STC its relevance as an early warning sign to...
Reason: