Download MetaTrader 5

Volume Flow Indicator

To add comments, please log in or register
donmat
8
donmat  

Can anybody do this for Metatrader 4?

Here's the Easy Language Code:

Inputs:Period(130),Coef(.2),VCoef(2.5), SmoothingPeriods(3);
Vars:TP(0), Inter(0), VInter(0), CutOff(0), VAve(0), VMax(0), VC(0), MF(0),
DirectionalVolume( 0 ), myVFI(0);
TP = TypicalPrice;
if TP > 0 and TP[1] > 0 then
Inter = Log(TP) - Log(TP[1])
else Inter = 0;
VInter = StdDev( Inter, 30 );
CutOff = Coef * VInter * Close;
VAve = Average(V,Period)[ 1 ];
VMax = VAve * VCoef;
VC = IFF( V < VMax , V, VMax );
MF = TP - TP[1];
DirectionalVolume = IFF( MF > CutOff, +VC, IFF( MF < -CutOff, -VC, 0 ) );
if VAve <> 0 then
myVFI = Summation( DirectionalVolume, Period ) / Vave
else myVFI = 0;
If SmoothingPeriods > 0 then myVFI = XAverage(myVFI, SmoothingPeriods)
else myVFI = myVFI;
Plot1(myVFI,"VFI",GREEN);
Plot2(0 ,"0");

whroeder1
16286
whroeder1  
donmat: Can anybody do this for Metatrader 4?
  1. Why did you post your MT4 question in the Root / MT5 Indicators section instead of the MQL4 section, (bottom of the Root page?) General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. Help you with what? You haven't stated a problem.

    You have only four choices:

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using SRC) and the nature of your problem. No free help
    urgent help.

  3. Your indicator looks to me like a scaled version of 'On Balance Volume' indicator by 'MetaQuotes' for MetaTrader 4 in the MQL5 Code Base
To add comments, please log in or register