Сделки на покупку. Если на Н4 ADX растет, DI+ выше DI-, а на М15 или М5 (должна быть возможность переключения) ADX также растет выше определенного значения (double), указанного в настройках, DI+ выше DI-, MACD растет выше нулевой линии определенное число баров, указанных в настройках (int) или пересекает ее снизу вверх, причем в обоих случаях гистограмма должна быть не меньше определенного значения (double), также указанного в настройках, советник открывает сделку на определенное время, указанное в настройках в минутах (int). Помимо закрытия по времени, в советнике должны быть 2 внешние переменные (double) - максимальная прибыль и максимальный убыток, ограничивающие соответственно прибыль и убыток. Сделки на продажу. Если на Н4 ADX растет, DI- выше DI+, а на М15 или М5 (должна быть возможность переключения) ADX также растет выше определенного значения (double), указанного в настройках, DI- выше DI+, MACD растет по модулю ниже нулевой линии определенное число баров, указанных в настройках (int) или пересекает ее сверху вниз, причем в обоих случаях гистограмма должна быть по модулю не меньше определенного значения (double), также указанного в настройках, советник открывает сделку на определенное время, указанное в настройках в минутах (int). Помимо закрытия по времени, в советнике должны быть 2 внешние переменные (double) - максимальная прибыль и максимальный убыток, ограничивающие соответственно прибыль и убыток. Transactions for the purchase. If ADX grows on H4, DI+ is higher than DI-, and on M15 or M5 (should be switchable) ADX also grows and is above a certain value (double) specified in the settings, DI+ above DI-, MACD increases above the zero line a certain number of bars specified in the settings (int) or crosses it from bottom to top and in both cases the histogram must not be smaller than a certain value (double), also specified in the settings, the adviser opens a deal for a certain time which can also be found in the settings in minutes (int). In addition to time closing, the adviser should have 2 external variables (double) - maximum profit and maximum loss, which will limit profit and loss, respectively. Transactions for sale. If ADX grows on H4, DI- is higher than DI+, and on M15 or M5 (should be switchable) ADX also grows above a certain value (double) specified in the settings, DI- is higher than DI+, MACD increases in absolute value below the zero line a certain number of bars specified in the settings (int) or crosses it from top to bottom and in both cases the absolute value of histogram should not be less than a certain value (double), also specified in the settings, the adviser opens a deal for a certain time which can also be found in the settings in minutes (int). In addition to time closing, the adviser should have 2 external variables (double) - maximum profit and maximum loss, which will limit profit and loss, respectively.