log in     sign up for free
 
In my opinion, you do not have a trading system unless you know exactly when you will get out of the market position at the time you enter it.
Van K. Tharp
 
 
Home
systems (284)
 
Special offer: buy AmiBroker and EOD+Real-Time Data
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

RSI Oscillator

Formula for: TradeStation

indicator


 

 

Views:  2049

Added: July 21, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: TradeStation, indicator
 
Your Ad Here
The focus of this month's Traders' Tips is the article "Using Fibonacci ratios and momentum" by STOCKS & COMMODITIES Editor Thom Hartle. In this TradeStation implementation, we'll focus on the RSI-based oscillator described in the article.
In TradeStation, Fibonacci bands can be applied using the support/resistance drawing tool. In addition, a standard RSI indicator is built into the program. For Traders' Tips this month, I have developed an oscillator-type directional indicator that's based on the RSI calculation and its relation to 50. In addition, I have developed two PaintBar Studies, which are also based on the RSI and its relation to 50.

This version of the RSI oscillator indicator basically transforms the typical RSI into a zero-based oscillator. Values above the equal line represent RSI values above 50. Values below the equal line represent RSI values below 50. If the histogram input is set to y, the zero-based RSI values will be displayed in a histogram format. If the line input is set to y, the zero-based RSI values will be displayed in line format. In addition, if the alert feature is enabled, an alert will be triggered if the RSI-based value crosses above or below zero.

This indicator can be written in the TradeStation Power Editor as follows. The suggested format settings for this indicator are outlined after the code.

 

 



Code:

Type: Indicator, Name: RSI Oscillator

Inputs:
Price(Close),
RSILen(14),
Histgram("Y"),
Line("Y");

Vars:
RSIVal(0);
RSIVal = RSI(Price, RSILen);

IF UpperStr(Histgram) = "Y" OR UpperStr(Histgram) = "YES"

Then Begin

IF RSIVal >= 50 Then
Plot1(RSIVal - 50, "+RSI_Osc")

Else

Plot2(RSIVal - 50, "-RSI_Osc");

End;

IF UpperStr(Line) = "Y" OR UpperStr(Line) = "YES"
Then
Plot3(RSIVal - 50, "RSI_Osc");
Plot4(0, "Even-Line");

IF RSIVal Crosses Below 50 OR RSIVal Crosses Above 50
Then Alert = True;

 






Author: Thom Hartle
Source: http://www.traders.com

 

View similar (indicator for TradeStation):

Band Width Indicator
Recursive Moving Trendline Indicator
CC_Counter Indicator
Distance Coefficient Ehlers Filter
TrendArea Indicator
## Retr Indicator
DBS-Break
Volume Weighted Average Price
VIDYA Variation
Aroon
...
 
 
all formulas for TradeStation
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012