Forex



Go Back   Forex Trading > Discussion Areas > Setup Questions
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2007, 09:18 AM
nittany1's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sarasota, FL
Posts: 207
nittany1 is on a distinguished road
need help grabbing value of RSI(5,3,3)

I'm working on my first EA and I need help grabbing the value of RSI(5,3,3). This is what I have so far:

Code:
double RSIMain, RSISignal;
   RSIMain = iRSI(NULL,0,5,PRICE_CLOSE,0);
   RSISignal = iRSI(NULL,0,3,PRICE_CLOSE,1); 

   Comment("RSIMain is ",RSIMain,"\n","RSISignal is ",RSISignal);
I just did the Comment thing because I threw this code into a testbed indicator before I put it into my EA.

The F1 help section gives:
Code:
double iRSI( string symbol, int timeframe, int period, int applied_price, int shift)
I've tried changing the applied price enumeration and I've gotten different values but none of them have matched what the indicator attached to a chart gives. I've also tried changing the indicator shift without success, thinking maybe those values are in a different buffer.

I want the same values returned in my EA as shown on a chart with RSI(5,3,3) attached to it. I can't figure out where the %K and %D values are put into the iRSI statement. Obviously I would be doing things with these values besides Comment on a testbed indicator, but I need the correct values first.

Thanks!
Attached Images
File Type: gif screen-gbpusd-h1.gif (16.0 KB, 96 views)
__________________
The best things in life come from open source development.
Myspace Facebook My Indicators: Trade Assistant Trend Friend ToR CCI Helper
Holder of US Patent 6,774,788
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 05-22-2007, 09:36 AM
Member
 
Join Date: Oct 2005
Posts: 39
mietectec is on a distinguished road
Are you looking for iRSI or iStochastic ? Your windowed indicator is Stoch.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 05-22-2007, 12:32 PM
nittany1's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sarasota, FL
Posts: 207
nittany1 is on a distinguished road
Quote:
Originally Posted by mietectec
Are you looking for iRSI or iStochastic ? Your windowed indicator is Stoch.
ROFL, I *am* looking for iStochastic, I think I stayed up too late last night, I was coding till I got hungry, twice. Heh, thanks...
__________________
The best things in life come from open source development.
Myspace Facebook My Indicators: Trade Assistant Trend Friend ToR CCI Helper
Holder of US Patent 6,774,788
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT. The time now is 07:35 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.