Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
125
Published:
PriceVar.mq5 (5.22 KB) view
MQL5 Freelance 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:

Var = (High - MA) / MA * 100;

  • 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

Balance Of Power Balance Of Power

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.

A script for a tester that extends the standard MetaTrader 5 optimisation features A script for a tester that extends the standard MetaTrader 5 optimisation features

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).

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

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

MACD Signals MACD Signals

Indicator edition for new platform.