Skip to content

Instantly share code, notes, and snippets.

@reviewnta
Last active August 19, 2019 09:54
Show Gist options
  • Select an option

  • Save reviewnta/a0895b4fcdcf93b221764ecd7b0f7e76 to your computer and use it in GitHub Desktop.

Select an option

Save reviewnta/a0895b4fcdcf93b221764ecd7b0f7e76 to your computer and use it in GitHub Desktop.
Intraday Trading Indicators and setup2
//AUTO : RSI : Over Bought & Over Sold
//BY : www.tradingfuel.com
//Date : 18th Aug 2019
_SECTION_BEGIN("RSI");
SetChartOptions(0,0,ChartGrid30|ChartGrid70,0,100);
periods = Param( "Periods", 14, 1, 200, 1 );
z = RSI( periods);
RSILineColor = ParamColor("RSI Line Color",ColorRGB(127,0,83));
RSIOverboughtColor = ParamColor("RSI Overbought Color",ColorRGB(127,0,83));
RSIOversoldColor = ParamColor("RSI Oversold Color",colorRed);
Plot( z, _DEFAULT_NAME(), RSILineColor , styleLine );
Plot( 50, _DEFAULT_NAME(), RSILineColor , styleDashed|styleNoTitle );
Plot( 70, _DEFAULT_NAME(), RSILineColor , styleLine|styleNoTitle );
Plot( 30, _DEFAULT_NAME(), RSILineColor , styleLine|styleNoTitle );
PlotOHLC(z,z,50,z,"",IIf(z>50,RSIOverboughtColor,RSIOversoldColor),styleCloud|styleClipMinMax,30,70);
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment