Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2007, 04:38 PM
Junior Member
 
Join Date: Mar 2007
Posts: 14
Vman is on a distinguished road
RSI EA - code problem (need help)

I wrote this EA and received a parameter error when I compiled. I would appreciate someone correcting this problem.

thanks....

RSI_EA.mq4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-03-2007, 06:51 PM
Member
 
Join Date: Nov 2005
Posts: 85
fxd01 is on a distinguished road
Quote:
Originally Posted by Vman View Post
I wrote this EA and received a parameter error when I compiled. I would appreciate someone correcting this problem.

thanks....

Attachment 37594
You have to add one more parameter to the iRSI call.

iRSI(symbol, period, rsiperiod, 0, 0);

The First 0 represents the PRICE_CLOSE (or PRICE_OPEN, PRICE_TYPICAL etc). The second 0 corresponds to the bar number (0=current bar, 1=previous bar etc).

fxd01
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-2007, 07:15 PM
PipeTrader's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Canada
Posts: 182
PipeTrader is on a distinguished road
Quote:
Originally Posted by fxd01 View Post
You have to add one more parameter to the iRSI call.

iRSI(symbol, period, rsiperiod, 0, 0);

The First 0 represents the PRICE_CLOSE (or PRICE_OPEN, PRICE_TYPICAL etc). The second 0 corresponds to the bar number (0=current bar, 1=previous bar etc).

fxd01
I am interested abouth you EA.. If you can fix it an re-upload I verry appreciat... Thanks for sharing.

PipeTrader.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-03-2007, 07:19 PM
Junior Member
 
Join Date: Mar 2007
Posts: 14
Vman is on a distinguished road
That seems to have resolved the issue.

Thanks so much !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-03-2007, 07:28 PM
Junior Member
 
Join Date: Mar 2007
Posts: 14
Vman is on a distinguished road
Currently road-testing

RSI_EA.mq4

Here is the corrected version thanks to fxd01. I am currently road-testing this EA in a demo..... It is set to go long when RSI goes over 50 and short when it goes under 50.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-03-2007, 07:33 PM
PipeTrader's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Canada
Posts: 182
PipeTrader is on a distinguished road
Thanks for sharing you EA.. I will test this an post the result.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with .ex4................. EFX General Discussion 4 10-21-2006 07:23 AM
iCustom() problem billritz Indicators - Metatrader 4 5 08-23-2006 07:22 AM
programming Problem munait Metatrader 4 3 03-06-2006 09:45 AM
My First EA problem demag Questions 4 02-10-2006 08:18 AM
I've a Problem here hellkas Metatrader 4 6 11-04-2005 12:30 AM


All times are GMT. The time now is 04:46 AM.



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