[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FW: RSI code help



PureBytes Links

Trading Reference Links

This code does not look like an RSI.  I thought I could replace n with
rsilgth but that must be wrong.

-----Original Message-----
From: Thomas J. Festa [mailto:festat@xxxxxxxxxxxxx] 
Sent: Wednesday, March 01, 2006 3:33 PM
To: 'omega-list@xxxxxxxxxx'
Subject: FW: RSI code help


Think this is connie browns composite index.

I need to apply a Parabolic using My_Modified_RSI as an input for price.  Is
that possible?


-----Original Message-----
From: Thomas J. Festa [mailto:festat@xxxxxxxxxxxxx] 
Sent: Wednesday, March 01, 2006 2:20 PM
To: 'Mike Barna'
Subject: RE: RSI code help


THIS VERIFIES: - Thanks.

========================================================

Inputs: PRICE(NumericSeries), { n(NumericSimple) }, RSIlgth(NumericSimple); 
Variables: i(0), sumup(0), sumdn(0);

My_Modified_RSI = 0;

FOR i = 1 TO { n } RSILgth BEGIN
	IF PRICE - PRICE[i] > 0 THEN
		sumup = PRICE - PRICE[1]
		ELSE sumdn = PRICE[1] - PRICE;
	end;
	
	IF sumdn <> 0 AND 1 + (sumup / sumdn) <> 0 THEN
		My_Modified_RSI = 100 - (100 / (1 + (sumup / sumdn)));


Thomas J. Festa, CMT
Technical Analysis Investment Consultant
Proprietary Trader, Equities
Benchmarq Trading, LLC
Cell:   (908) 581-8880

Confidentiality Notice: The information contained in this e-mail and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachment for any purpose, nor disclose all
or any part of the contents to any other person.