_SECTION_BEGIN("RSI");
SetChartOptions(0,0,chartGrid30|chartGrid70);
periods = Param( "Periods", 15, 1, 200, 1 );
Plot( RSI( periods), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
/* Create date: 20 Dec 2009
The Stochastic %K(Slow) crosses above the Stochastic %D(Slow) on the current bar */
Buy =Cross( StochK( 14, 3 ), StochD( 14, 3, 3 ) )AND StochK( 14, 3 ) > 20 OR
/* Create date: 20 Dec 2009
The MACD crosses above the Signal on the current bar */
Cross( MACD( 12, 26 ), Signal( 12, 26, 9 ) ) /*AND
/* Create date: 20 Dec 2009
The Simple MA (Medium) crosses above the Simple MA (Long) on the current bar */
/*Volume > 250000 */OR
Cross(RSI ( periods ), MA ( P, Periods));
Sell = Cross( StochD( 14, 3, 3 ), StochK( 14, 3 ) )AND StochK( 14, 3 ) < 80 OR
Cross( Signal( 12, 26, 9 ), MACD( 12, 26 ) )/*AND
/* Create date: 20 Dec 2009
The Close Price of the current bar is greater than the Simple MA (Long) of 1 bar ago */
/* Create date: 20 Dec 2009
The Simple MA (Medium) crosses above the Simple MA (Long) on the current bar */
/*Volume > 250000*/ OR
Cross(MA ( P, Periods),RSI ( periods ) );
Short = Sell;
Cover = Buy;