// Downloaded From https://www.WiseStockTrader.com
//GOLD FISH INTRADAY TRADING SYSTEM 
//By Abdul,realsenseindia@yahoo.com
//good for Equity, F&O, Currency and mcx.
//visit my website for suitable trading strategy for this Indicator.
k=MA(C,6)*0.04/100;
ab=(MA(H,Param("EF",39,6,100,1,0))+k);
ba=(MA(L,Param("EF",39,6,100,1,0))-k);
Plot(ab,"",colorBlue,styleLine);
Plot(ba,"",colorBlue,styleLine);
Color=IIf(C>ab,colorGreen,IIf(C<ba,colorRed,colorLightGrey));
Plot(C,"",color,styleBar|styleThick);

function Momentum( array, period )
{
  return array - Ref( array, -period );
}


XXX=Momentum(C,10);




Buy=xxx>0 AND C>ab;Short=xxx<0 AND C<ba;

Buy=ExRem(Buy,Short);
Short=ExRem(Short,Buy);
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone) ,colorBrightGreen);

PlotShapes(IIf(Short,shapeDownArrow,shapeNone),colorRed);