VOLUME-BASED SYSTEM BY MARK CATO

VOLUME-BASED SYSTEM BY MARK CATO

Type : Strategy, Name : FiniteEleVol

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 ;
Value1 = LinearRegSlope( FVE , 35 ) ;
Value2 = LinearRegSlope( Close, 35 ) ;
if FVE crosses over -5 and Value1 > 0
and Value2 < 0
then
Buy Next Bar at Market ;
if ( LinearRegSlope( FVE, 25) < 0 ) or
( DateToJulian( Date ) — DateToJulian( EntryDate ) > 50*( 7 / 5 ) )
then
Sell Next bar at Market ;
end ;

 

VOLUME-BASED SYSTEM BY MARK CATO

 

Подписаться
Уведомить о
0 комментариев
Межтекстовые Отзывы
Посмотреть все комментарии