Ma April Rambla
Ma April Rambla
Lets trade now...w/ fbs!!!
Ma April Rambla
Ma April Rambla
CodeBase 

 

MetaTrader 5 / Indicators

PriceSpeed - indicator for MetaTrader 5

Stanislav Korotky

 3413

 

(18)

The indicator shows the speed of price change in points per minute. The general idea is taken from the Average Speed indicator, but the code has been improved, and the functionality has been expanded. In addition to the average price speed, which may be interesting for evaluation of trends, the peak speed has been added to the new indicator, which allows implementing breakout and pulse strategies.

Estimation of the peak speed is found based on the difference between high and low prices of each candle (this is the maximum distance that the price covers for the duration of the timeframe). This is an estimate, not an exact value, and the estimate is the lower bound, since in most cases, time passed between high and low moments is much less than duration of the candle (timeframe), that is, the speed is actually higher. Smaller timeframes are not analyzed by the indicator.

In addition to the real peak speed in the direction of the candle, the indicator calculates false peak speeds, which are formed during the movements from open to first extremum (high or low, depeding from candle configuration) and from second extremum to close - both in the direction opposite to the real type of the candle.

Thus, the indicator displays three buffers as histograms:

average price speed according to the algorithm of the original indicator (thick green);peak real price speed (thin orange);peak false price rate (thin red);

To facilitate decision making (how important are real and false peak speeds), the indicator additionally calculates the standard deviation of peak speeds for a given number of bars - it is displayed as a corridor of dotted lines.



Parameters

Averaging Bars - the number of bars for averaging the speed of prices; both the original speed and peak ones are averaged (although when working with peak speeds, it makes sense not to do averaging, that is, to use 1);Price - price type for calculating the speed (it makes sense only for the original average price speed; not used for peak speeds);Peak Deviation Period - the number of bars for calculating the standard deviation of peak speeds;



Stanislav Korotky:

For those who are interested in MT4 version of this indicator I'm attaching slightly modified source code. All we need to make it working in MT4 is to change .mq5 to .mq4, remove #property indicator_plots and add #property strict directives. Also we need to set ArraySetAsSeries flag to false for all arrays.

Read more comments and leave your own ones >>

Download MetaTrader 5!
Ma April Rambla
Ma April Rambla
Three Moving Averages. The trade strategy is based on three moving averages. To determine the trend, it uses three exponentially smoothed moving averages: FastEMA, MediumEMA and SlowEMA.
Ma April Rambla
Ma April Rambla
EOSMT5II
116%
Reliability
66%
Algo trading
0
30
USD
Ma April Rambla
Ma April Rambla
script type="text/javascript"> (function(a,e,f,g,b,c,d){a[b]||(a.FintezaCoreObject=b,a[b]=a[b]||function(){(a[b].q=a[b].q||[]).push(arguments)},a[b].l=1*new Date,c=e.createElement(f),d=e.getElementsByTagName(f)[0],c.async=!0, c.defer=!0,c.src=g,d&&d.parentNode&&d.parentNode.insertBefore(c,d))}) (window,document,"script","https://content.mql5.com/core.js","fz"); fz("register","website","duloxiejvxzoubaqixllzzdcplaaxxllgj");
Ma April Rambla
Ma April Rambla
javascript:void(false);
Ma April Rambla
Ma April Rambla
FBS Pro

Participate in FBS Pro: trade on a demo account and win up to $450

2019-07-22 - 2019-08-02
12