Finite Volume Elements

S

SolidChiken

New member
VIP
Hi all... Anyone can help to convert the following code for TOS use. I've tried converting but not successful.
Yes... It's for reader to use with permission. Created by Markos Katsanos.

http://mkatsanos.com/FVE.html

Indicator: FiniteVolumeElement
inputs:
CutOff( .003 ),
Samples( 22 );
variables:
TP( 0 ),
MF( 0 ),
VolumePlusMinus( 0 ),
FVEsum( 0 ),
FveFactor( 0 ),
FVE( 0 ) ;
TP = ( High + Low + Close ) / 3 ;
MF = ( Close - (High + Low ) / 2 )+ TP - TP[1] ;
if MF > CutOff * Close then
FveFactor = 1
else if MF < -1 * CutOff * Close then
FveFactor = -1
else
FveFactor = 0 ;
if BarNumber > Samples then
begin
VolumePlusMinus = Volume * FveFactor ;
FVEsum = Summation( VolumePlusMinus, Samples ) ;
FVE = ( FVEsum / (Average( Volume, Samples)
* samples ) ) * 100 ;
Plot1( Average(FVE,1 ) ) ;
end ;
 
S

SolidChiken

New member
VIP
Thank you @korygill. I'm so grateful. Many thanks for your work 🙏
 

Top