Volume Flow Indicator New comment donmat 2017.07.21 20:11 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"); short term volume and price oscillator (SVAPO) Indicator Elite indicators :) Corrected Moving average William Roeder 2017.07.22 00:29 #1 donmat: Can anybody do this for Metatrader 4? 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 Help you with what? You haven't stated a problem. You have only four choices: Search for it, learn to code it, (you couldn't be bothered to learn mql4/5, therefor there is no common language for us to communicate,) beg at Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum or Need help with coding - General - MQL5 programming forum or Free MQL4 To MQL5 Converter - General - MQL5 programming forum or Requests & Ideas (MQL5 only!), or pay (Freelance) someone to code it. 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. Your indicator looks to me like a scaled version of 'On Balance Volume' indicator by 'MetaQuotes' for MetaTrader 4 in the MQL5 Code Base Create EA only with complete an indicators Stochastic exit alert HELP New comment
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");