up and low volume(colored)

#1
Hello Members,
Here is the small formula which I found somewhere, Maybe usefull for others.Thanx.

Formula:
-------

_SECTION_BEGIN("Up Low Volume");
UpVol = ValueWhen(C > O, V);

DownVol = ValueWhen(C < O, V);

Period = Param("Period",3,2,10,1);

UpVolAvg = EMA( UpVol, Period ) ;

DownVolAvg = EMA( DownVol, Period ) ;

Plot(UpVolAvg,"UpVolume", colorGreen,styleHistogram);

Plot(DownVolAvg, "DownVolume", colorRed,styleHistogram);

_SECTION_END();
 

Similar threads