Forex
Google

Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 12-17-2005, 02:25 PM
Pyramid Pyramid is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
Pyramid is on a distinguished road
RSI - help needed

Instead of having an RSI indicator which is based on the ups and downs of each bar close, I want it to be based on the ups and downs of an SMA.

As I am not a scalper, the slight delay inherent in this version of the indicator is no great problem as I trade swings which may last several hours or sometimes more than a day.

I have tried to modify RSI.mq4 but my efforts are causing the software to crash.

I have used this version of RSI for some years with more than a modicum of success but unfortunately I had to develop it using a spreadsheet with a DDE link.

But now, having come across your board, it seems high time that it was developed in MT4 and in this way could also be shared with others using this software.

Is there a kind soul who would develop such an indicator for me please ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-17-2005, 03:00 PM
igorad's Avatar
igorad igorad is offline
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 783
igorad is on a distinguished road
Hi,
I did this.
It's very simply.

Igor
TrendLaboratory Chief

Last edited by newdigital : 12-17-2005 at 06:38 PM. Reason: moved indicator to download section with the link to
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-17-2005, 05:21 PM
Pyramid Pyramid is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
Pyramid is on a distinguished road
Igor
excellent

many thanks.

However,can I involve you just once more ?

I notice that the MAPeriod and RSIPeriod are fixed in the routine and cannot be changed on the chart by editing Indicator properties.

What needs to be done to allow this flexibility ?

Last edited by Pyramid : 12-17-2005 at 05:23 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-17-2005, 06:44 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 15,222
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
May be I do not understand something but it can be changed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-17-2005, 10:40 PM
Pyramid Pyramid is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
Pyramid is on a distinguished road
Newdigital

OK, I have tried again.

double click does the trick

works okay


doh !

many thanks to you both
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-18-2005, 07:45 AM
Pyramid Pyramid is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
Pyramid is on a distinguished road
Igor / Newdigital

I have now run the indicator using several alternative macd/rsi combinations and a problem seems to have occurred with the arithmetic.

I have downloaded the data from 'History Center' and input it into my spreadsheet to make absolutely sure that the basic data is the same.

Igor's indicator is producing different output to that in my spreadsheet.

The general shape of his plot is quite similar,but much flatter than mine.

The advantage of the spreadsheet is that you can readily see the sma;ups;downs; and rsi values on a line by line basis and also the formula that is set for each line.

So far, I havent found a way to divert output from an MT4 indicator to a file (cvsv format) so that I can compare the output of the two different routines.

There is probably some adaptation of "Print" which would allow me to do this, but it is not clear from MT4 dictionary how this might be achieved.

Can you help please ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-19-2005, 07:04 AM
igorad's Avatar
igorad igorad is offline
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 783
igorad is on a distinguished road
Hi Pyramid,

May be it help.
I made more flexible and usefull version of SMARSI.
Now you can change:
RSIPeriod
MAPeriod
+
Price - 0-Close, 1-Open, 2-High, 3-Low, 4-Median, 5-Typical, 6-Weighted;
Smooth- smoothing period by SMA;

Try to change input parameters, perhaps, this version can solve your problems.
I know about good trend definition method by John Hayden, that use RSI.
For more information look at this:
http://www.stock-charts-made-easy.co...gth-index.html

Cheers,
Igor
TrendLaboratory Chief

Last edited by newdigital : 12-19-2005 at 08:07 AM. Reason: moved indicator to the download area with the proper link
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 12-20-2005, 12:14 AM
Pyramid Pyramid is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
Pyramid is on a distinguished road
Hi Igor

many thanks for your additional work on this indicator but I still have a problem with the arithmetic.

as an example,

my test data used 5min chart of GBPUSD.
the final reading on Friday in History center was Close at 1.7727.
at that time, my spreadsheet had an RSI reading of 77.6264 whereas the reading on SMARSIv1 was 60.4108.

Like you (?), I have used the Close as the basis for my calculations.

I hesitate to suggest that there is something amiss with your routine but I have double checked my routine and the formulas seem to be correct.

I would be very happy to compare the output of the two routines but I do not know how to divert the output from your indicator to a Print file.

But the difference is too large for me to ignore.

I have looked at your revised version in Post 7, but it produced the same result as your original version.

All I can add is that your indicator produces a much flatter curve than mine although both are smooth lines.

But mine reaches overbought/oversold more readily than yours.

I really dont know what to suggest, but is it possible that your original indicator is not just an RSI of an SMA but contains an additional smoothing factor ?

Your code refers to "// smoothed moving average", when what is required is just the moving average.

My apologies for raising this point, but it is quite important.
Using my indicator, I have been short for most of the day; but using yours, I would never have had a trading signal.

Can you throw any light on this issue ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 12-20-2005, 06:17 AM
igorad's Avatar
igorad igorad is offline
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 783
igorad is on a distinguished road
Hi Pyramid,

For basis to writing the indicator I have taken RSI from MT4, which
use smoothed average. Robert Colby suggest EMA.
What you use for calculation?
If you use SMA ,this mean that your indicator too noisy.
Tell me what you prefer and I change code.

Igor
TrendLaboratory Chief
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 12-20-2005, 08:43 AM
Pyramid Pyramid is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
Pyramid is on a distinguished road
Hi Igor
thanks for your patience

As I cannot print your output to a file, perhaps it might help if I give you an extract of my file ?

I have taken the data from history center for 5 minute GBPUSD.
I have used a 30 bar SMA and a 45 bar RSI

Although these are not the settings I use for trading, I had to use something
big enough to demonstrate the calculations but small enough to be of a
sensible size to post.And they should serve the purpose of illustrating what is involved.
I have limited the calcs to 6 decimal places and the RSI to 4 decimal places.

The question of "smoothing" doesnt feature in my calculations at all.
The SMA does all the smoothing that is necessary.

I trust the calculations are easy to follow, but if you have any queries, please let me know.
Attached Files
File Type: doc RSI.doc (32.0 KB, 157 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
3xMAs#2 indicator ddoc Metatrader 4 13 02-25-2008 02:31 AM
Help Needed for EA Kntcbw General Discussion 1 02-08-2007 10:05 AM
help needed iliaazshareef Suggestions for Trading Systems 2 05-01-2006 06:27 AM


All times are GMT. The time now is 03:03 AM.