Download MetaTrader 5

Rsi of current Ask price.

To add comments, please log in or register
antony
549
antony  

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
9641
Keith Watford  
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  

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
14780
whroeder1  
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