NexusFi: Find Your Edge


Home Menu

 





Connors RSI2 EasyLanugage..want to collabort on this, please reply


Discussion in Platforms and Indicators

Updated
    1. trending_up 2,600 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Connors RSI2 EasyLanugage..want to collabort on this, please reply

  #1 (permalink)
BostonTrader1
Boston, MA
 
Posts: 1 since Apr 2017
Thanks Given: 0
Thanks Received: 1

Connors RSI2 EasyLanugage - I am developing a workspace, ShowMe indicator, paintbar and a startegy if anyone is interested to collaborate on this?
Here is the Connors RSI2 for tradestation:

//----------EasyLanguage program start - ConnorsRSI2============
inputs:
Price( Close ) [DisplayName = "Price", ToolTip =
"Enter an EasyLanguage expression to use in the RSI calculations."],
Length( 2 ) [DisplayName = "Length", ToolTip =
"Enter the number of bars used in the RSI calculation."],
OverSold( 5 ) [DisplayName = "OverSold", ToolTip =
"Enter the level of the indicator at which you consider the market to be oversold (too low)."],
OverBought( 95 ) [DisplayName = "OverBought", ToolTip =
"Enter the level of the indicator at which you consider the market to be overbought (too high)."],
OverSColor( Cyan ) [DisplayName = "OverSColor", ToolTip =
"Oversold Color. Enter the color to use when the indicator's value is below OverSold."],
OverBColor( Red ) [DisplayName = "OverBColor", ToolTip =
"Overbought Color. Enter the color to use when the indicator's value is above OverBought."] ;

variables: RSIValue( 0 ), MA200(0), MA5(0), RSI2Dir (0), RSI2Cross(0) ;

RSIValue = RSI( Price, Length ) ;
MA200 = Average(Close, 200);
MA5 = Average(Close, 5);

Plot1( RSIValue, !( "RSI" ) ) ;
Plot2( OverBought, !( "OverBot" ) ) ;
Plot3( OverSold, !( "OverSld" ) ) ;

{ color criteria }
if RSIValue > OverBought then
SetPlotColor( 1, OverBColor )
else if RSIValue < OverSold then
SetPlotColor( 1, OverSColor ) ;

if ( Close > MA200) and (Close < MA5) and (RSIValue<= OverSold) then
Begin
RSI2Dir = 1;
Plot4 (RSI2Dir , "RSI2Dir");
setPlotBGColor (4, green);
end
else if ( Close < MA200) and (Close > MA5) and (RSIValue >= OverBought)then
Begin
RSI2Dir = -1;
Plot4(RSI2Dir , "RSI2Dir");
setPlotBGColor (4, red);
end;
{Else
Begin
RSI2DirH = -3;
Plot5 (RSI2DirH , "RSI2DirH");
setPlotBGColor (5, black);
end;}


{ alert criteria }
if AlertEnabled then
begin
if ( Price > MA200) and (Price < MA5) and (RSIValue crosses over OverSold) then
Begin
Alert( !( "BUY" ) );
RSI2Cross = 1;
Plot5 (RSI2Cross , "RSI2Cross");
setPlotBGColor (5, green);
end
else if ( Price < MA200) and (Price > MA5) and (RSIValue crosses under OverBought) then
Begin
Alert( !( "SELL" ) ) ;
RSI2Cross = -1;
Plot5 (RSI2Cross , "RSI2Cross");
setPlotBGColor (5, red);
end;
end ;

//----------EasyLanguage program End- ConnorsRSI2============

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #3 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


I'm coming into this wayyyyy late, but I am just learning about Connors RSI now. Thanks for sharing!

Here is what I came across earlier today, which is just a strategy. It is designed for equities and long entries only:

 
Code
{
   Connors RSI 2 Strategy
   For equities
   Source: https://financestrategysystem.com/wp-content/uploads/2017/11/RSI-Connors-Strategy-code-TradeStation-MultiCharts.jpg
}

inputs:
   RSI_Period(2) , 
   RSI_OverSold(5) ,
   MA_Exit_Period(5) ,
   MA_Trend_Period(200)
   ;

vars:
   RSI_Value(0) , 
   Exit_MA(0) ,
   Trend_MA(0) , 
   Number_Shares(0) , 
   Max_Risk(2000)
   ;
   
Number_Shares = 10000 / close ; 

RSI_Value = RSI(close, RSI_Period) ;

Exit_MA = Average(close, MA_Exit_Period) ; 
Trend_MA = Average(close, MA_Trend_Period) ;

if RSI_Value <= RSI_OverSold and 
   Trend_MA < close 
   then
      buy this bar at close ; 
      
if MarketPosition <> 0 and 
   close > Exit_MA
   then
      sell this bar at close ; 

if Max_Risk > 0 
   then
      SetStopLoss(Max_Risk) ;
Source: https://financestrategysystem.com/tradestation-strategy-rsi-2-connors/

Edit: I added a 200-day moving average trend filter.

I will have to check out what you coded. Thanks again!

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on January 27, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts