// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("stochastic 1 hourly");
TimeFrameSet(1*inHourly);
slow=StochD(5,3,3);
fast=StochK(5,3);
TimeFrameRestore();
_SECTION_END();

Buy=TimeFrameExpand(slow, 1*inHourly) < TimeFrameExpand(fast, 1*inHourly);
Sell=TimeFrameExpand(slow, 1*inHourly) > TimeFrameExpand(fast, 1*inHourly);

Plot( slow , "slow#1", colorDarkYellow, styleLine );
Plot( fast , "fast#2", colorRed, styleLine);

PlotShapes((Buy ) * shapeUpArrow, colorGreen); 
PlotShapes((Sell ) * shapeDownArrow,colorRed );