Using iRSI in other timeframes than current one

 

Hi i have problem to use iRSI in timeframe other than current timeframe it only works on current timeframe
how can i use iRSI in other timeframes than current one.

other technical indicators also doesn't work in other timeframe than current

timeframe.
thanks

 
ahmadasadi1342103:

Hi i have problem to use iRSI in timeframe other than current timeframe it only works on current timeframe
how can i use iRSI in other timeframes than current one.

other technical indicators also doesn't work in other timeframe than current

timeframe.
thanks

Of course they do.
Just set the time-frame parameter to the one that you want.

 

hi this is my code

its on mql5

***


this code only works on M30 time frame because of this line

"

label1_Handle = iRSI(_Symbol,PERIOD_M30,14,PRICE_CLOSE);

"

and when for example change chart timeframe to H1 or other timeframe doesn't work.

Discover new MetaTrader 5 opportunities with MQL5 community and services
Discover new MetaTrader 5 opportunities with MQL5 community and services
  • www.mql5.com
MQL5: language of trade strategies built-in the MetaTrader 5 Trading Platform, allows writing your own trading robots, technical indicators, scripts and libraries of functions
 
Please edit your post and use the code button (Alt+S) when pasting code.

EDIT your original post, please do not just post the code correctly in a new post.


What do you mean, it doesn't work?

What are you expecting it to do?

Why are you copying the values from 1 TF into another TF?

Ie with H1 current time 12:00

The previous H1 bar at 11:00 will store the 11:30 M30 RSI

The previous H1 bar at 10:00 will store the 11:00 M30 RSI
The previous H1 bar at 9:00 will store the 10:30 M30 RSI

ETC.

 
Keith Watford:
Please edit your post and use the code button (Alt+S) when pasting code.

EDIT your original post, please do not just post the code correctly in a new post.


What do you mean, it doesn't work?

What are you expecting it to do?

Why are you copying the values from 1 TF into another TF?

Ie with H1 current time 12:00

The previous H1 bar at 11:00 will store the 11:30 M30 RSI

The previous H1 bar at 10:00 will store the 11:00 M30 RSI
The previous H1 bar at 9:00 will store the 10:30 M30 RSI

ETC.

Hi sorry im new here

I expect to show RSI in chart when chart is in for example M1 and show

RSI for M30 TF

I need it for multi timeframe indicator

But it only show RSI in M30 chart

tks a lot for your help

 

Was there something that you did not understand?

Keith Watford:
Please edit your post and use the code button (Alt+S) when pasting code.

EDIT your original post, please do not just post the code correctly in a new post.

 
ahmadasadi1342103:

Hi i have problem to use iRSI in timeframe other than current timeframe it only works on current timeframe
how can i use iRSI in other timeframes than current one.

other technical indicators also doesn't work in other timeframe than current

timeframe.
thanks

input Timeframe = PERIOD_H1; // Set timeframe as an input

int RSIh=iRSI(_Symbol,Timeframe,14, PRICE_CLOSE); // Set input into indicator working timeframe.

Then you can test all timeframes.