Oscillator Choppiness Index is intended for assessing the market situation. It identifies three states:
This indicator is made as an oscillating histogram with the zero central point.

The indicator informs on the market state with the different colors of the histogram bars:
Values below -11.8 indicates a trend in the market, while values above 11.8 indicate a flat. Values close to 50 indicate an instable consolidation.
The lower the oscillator value is within the negative area, the more expressed the trend component is on the market.
The indicator has four configured parameters:
Calculations:
CI = 100.0 * log10( SumATR / ( MaxHigh - MinLow)) / log10X - 50.0
where:
log10X = log10(Period) ATR = ATR(1) SumATR - sum of ATR over the Period MaxHigh - maximum High value within the Period MinLow- minimum Low value within the Period
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/21340
Exp_GStopLoss_Tm
An Expert Advisor for closing all positions, in case of the total losses on those positions exceeded the Stop Loss level fixed in inputs, or where it is necessary to close all positions beyond the time interval fixed in the settings.
Exp_GTakeProfit_Tm
An Expert Advisor for closing all positions, in case of the total profits on those positions exceeded the Take Profit level fixed in inputs, or where it is necessary to close all positions beyond the time interval fixed in the settings.