| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | REQ:How to Add MA to Original RSI I am using TradeStation 8.2 ,I need to add simple , Exp and Weihgted MA to original RSI, or other word,I need to have RSI with MA of its.since TS just have RSI one line only. any expert pls kindly suggest me about this,thanks so much in advance. Kindest regards, itrader. | ||
| |
|
| | #2 | ||
![]() | Re: REQ:How to Add MA to Original RSI p.s. use the code tag to wrap the code. That's the # icon at the top of the reply window.
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... | ||
| |
|
| | #3 | ||
![]() | Re: REQ:How to Add MA to Original RSI Quote:
Here is the RSI code Code: inputs:
Price( Close ),
Length( 14 ),
OverSold( 30 ),
OverBought( 70 ),
OverSColor( Cyan ),
OverBColor( Red ) ;
variables: MyRSI( 0 ) ;
MyRSI = RSI( Price, Length ) ;
Plot1( MyRSI, "RSI" ) ;
Plot2( OverBought, "OverBot" ) ;
Plot3( OverSold, "OverSld" ) ;
{ Color criteria }
if MyRSI > OverBought then
SetPlotColor( 1, OverBColor )
else if MyRSI < OverSold then
SetPlotColor( 1, OverSColor ) ;
{ Alert criteria }
if MyRSI crosses over OverSold then
Alert( "Indicator exiting oversold zone" )
else if MyRSI crosses under OverBought then
Alert( "Indicator exiting overbought zone" ) ;
{ ** Copyright (c) 1991-2003 TradeStation Technologies, Inc. All rights reserved. **
** TradeStation reserves the right to modify or overwrite this analysis technique
with each release. ** } itrader. | ||
| |
|
| | #4 | ||
![]() | Re: REQ:How to Add MA to Original RSI MyRSI = RSI( Price, Length ) ; the RSI is calculated, and the data is saved in the variable MyRSI. to average out the data, all you have to do is add: Smoothed.RSI = average( MyRSI , Smooth.length); same deal for weighted average or exponential average... or whatever data modifying calculation you want to make. .
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... Last edited by Tams; 11-26-2009 at 11:36 AM. | ||
| |
|
| | #5 | ||
![]() | Re: REQ:How to Add MA to Original RSI note the added input, variables, calculation, and plot statements. (you should save this code under a different name, so that you do not ruin the original RSI code) Code: // Smoothed RSI
// modification by TAMS
// date: 20091126
//
inputs:
Price( Close ),
Length( 14 ),
Smooth.Length( 3 ), { <--- NEW }
OverSold( 30 ),
OverBought( 70 ),
OverSColor( Cyan ),
OverBColor( Red ) ;
variables:
MyRSI( 0 ) ,
Smoothed.RSI( 0 ) ; { <-- NEW }
MyRSI = RSI( Price, Length ) ;
Smoothed.RSI = Average( MyRSI, Smooth.length); { <-- NEW }
Plot1( MyRSI, "RSI" ) ;
Plot11( Smoothed.RSI, "Smoothed.RSI" ) ; { <-- NEW }
Plot2( OverBought, "OverBot" ) ;
Plot3( OverSold, "OverSld" ) ;
{ Color criteria }
if MyRSI > OverBought then
SetPlotColor( 1, OverBColor )
else if MyRSI < OverSold then
SetPlotColor( 1, OverSColor ) ;
{ Alert criteria }
if MyRSI crosses over OverSold then
Alert( "Indicator exiting oversold zone" )
else if MyRSI crosses under OverBought then
Alert( "Indicator exiting overbought zone" ) ;
{ ** Copyright (c) 1991-2003 TradeStation Technologies, Inc. All rights reserved. **
** TradeStation reserves the right to modify or overwrite this analysis technique
with each release. ** }
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... Last edited by Tams; 11-26-2009 at 11:38 AM. | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
aaa (12-19-2009) | ||
| | #6 | ||
![]() | Re: REQ:How to Add MA to Original RSI if you don't want to see the original RSI plot, you can delete it from the code, or simply set it to invisible on the chart.
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... | ||
| |
|
| | #7 | ||
![]() | Re: REQ:How to Add MA to Original RSI Have a good trade itrader. | ||
| |
|
| | #8 | ||
![]() | Re: REQ:How to Add MA to Original RSI Quote:
You are welcome... You can also check out this variation. It is on Stochastic... the idea can be applied to RSI, or any oscillating indicator. Tidal Wave http://www.traderslaboratory.com/for...wave-5666.html ![]() 156
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... Last edited by Tams; 12-13-2009 at 01:57 AM. | ||
| |
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wyckoff: The Original Course | DbPhoenix | The Wyckoff Forum | 0 | 06-20-2009 11:53 AM |