// Downloaded From https://www.WiseStockTrader.com
// volume spike ( check stocks whose volume for the day is at least 10% greater than its 30 day ave volume )
Volume_to = Sum(Volume, 51);
Volume_to = Volume_to - Volume;
Volume50 = Volume_to / 50;
percentage = ( abs( Volume50 - Volume ) ) / Volume50;
percentage = percentage * 100;

AddColumn(O,"Open", 1.4);
AddColumn(H,"High", 1.4);
AddColumn(L,"Low", 1.4);
AddColumn(C,"Close", 1.4);
AddColumn(Volume50,"Ave 50 days Volume", 1, colorBlue);
AddColumn(Volume,"Volume Today", 1, colorBlue);
AddColumn(Percentage," % Increase", 1.2, colorBlue);

Filter = Volume > Volume50 AND percentage > 10;
// volume spike

_SECTION_BEGIN("RSI EMA");

Plot (EMA(RSI(34),9), "Smoothed RSI-5", colorGreen , styleNoLabel | styleThick);
Plot (EMA(RSI(34),20), "Smoothed RSI-14", colorRed , styleNoLabel | styleThick);
GfxSetTextAlign(6 );// center alignment 
GfxSetOverlayMode(1 ) ; 
GfxSetTextColor( colorGold ); 
GfxSetBkMode(0); // transparent 
GfxSelectFont("Time news roman", Status("pxheight")/10 ); 
GfxTextOut("Stock Market Pilipinas " , Status("pxwidth")/2, Status("pxheight")/3 ); 

Buy = Cross(EMA (RSI(14),5), EMA (RSI(14), 20));
Sell = Cross(EMA (RSI(14),20), EMA (RSI(14), 5));


PlotShapes(IIf(Buy,shapeUpArrow,shapeNone) ,colorBrightGreen);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed);

_SECTION_END();