• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 12:14pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 12:14pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

RSI cross indicator when rsi=50 19 replies

RSI (Fast) above/below RSI (Slow) displayed as a Histogram 5 replies

Improved Rsi Needs Code 5 replies

PJ over RSI---Needs Alert 0 replies

RSI, MA, BOLL or RSI, BOLL MA diferents results 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Improved Rsi Needs Code

  • Post #1
  • Quote
  • First Post: Jan 7, 2007 5:37pm Jan 7, 2007 5:37pm
  •  bobbyacim
  • | Joined Sep 2004 | Status: Member | 3 Posts
Dear Fellow traders,
I am new to this site; been experimenting for over a year with different indicators on a demo account. Found something called Cutler's RSI, comparing it with Wilder's Original indicator, this modified version appears more robust apparently because Wilder's RSI is calculated by determining the difference between the open and the close; Cutler's RSI is calculated by determining the difference between the previous bar's close and the current close (the net change!).

Can anyone help me code it in MT4?

THANKS,
ROB
[email protected]

http://www.aspenres.com/Documents/A...#CutlersRSI.htm
CutlersRSI(SERIES, Periods=14, Bate=6)=begin

SumUp = 0
SumDown = 0
RS = 1
currentPrice = NONUM
previousPrice = NONUM
difference = 0
for i = -1 to (Periods - 2) begin
currentPrice = GetPrice($1, Bate, i, Periods)
previousPrice = GetPrice($1, Bate, (i + 1), Periods)
difference = currentPrice - previousPrice
if difference > 0 then SumUp = SumUp + difference
if difference < 0 then SumDown = SumDown + abs(difference)
end
if SumDown > 0 then RS = SumUp / SumDown
retval = GetRS(RS)
retval
end


<TABLE class=whs1 cellSpacing=0 width="100%" x-use-null-cells><TBODY><TR class=whs3 vAlign=top><TD class=whs12 width="20.67%">Parameters



</TD><TD class=whs13 width="79.32%">SERIES


The SERIES directive makes this formula available as a Formula Study. SERIES refers to the instrument in a chart. SERIES does not become a study parameter.

Periods

The number of periods, or length, of the RSI. The default is 14.

Bate

The Bate parameter determines what price (open, high, low, last, bid, ask, etc.) is used in calculating. The default is 6, or BATE_CLOSE.


</TD></TR><TR class=whs3 vAlign=top><TD class=whs12 width="20.67%">



</TD><TD class=whs13 width="79.32%">



</TD></TR><TR class=whs3 vAlign=top><TD class=whs12 width="20.67%">Return Value



</TD><TD class=whs13 width="79.32%">Cutler's RSI


</TD></TR></TBODY></TABLE>
  • Post #2
  • Quote
  • Last Post: Jan 7, 2007 6:27pm Jan 7, 2007 6:27pm
  •  philmcgrew
  • Joined May 2005 | Status: I am not your bro | 1,302 Posts
Since there are virtually no gaps in forex i do not see the advantage of using the last candle close vs. the current candle open. This would seem to be of much more importance in the stock or futures market. If you do get this programmed it would be interesting to a chart showing the comparison between the two calculations.
 
 
  • Platform Tech
  • /
  • Improved Rsi Needs Code
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022