// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("JRSX");
//SetBarsRequired(10000, 0);  


Length=Param( "Length ", 14, 0, 100);

Plot( JurikRSX( C,8), "", IIf(JurikRSX( C,8) > Ref(JurikRSX( C,8),-1),colorBrightGreen,colorRed), styleThick);
Plot( JurikRSX( C,9), "", IIf(JurikRSX( C,9) > Ref(JurikRSX( C,9),-1),colorBrightGreen,colorRed), styleThick);

Plot( JurikRSX( C,10), "", colorBlue, styleDashed);

_SECTION_BEGIN("JDMXall");
//SetBarsRequired(10000, 0); 

PosQty = 100; // You can define here how many open positions you want
SetOption("MaxOpenPositions", PosQty );
PositionSize = -100/PosQty; // invest 100% of portfolio equity divided by max. position count



Col_adx = IIf(JurikDMX( 20) < Ref(JurikDMX( 20),-1),colorOrange,colorBlue);
Col_jrsi = IIf(JurikRSX( C,9) > Ref(JurikRSX( C,9),-1),colorBrightGreen,colorRed);
Buy = Col_adx == colorBlue AND Col_jrsi == colorBrightGreen;
Sell = Col_adx == colorOrange AND Col_jrsi == colorRed;

PlotShapes(shapeSmallUpTriangle*Buy,colorBlue);
PlotShapes(shapeSmallDownTriangle*Sell,colorYellow);

_SECTION_END();