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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

RSI indicator to Show on Chart? 15 replies

RSI cross indicator when rsi=50 19 replies

Modification needed so Smoothed RSI output value displays on chart 7 replies

Show pip value in MT4? Show pair in an enlarged window? 7 replies

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

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Could RSI value show most update value on eur/usd chart?

  • Post #1
  • Quote
  • First Post: Mar 5, 2010 8:17pm Mar 5, 2010 8:17pm
  •  tusa
  • | Joined Mar 2009 | Status: Member | 141 Posts
Hello, Folks
I just wrote the EA code which for show the rsi(M30) onto the eur/usd chart screen, in order to save more space on the chart. The code as below:

double rsi=iRSI(NULL,PERIOD_M30,14,PRICE_MEDIAN,0);
Comment("RSI: ",DoubleToStr(rsi,0));

However, if I drag the normal rsi indicator onto the chart, the rsi value is real time to update the latest value when the pip up or down. But my above code on the chart, it is only refresh the rsi value when new M30 bar is starting to run. Do I miss something to cause it cannot update like as the normal rsi indicator? Or my method cannot achieve it?

Could you kindly advise me how to get most update rsi value onto the chart? Much thanks!
  • Post #2
  • Quote
  • Mar 5, 2010 8:56pm Mar 5, 2010 8:56pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
There is no problem with the code that you posted. The problem is with some of the other logic. I could take a guess but that isn't much use. You have to look at the logic that controls how data is processed. Specifically does it process every tick or just when a new bar forms.
 
 
  • Post #3
  • Quote
  • Mar 5, 2010 9:52pm Mar 5, 2010 9:52pm
  •  tusa
  • | Joined Mar 2009 | Status: Member | 141 Posts
Quoting CodeMeister
Disliked
There is no problem with the code that you posted. The problem is with some of the other logic. I could take a guess but that isn't much use. You have to look at the logic that controls how data is processed. Specifically does it process every tick or just when a new bar forms.
Ignored
Thanks for your advise. I have no any code to control the tick or bar.
Any idea that my rsi value and comment on chart can refresh every 1 min automatically?
 
 
  • Post #4
  • Quote
  • Mar 6, 2010 3:49am Mar 6, 2010 3:49am
  •  a2chawaii
  • | Joined Jan 2010 | Status: Member | 23 Posts
I guess iRSI is using PRICE_CLOSE.
 
 
  • Post #5
  • Quote
  • Mar 6, 2010 3:53am Mar 6, 2010 3:53am
  •  a2chawaii
  • | Joined Jan 2010 | Status: Member | 23 Posts
I mean
double rsi=iRSI(NULL,PERIOD_M30,14,PRICE_CLOSE,0);
 
 
  • Post #6
  • Quote
  • Mar 6, 2010 9:57am Mar 6, 2010 9:57am
  •  tusa
  • | Joined Mar 2009 | Status: Member | 141 Posts
Quoting a2chawaii
Disliked
I mean
double rsi=iRSI(NULL,PERIOD_M30,14,PRICE_CLOSE,0);
Ignored
No. I am using double rsi=iRSI(NULL,PERIOD_M30,14,PRICE_MEDIAN,0);
But I think the problem is not from price type...but I have no idea why cannot real time update the rsi value like as the drag indicator onto the chart.
 
 
  • Post #7
  • Quote
  • Last Post: Mar 6, 2010 1:45pm Mar 6, 2010 1:45pm
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
Quoting tusa
Disliked
Hello, Folks
I just wrote the EA code which for show the rsi(M30) onto the eur/usd chart screen, in order to save more space on the chart....
Ignored
there are 2 causes why your RSI value on screen seems doesn't refresh
1. price_median is calculated as (high+low)/2. when a new bar is forming on the screen, as long as the last tick is between the high and the low of the current bar, price_median value will not change.
2. by using DoubleToStr(rsi,0), you truncated the decimal point of rsi. if rsi value change between 45.0 to 45.9, value displayed on screen will always be 45. here you say it doesn't refresh. try using DoubleToStr(rsi,1)

hope this help
 
 
  • Platform Tech
  • /
  • Could RSI value show most update value on eur/usd chart?
  • 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