Universal RSI indicator for working in two directions simultaneously
by
, 09-26-2018 at 09:57 AM (757 Views)
Contents
- Introduction
- Selecting the indicator
- Modifying the RSI indicator
- The first version. Adding signal buffers
- The second version. Adding buffers of signal counters
- The third version. Increasing the number of signals, eliminating skips
- The fourth version. Moving the indicator to the main chart window
- The fifth version. Universal RSI indicator for working in two directions simultaneously
- Conclusion
more...When developing trading algorithms, we almost always encounter a problem: how to determine where a trend/flat begins and ends? It is difficult to find a clear-cut solution. This goal seems achievable by combining the both trend-based and flat-based strategies in one algorithm. In this article, we will create a universal indicator that will combine signals for different types of strategies. We will try to simplify the generation of trade signals in an expert as much as possible. An example of combining several indicators in one will be given. This will be done using object-oriented programming, with each indicator or its part being implemented in the form of a class included in the main program file.