What is changing
First check whether it is CCI or %R LSMA. The bars are not the base value itself.
Read with bars how much the selected calculated value changed per 1 bar.
HeightThe difference between the current value and the value Span bars earlier, divided by Span.
ColorGreen when it exceeds Threshold, red when it exceeds it on the negative side, and silver in between.
ScaleWhen you change the base, period or Span, also check the threshold and the vertical axis.
Compares the default settings and a settings change example on a screen with only this product applied.
Published example: M1. This is an example to explain the display. The example with changed settings is not a set of recommended values. Details can be checked in the actual-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.
First check whether it is CCI or %R LSMA. The bars are not the base value itself.
Exactly ±Threshold is also silver. Do not decide the bar value from the color alone.
On the forming bar, both the height and the color change.
The unit is the change per 1 bar on the base's scale. It is a different number from the slope of the line on screen.
Bar = (current base value − base value Span bars earlier) ÷ Span. This equals the average of the last Span 1-bar differences.
The difference between the selected price and its period average is divided by mean absolute deviation × 0.015. If all prices in the calculation window are the same, it is 0.
Expresses the position of the close relative to the high and low within the period as −100 to 0, and smooths it with an LSMA of the same period. LSMA is 3×LWMA−2×SMA.
Green if the value is greater than Threshold, red if it is less than −Threshold, and silver otherwise. The ±Threshold lines are not drawn.
Look at the CCI bars and the silver dotted line at 0.
Silver is within the threshold; green and red are outside it. The dotted line at 0 is also silver, so tell them apart by shape.
%R LSMA does not use Applied Price. Check the period, Span and threshold together.
Check Applied Price, which does not appear in the window name, and the fine digits of Threshold in the Inputs tab.
| Included file | Purpose / location |
|---|---|
| TRI_Oscillator_Slope_Histogram.ex5 | The MT5 main file. Place it in MQL5/Indicators. |
The ZIP contains only 1 item, the main file. The manual is opened from the product page on the site. Source code is not included. MT5 only; registration, account authentication and placing a license file are not required. Use it without changing the file name.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
There are 5 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpBaseInpOscPeriodInpPriceInpSpanInpThresholdCCI has no fixed range common to all settings. %R is −100 to 0, but values after LSMA can go outside it. The bar scale also changes with the base, period and Span.
Only bars whose value is exactly 0 are silver. If you do not want to distinguish rounding differences, consider a small positive threshold.
The latest bar changes during the bar. The header shows 2 decimal places, but the color is determined by the value before rounding.
The calculation is designed to use finite windows. If the same bars and the required window are available, bars before that do not enter the formula. Near the start there are as many empty bars as are needed for the calculation.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
The CCI period must be 2 or more. %R LSMA can be used from 1.
If you changed the base, also check Threshold. %R LSMA does not always become silver.
Check the required history and the input ranges. For rejected settings, a diagnostic message in English appears in the Experts tab.
A small Threshold is shown in exponential form. Check the original value in the Inputs tab.
The dotted line at 0 and the bars within the threshold are the same silver color. Zoom in and tell them apart by the shape of the dotted line and the bars.
If the first display does not appear, check history loading and the input ranges. If an earlier display has stopped updating, first check the price feed and the terminal's connection status.
Counting the oldest bar as bar 1, let K = Oscillator Period and S = Span. Bars are drawn from bar K+S for CCI and from bar 2K−1+S for %R LSMA. Earlier bars are empty.
For CCI, until K−1+S bars have passed from the bar where the selected price became constant, and for %R LSMA, until 2K−2+S bars have passed from the bar where the high and low began to stay at the same value, the bars are not necessarily 0. After that, the bars are 0 while the stopped state continues.
The window name shows the base, period, Span and Threshold. Threshold is shown with 6 significant digits, and Applied Price does not appear in the name. Tiny values cannot be distinguished from the rounded display in the heading alone.
When the prices in the CCI calculation window are flat, and when the %R high − low is 0, the respective base value is set to 0. A %R of 0 does not directly mean 0 after smoothing.