MQL programming language allows implementing the concept of modular development of trading strategies. The article shows an example of developing a multi-module Expert Advisor consisting of separately compiled file modules.
The indicator uses the values of the standard iBands indicator as the source data. Bollinger Bands are constructed based on extended Fibonacci levels. The number of standard deviations given in the initial data is used as the basis for the calculation of levels. In addition, selecting an appropriate Fibonacci level, the indicator will show the buy area (blue) and sell area (red). Signals are generated after an appropriate Fibonacci level is broken, and are displayed on the indicator's middle
This trading strategy is based on channel trading with position reversals at the borders and is designed using the standard iBands indicator. When a channel is broken, a position is opened in the direction opposite to the price movement. If the upper boundary of the channel is broken upwards, then a Sell position is opened, and if the lower one is broken, a Buy position is opened. Input parameters on_lot - use fixed lot; Lot - fixed lot size; lot_perc - lot size as a percentage of equity;
Generator of trade signals based on the DCMV indicator is perfect for creating robots, as the generator has a high operating speed and minimum CPU usage. It has only one indicator buffer: if its value is 0 on the current bar, then there are no trade signals; if the value is greater than 1, then a Buy signal is formed; if the value is less than -1, then a Sell signal is formed. Two DCMV indicators of trade channels are used for generating the signals. The first one identifies the trends (Buy or