// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("Effective Volume to Comparison Index");

StandardizedRange  = Param("Strd Rng", 40, 0, 1000, 1);

EfVol  = C*V/1000000; //Effective volume (in millions) of the stock being analyzed

Comparison  = "SPY"; //Symbol of an index that an individual stock is compared to; it is best if the index closely correlates to the stock that is being compared

CompEfVol  =  Foreign(Comparison,"C")*Foreign(Comparison,"V")/1000000;

Ratio = (EfVol/CompEfVol);

StandardizedRatio = Ratio/MA(Ratio,StandardizedRange);

Plot(StandardizedRatio," SR of relative EfVol", colorGold,ParamStyle("Style"));
//Plot(EfVol,"Ef Vol (mils)", colorOrange,styleOwnScale);
//Plot(CompEfVol,"Comparison Ef Vol (mils)",colorGreen,styleOwnScale);
_SECTION_END();