Download MetaTrader 5
To add comments, please log in or register
All MQL5.community events are grouped together. Have a look at the Wall!
antony
549
antony 2014.09.21 08:26 

Hi

I was wondering is it possible to display the rsi of the current candle plus the current spread.

So basically I can see what the rsi value would be after the price as moved the value of the spread.

Thanks

Antony

Keith Watford
Moderator
7947
Keith Watford 2014.09.21 10:55  
tonyjms2005:

Hi

I was wondering is it possible to display the rsi of the current candle plus the current spread.

Yes, but why would you want to?

tonyjms2005:


So basically I can see what the rsi value would be after the price as moved the value of the spread.

 I have no idea what this means

antony
549
antony 2014.09.25 19:34  

Hi

Sorry for the delay it is for a small project, any ideas how this can be achieved, I can code quite well but I am a bit stuck with this one.


Thanks


Antony

whroeder1
13627
whroeder1 2014.09.25 21:04  
tonyjms2005: any ideas how this can be achieved,
  1. There is no need. Unless the spread changes dramatically, between bars the RSI would show the same value, because it displays relative strength and the relative strength of the Ask is the same as the relative strength of the Bid.
  2. So get the RSI code, and where you see Close[x] - Close[x+1] substitute (Close[x] + Ask-Bid)  - (Close[x+1] +  Ask-Bid)
/
To add comments, please log in or register