VIDYA Calculator
Calculate Variable Index Dynamic Average values from entered closes with positive and negative sums, signed CMO and effective smoothing visible.
Enter ordered close prices
Use completed observations from one symbol, timeframe and broker feed.
One completed close per line. Commas, semicolons or tabs are accepted.
Latest variable-index state
Entered Adaptive Moving Averages 1.0.0.
| Label | Index | Close | Up sum | Down sum | CMO | |CMO| | Effective factor | VIDYA | State |
|---|
How the source-profile VIDYA is calculated
EffectiveFactor[i] = (2 ÷ (EMA period + 1)) × |CMO[i]|
VIDYA[i] = Close[i] × EffectiveFactor[i] + VIDYA[i − 1] × (1 − EffectiveFactor[i])
Version 1.0.0 uses entered closes, zero chart shift and the published source warm-up boundary at CMO period plus EMA period minus 1.
When positive plus negative change is zero, CMO is zero and the effective factor is zero, so the prior VIDYA value carries forward.
Assumptions and limits
- CMO and EMA periods must be supported integers of at least two.
- At least CMO period plus EMA period ordered close prices are required.
- Rows must be oldest to newest and use one symbol, timeframe and feed.
- Built-in terminal history and initialization can differ from this disclosed published-source profile.
- CMO strength, price position, crossovers, trend, entries and exits are withheld.
Worked example from the audited fixture
How to interpret the result
Only the absolute CMO magnitude changes the effective smoothing factor; the CMO sign is not used as a direction signal here. If both change sums are zero, the factor becomes zero and the previous VIDYA carries forward.
Frequently asked questions
- Enter CMO and EMA periods plus at least their sum in ordered close prices from one symbol, timeframe and feed.
- Positive and negative close-change sums are compared as their difference divided by their total.
- The official VIDYA recurrence multiplies the base EMA factor by the magnitude of CMO.
- CMO and the effective smoothing factor are zero, so the previous VIDYA value carries forward.
- It is two divided by the EMA period plus one.
- The published source uses entered closes during warm-up; the first reportable index is CMO period plus EMA period minus one.
- Only when the same closes, periods, applied price, initialization boundary and completed-observation timing are used.
- No. Strength, direction, trend, crossover, entry and exit classifications are withheld.
Sources and methodology
- MetaTrader 5 Help — Variable Index Dynamic Average — Official CMO-scaled EMA formula.
- MQL5 Reference — iVIDyA — Official CMO period, EMA period, shift and applied-price interface.
- MetaQuotes CodeBase — VIDYA — Published warm-up seed and zero-denominator source profile.
Continue entered indicator analysis
Compare the chart feed and trading terms
Use one broker feed, symbol and timeframe for every entered observation, and compare the source history with your terminal before relying on a platform match.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

