_SECTION_BEGIN("Cross Stochastic");
uptrend= IIf( StochK(17,9) > StochD(17,9,3), 1, 0 );
downtrend=IIf( StochK(17,9)<StochD(17,9,3), 1, 0 );
crossBuy=Cross(StochK(17,9),StochD(17,9,3));
crossSell=Cross(StochD(17,9,3),StochK(17,9));
Plot( StochD(17,9,3), _DEFAULT_NAME(), colorRed , ParamStyle("Style") );
Plot( StochK(17,9), _DEFAULT_NAME(), colorBlue , ParamStyle("Style") );
Buy = Ref(crossBuy,-2) AND Ref(StochD(9,5,3),-2) <20 AND Ref(uptrend,-1) AND uptrend ;
Sell = crossSell AND StochD(9,5,3) > 50 ;
Short=Sell;
Cover=Buy;
PlotShapes( IIf(Buy, shapeUpArrow,0) , colorGreen ,0,StochD(17,9,3),-10);
PlotShapes( IIf(Sell, shapeDownArrow,0) , colorRed ,0, StochD(17,9,3),-10);
_SECTION_END();
_SECTION_BEGIN("Cross Stochastic");
uptrend= IIf( StochK(17,9) > StochD(17,9,3), 1, 0 );
downtrend=IIf( StochK(17,9)<StochD(17,9,3), 1, 0 );
crossBuy=Cross(StochK(17,9),StochD(17,9,3));
crossSell=Cross(StochD(17,9,3),StochK(17,9));
Plot( StochD(17,9,3), _DEFAULT_NAME(), colorRed , ParamStyle("Style") );
Plot( StochK(17,9), _DEFAULT_NAME(), colorBlue , ParamStyle("Style") );
Buy = Ref(crossBuy,-2) AND Ref(StochD(9,5,3),-2) <20 AND Ref(uptrend,-1) AND uptrend ;
Sell = crossSell AND StochD(9,5,3) > 50 ;
Short=Sell;
Cover=Buy;
PlotShapes( IIf(Buy, shapeUpArrow,0) , colorGreen ,0,StochD(17,9,3),-10);
PlotShapes( IIf(Sell, shapeDownArrow,0) , colorRed ,0, StochD(17,9,3),-10);
_SECTION_END();
_SECTION_BEGIN("Cross Stochastic");
Graph0=50;
Graph1=90;
Graph2=10;
Plot(Graph0,"",2,1);
Plot(Graph1,"",4,1);
Plot(Graph2,"",8,1);
uptrend= IIf( StochK(17,9) > StochD(17,9,3), 1, 0 );
downtrend=IIf( StochK(17,9)<StochD(17,9,3), 1, 0 );
crossBuy=Cross(StochK(17,9),StochD(17,9,3));
crossSell=Cross(StochD(17,9,3),StochK(17,9));
Plot( StochD(17,9,3), _DEFAULT_NAME(), colorRed , ParamStyle("Style") );
Plot( StochK(17,9), _DEFAULT_NAME(), colorBlue , ParamStyle("Style") );
Buy = Ref(crossBuy,-2) AND Ref(StochD(9,5,3),-2) <20 AND Ref(uptrend,-1) AND uptrend ;
Sell = crossSell AND StochD(9,5,3) > 50 ;
Buy2=Cross(StochK(17,9),Graph2);
Sell2=Cross(StochD(17,9,3),Graph1);
//Buy2=Cross(StochK(17,9),Graph2) AND StochK(17,9)>10 ;
//Sell2=Cross(StochD(17,9,3),Graph1) AND StochD(17,9,3)<90;
Short=Sell;
Cover=Buy;
PlotShapes( IIf(Buy, shapeUpArrow,0) , colorGreen ,0,StochD(17,9,3),-10);
PlotShapes( IIf(Sell, shapeDownArrow,0) , colorRed ,0, StochD(17,9,3),-10);
PlotShapes( shapeSmallUpTriangle* Buy2 , colorBlue);
PlotShapes( shapeSmallDownTriangle* Sell2 ,colorRed);
Filter=1;
SetSortColumns(-3);
AddColumn(IIf(Buy2 ,Ref(c,0) ,Null),"Buy stoch ",6.2,2,29);
AddColumn(IIf(Sell2 ,-Ref(c,0),Null),"Sell stoch",6.2,2,4);
_SECTION_END();
_SECTION_BEGIN("Cross Stochastic");
Graph0=50;
Graph1=90;
Graph2=10;
Plot(Graph0,"",2,1);
Plot(Graph1,"",4,1);
Plot(Graph2,"",8,1);
uptrend= IIf( StochK(17,9) > StochD(17,9,3), 1, 0 );
downtrend=IIf( StochK(17,9)<StochD(17,9,3), 1, 0 );
crossBuy=Cross(StochK(17,9),StochD(17,9,3));
crossSell=Cross(StochD(17,9,3),StochK(17,9));
Plot( StochD(17,9,3), _DEFAULT_NAME(), colorRed , ParamStyle("Style") );
Plot( StochK(17,9), _DEFAULT_NAME(), colorBlue , ParamStyle("Style") );
Buy = Ref(crossBuy,-2) AND Ref(StochD(9,5,3),-2) <20 AND Ref(uptrend,-1) AND uptrend ;
Sell = crossSell AND StochD(9,5,3) > 50 ;
Buy2=Cross(StochK(17,9),Graph2);
Sell2=Cross(StochD(17,9,3),Graph1);
Short=Sell;
Cover=Buy;
PlotShapes( IIf(Buy, shapeUpArrow,0) , colorGreen ,0,StochD(17,9,3),-10);
PlotShapes( IIf(Sell, shapeDownArrow,0) , colorRed ,0, StochD(17,9,3),-10);
PlotShapes( shapeSmallUpTriangle* Buy2 , colorBlue);
PlotShapes( shapeSmallDownTriangle* Sell2 ,colorRed);
Filter=1;
SetSortColumns(-3);
AddColumn(IIf(Buy2 ,Ref(c,0) ,Null),"Buy stoch ",6.2,2,29);
AddColumn(IIf(Sell2 ,-Ref(c,0),Null),"Sell stoch",6.2,2,4);
_SECTION_END();
_SECTION_BEGIN("Cross Stochastic");
Graph0=50;
Graph1=90;
Graph2=10;
Plot(Graph0,"",2,1);
Plot(Graph1,"",4,1);
Plot(Graph2,"",8,1);
uptrend= IIf( StochK(17,9) > StochD(17,9,3), 1, 0 );
downtrend=IIf( StochK(17,9)<StochD(17,9,3), 1, 0 );
crossBuy=Cross(StochK(17,9),StochD(17,9,3));
crossSell=Cross(StochD(17,9,3),StochK(17,9));
Plot( StochD(17,9,3), _DEFAULT_NAME(), colorRed , ParamStyle("Style") );
Plot( StochK(17,9), _DEFAULT_NAME(), colorBlue , ParamStyle("Style") );
Buy = Ref(crossBuy,-2) AND Ref(StochD(9,5,3),-2) <20 AND Ref(uptrend,-1) AND uptrend ;
Sell = crossSell AND StochD(9,5,3) > 50 ;
//Buy2=Cross(StochK(17,9),Graph2) ;
//Sell2=Cross(StochD(17,9,3),Graph1);
Buy2=Cross(StochK(17,9),Graph2) and StochK(17,9)>10 ;
Sell2=Cross(StochD(17,9,3),Graph1) and StochD(17,9,3)<90;
Short=Sell;
Cover=Buy;
PlotShapes( IIf(Buy, shapeUpArrow,0) , colorGreen ,0,StochD(17,9,3),-10);
PlotShapes( IIf(Sell, shapeDownArrow,0) , colorRed ,0, StochD(17,9,3),-10);
PlotShapes( shapeSmallUpTriangle* Buy2 , colorBlue);
PlotShapes( shapeSmallDownTriangle* Sell2 ,colorRed);
Filter=1;
SetSortColumns(-3);
AddColumn(IIf(Buy2 ,Ref(c,0) ,Null),"Buy stoch ",6.2,2,29);
AddColumn(IIf(Sell2 ,-Ref(c,0),Null),"Sell stoch",6.2,2,4);
_SECTION_END();
_SECTION_BEGIN("Cross Stochastic");
Graph0=50;
Graph1=90;
Graph2=10;
Plot(Graph0,"",2,1);
Plot(Graph1,"",4,1);
Plot(Graph2,"",8,1);
uptrend= IIf( StochK(17,9) > StochD(17,9,3), 1, 0 );
downtrend=IIf( StochK(17,9)<StochD(17,9,3), 1, 0 );
crossBuy=Cross(StochK(17,9),StochD(17,9,3));
crossSell=Cross(StochD(17,9,3),StochK(17,9));
Plot( StochD(17,9,3), _DEFAULT_NAME(), colorRed , ParamStyle("Style") );
Plot( StochK(17,9), _DEFAULT_NAME(), colorBlue , ParamStyle("Style") );
Buy = Ref(crossBuy,-2) AND Ref(StochD(9,5,3),-2) <20 AND Ref(uptrend,-1) AND uptrend ;
Sell = crossSell AND StochD(9,5,3) > 50 ;
//Buy2=Cross(StochK(17,9),Graph2) ;
//Sell2=Cross(StochD(17,9,3),Graph1);
Buy2=Cross(StochK(17,9),Graph2) and StochK(17,9)>10 ;
Sell2=Cross(StochD(17,9,3),Graph1) and StochD(17,9,3)<90;
Short=Sell;
Cover=Buy;
PlotShapes( IIf(Buy, shapeUpArrow,0) , colorGreen ,0,StochD(17,9,3),-10);
PlotShapes( IIf(Sell, shapeDownArrow,0) , colorRed ,0, StochD(17,9,3),-10);
PlotShapes( shapeSmallUpTriangle* Buy2 , colorBlue);
PlotShapes( shapeSmallDownTriangle* Sell2 ,colorRed);
Filter=1;
SetSortColumns(-3);
AddColumn(IIf(Buy2 ,Ref(c,0) ,Null),"Buy stoch ",6.2,2,29);
AddColumn(IIf(Sell2 ,-Ref(c,0),Null),"Sell stoch",6.2,2,4);
_SECTION_END();