Download MetaTrader 5

How to obtain cross between RSI and Bollinger.

To add comments, please log in or register
Log in to MQL5.community using OpenID. It is convenient!
Zek Cek
83
Zek Cek 2013.03.27 00:35 

I am french and new in mql5.

I juste want put bollinger band with rsi and get cross with mql5.

i want use :

-bollinger period 10 and deviation 1.5

- rsi 7

 

I don't know how to put bollinger with rsi in mql5.

 rsi band fixe indicator

Thanks. 

Alain Verleyen
Moderator
30640
Alain Verleyen 2013.03.27 08:21  
Zek:

I am french and new in mql5.

I juste want put bollinger band with rsi and get cross with mql5.

i want use :

-bollinger period 10 and deviation 1.5

- rsi 7

 

I don't know how to put bollinger with rsi in mql5.

 

Thanks. 

Bonjour :-)

You have to learn a little before you can do this with mql5.

Zek Cek
83
Zek Cek 2013.03.27 10:10  

Bonjour ;) 

Ok a learn a little but i don't see how to put rsi with bollinger !

I want just make two indicator in the same box...

 

Thanks 

Alain Verleyen
Moderator
30640
Alain Verleyen 2013.03.27 10:24  
Zek:

Bonjour ;) 

Ok a learn a little but i don't see how to put rsi with bollinger !

I want just make two indicator in the same box...

 

Thanks 

I gave you the link for using RSI, you just have to find that for Bollinger bands.

You can either learn how to code that, by reading documentation, or ask to someone to do it for you.

If you try it yourself, and ask specific questions, we may try to help you here.

Anton Nel
36933
Anton Nel 2013.03.27 12:21  

Do you have this indicator in mq4 file?

Zek Cek
83
Zek Cek 2013.03.27 13:23  
I have metatrader 5 and i program with mql5, i haven't this indicator in mq4 file.
Alain Verleyen
Moderator
30640
Alain Verleyen 2013.03.27 14:48  

Here is the procedure to apply Bollinger Bands on rsi :

1° Add Rsi indicator :

Apply RSI

2° From Navigator window (Ctrl-N), drag and drop Bollinger Bands indictor to RSI window, and adjust properties, if you want BB to apply on rsi, choose Apply to : Previous Indicator's data.

Drag and drop Bollinger BandsAdjust BB properties

See the result :

BB on RSI


Zek Cek
83
Zek Cek 2013.03.27 14:51  
Yes i know make this with metatrader 5 but i don't know how to make this with mql5 !!!
Alain Verleyen
Moderator
30640
Alain Verleyen 2013.03.27 15:16  
Zek:
Yes i know make this with metatrader 5 but i don't know how to make this with mql5 !!!

From code :

    // Rsi indicator initialization
    int rsiHandle = iRSI(_Symbol, _Period, 14, PRICE_CLOSE);   
    if (rsiHandle == INVALID_HANDLE) {
        Print("Error in loading of RSI indicator. LastError = ", GetLastError());
        return;
    } 
    ChartIndicatorAdd(ChartID(), 1, rsiHandle); 
    
    // Bollinger Bands indicator initialization
    int bbHandle = iBands(_Symbol, _Period, 20, 0, 2.0, rsiHandle);   
    if (bbHandle == INVALID_HANDLE) {
        Print("Error in loading of Bollinger Bands indicator. LastError = ", GetLastError());
        return;
    } 
    ChartIndicatorAdd(ChartID(), 1, bbHandle); 
But another time, read the documentation and show what you have tried.
Files:
Zek Cek
83
Zek Cek 2013.03.27 15:31  
Je vais essayer ca, merci beaucoup ;)
Sergey Golubev
Moderator
55310
Sergey Golubev 2013.03.27 16:28  
Zek:
Yes i know make this with metatrader 5 but i don't know how to make this with mql5 !!!

Hi Zek,

It is easy - attach RSI, and after that - move bollinger band by mouse to same separated window, I will try to create the video for now about how to do it (it is on exact way as you are doing it in MT4 for example). 

123
To add comments, please log in or register