Bars are short-term average − long-term average
This is not the standard deviation itself, but the difference between its 2 averages. Negative values also occur.
Averages the standard deviation around an LWMA with short-term and long-term LWMAs and shows the difference as bars. A Signal line that further averages the difference is also shown.
Bars are short-term average − long-term averageThis is not the standard deviation itself, but the difference between its 2 averages. Negative values also occur.
The red-orange line is SignalIt is an LWMA of the bar values. The color does not indicate rising or falling prices.
A setting of 0 means an automatic period0 for Long Period and Signal Period does not mean hidden. The periods are calculated from Period.
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 published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the included version has display settings for the brand text and QR code. The example with changed settings is not a set of recommended values. Details can be checked in the full-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.
This is not the standard deviation itself, but the difference between its 2 averages. Negative values also occur.
It is an LWMA of the bar values. The color does not indicate rising or falling prices.
0 for Long Period and Signal Period does not mean hidden. The periods are calculated from Period.
Averages the standard deviation around an LWMA with short-term and long-term LWMAs and shows the difference as bars. A Signal line that further averages the difference is also shown.
Unlike the common standard deviation centered on an SMA, the deviation is calculated around the LWMA of the selected price.
Long=int(P×√P), Signal=int(1.618×P). Decimals are truncated. With the default P12, they are 41 and 19.
Load history on the same symbol and timeframe, and first check the default settings.
This is not the standard deviation itself, but the difference between its 2 averages. Negative values also occur.
Refer to the published change example and confirm how the inputs correspond to the display. For change examples with multiple conditions, separating each condition lets you follow the differences.
The value on the current bar changes. Compare numbers at the same past time.
| Included file | Purpose / location |
|---|---|
| TRI_Deviation_Oscillator.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. When comparing different settings, using separate charts makes checking easier.
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 8 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpPeriodInpPriceInpLongInpSignalInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYValues on the unclosed bar change as the price updates. Do not confuse them with closed bars.
Values change with the symbol, timeframe, data provider and loaded history range. Compare under the same conditions.
The packaged version has a function that shows Produced by Trilogy Inc. and a QR code linking to https://www.trgy.co.jp/. The position and other details can be changed in additional settings. There is no account authentication.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
The required history increases in the order of the standard deviation, the long-term average, and Signal.
Check the centering method, periods and initial history. The definition differs from SD centered on an SMA.
Use separate charts, or change the brand position and margins. Increase the height of the separate window, and also refer to the actual-size images.
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.
SD=√(Σ(price−LWMA center of that window)²/P). Output=LWMA_P(SD)−LWMA_Long(SD). Signal=LWMA_Signal(output).
Bars are not shown until valid SD values are available for both the short-term and long-term sides. Signal also starts only after the specified number of valid outputs is available.