Download MetaTrader 5
To add comments, please log in or register
You don't know MQL5 but you do know how to sell? The affiliate program is at your service!
Gerardo Bustos
747
Gerardo Bustos 2015.03.18 02:05 

Hello Forum, good day.

I have the following code that shows the MA of RSI in one window and RSI in another separate window:


double RSI = iRSI( NULL, 0, RSI_Period, RSI_Price, 1 );

double Get_MA_7_RSI( int shift )
  {
    double data[];
    ArrayResize( data, MA_RSI_Total );

    for ( int count = MA_RSI_Total - 1; count >= 0; count-- )
      {
        data[count] = iRSI( NULL, 0, MA_RSI_Period, RSI_Price, count + shift );
      }

    return( iMAOnArray( data, MA_RSI_Total, MA_RSI_Period, 0, RSI_MA_Method, 0 ) );
  }

 

I need them to be displayed in the same window, how can this be done? Your help will be much appreciated.

 

Best regards and thank you,

codeMolecules  

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2015.03.18 03:56  
Just combine it and make necessary adjustments. One indicator can have many outputs.
ffoorr
985
ffoorr 2015.03.18 11:56  
This is just two RSI, one is smoothed, the other not
whroeder1
13627
whroeder1 2015.03.18 12:33  
codeMolecules: I have the following code that shows the MA of RSI in one window and RSI in another separate window:
  1. False. Indicator can only write to one window. You have code that shows MA of RSI in one window. PERIOD. The RSI in the other is another indicator.
  2. Option one. Change your indicator to display multiple lines.
  3. Option two. Drop your code completely and drag the Moving Average on to the RSI window and select source=previous/first indicator.
/
To add comments, please log in or register