Purpose of the VIDyA
VIDyA (Variable Index Dynamic Average), developed by Tushar Chande, is an exponential moving average whose speed depends on momentum, measured with the Chande Momentum Oscillator (CMO). When momentum is strong, VIDyA follows price closely; when momentum is weak, it slows down.
How It Works
When you select VIDyA in the Trade Rule block, you can configure it with the following settings:
Period of VIDyA
The period of the exponential moving average.
The momentum part (CMO) uses a fixed period of 9, MetaTrader's standard.
Applied Price of VIDyA (What VIDyA is calculated from)
Close Price: Uses the candle's closing price.
Open Price: Uses the candle's opening price.
High Price: Uses the highest price in the candle.
Low Price: Uses the lowest price in the candle.
Median Price: (High + Low) ÷ 2
Typical Price: (High + Low + Close) ÷ 3
Weighted Price: (High + Low + Open + Close) ÷ 4
Time Frame of VIDyA
Sets the chart time frame for the VIDyA calculation.
Can be replaced with a variable or input for quick testing and optimization.
Candle ID of VIDyA
Defines which candle the calculation starts from.
0: Current candle (still forming).
1: Most recently closed candle.
Higher IDs refer to older candles.
Adjust of VIDyA (Modify the Result)
Apply an adjustment to the calculated value by adding, subtracting, multiplying, or dividing by a number.
Example
If you set:
Period: 14
Applied Price: Close
Candle ID: 1
You get the VIDyA value of the most recently closed candle, calculated from closing prices.
Use Cases
Use price above or below VIDyA as a trend filter.
Use VIDyA as a dynamic support or resistance line.
Replace a regular moving average when you want it to react to momentum.
Can also be used as a Custom level stop-loss or take-profit, as a pending-order price, and as the Modify SL/TP reference price.
⚠ Tip: MetaTrader's default VIDyA uses a period of 12. Use the same period if you want to compare values with a VIDyA on your MetaTrader chart.

