Join our fan page
- Views:
- 125
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
PriceVar% is an indicator designed to measure the percentage difference between the price and a moving average, highlighting the strength of the market movement in relation to a reference value.
How it works
-
If the closing price is above the average, the calculation is:
-
If the closing price is below the average, the calculation is:
Var = (Low - MA) / MA * 100;
The result is displayed as a percentage histogram (%):
-
Green → when the price is above average (buying force).
-
Red → when the price is below average (selling force).
Interpretation
-
Positive values indicate the distance of the high from the average.
-
Negative values indicate the distance of the low from the average.
-
The higher the absolute value, the greater the percentage distance of the price from the average.
Practical applications
-
Identifying moments of overbought/oversold relative to the average.
-
Measuring percentage volatility around the average.
-
Aid in breakout or reversal strategies by validating the intensity of the movement.
-
Use as a filter in automated systems (e.g. only trade when the percentage change exceeds a certain threshold).
Parameters
-
Average period (iPeriod): defines the horizon of the moving average used as a reference.
Translated from Portuguese by MetaQuotes Ltd.
Original code: https://www.mql5.com/pt/code/63139

The Balance of Power (BOP) is an indicator originally developed by Igor Livshin in 2001 to measure the balance of power between buyers and sellers during each candle.

This is a tester script that extends the standard MetaTrader 5 optimisation capabilities, allowing you to evaluate strategies according to complex user-defined criteria (with separation into in-sample and out-of-sample periods, advanced metrics and statistical tests).

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Indicator edition for new platform.