Hey bago. I dont know what you are working on for the 15 minute but I was playing around with another indicator I have and hacked it a little for RSI. As you see in the attached image it displays 4 bars for RSI from different timeframes. Red <50, blue>50. I am not good enough a hack to do what exactally you want because i can only put in one RSI period. This one is on the 21. IE cant make the 4hr 14 and the rest 21. Anyway I thought it may be a start or idea to expand upon. A little about it....
To change the RSI period, look for this code and change the 21 to your desired period...
Also you may set the variable AUTODISPLAY to TRUE and it will change the bars according to these timeframes listed for your currently selected timeframe......
Change the periods to your liking
Again, I DID NOT code this, full credit goest to the author listed in the indicator.
http://img174.imageshack.us/img174/3...4835pm0.th.jpg
To change the RSI period, look for this code and change the 21 to your desired period...
Inserted Code
double rsi = iRSI(NULL, prd, 21,PRICE_CLOSE, yy); double dUp = EMPTY_VALUE; // iCustom(NULL, prd, "SuperTrend", false, 1, yy); double dDn = EMPTY_VALUE; //iCustom(NULL, prd, "SuperTrend", false, 0, yy);
Also you may set the variable AUTODISPLAY to TRUE and it will change the bars according to these timeframes listed for your currently selected timeframe......
Inserted Code
if (AutoDisplay) { switch (Period()) { case PERIOD_M1 : SetValues(PERIOD_M1, PERIOD_M5, PERIOD_M15,PERIOD_M30); break; case PERIOD_M5 : SetValues(PERIOD_M5, PERIOD_M15,PERIOD_M30,PERIOD_H1); break; case PERIOD_M15 : SetValues(PERIOD_M5, PERIOD_M15,PERIOD_M30,PERIOD_H1); break; case PERIOD_M30 : SetValues(PERIOD_M5, PERIOD_M15,PERIOD_M30, PERIOD_H1); break; case PERIOD_H1 : SetValues(PERIOD_M15, PERIOD_M30,PERIOD_H1, PERIOD_H4); break; case PERIOD_H4 : SetValues(PERIOD_M30, PERIOD_H1, PERIOD_H4, PERIOD_D1); break; case PERIOD_D1 : SetValues(PERIOD_H1, PERIOD_H4, PERIOD_D1, PERIOD_W1); break; case PERIOD_W1 : SetValues(PERIOD_H4, PERIOD_D1, PERIOD_W1,PERIOD_MN1); break; case PERIOD_MN1 : SetValues(PERIOD_H4, PERIOD_D1, PERIOD_W1,PERIOD_MN1); break; }
Again, I DID NOT code this, full credit goest to the author listed in the indicator.
http://img174.imageshack.us/img174/3...4835pm0.th.jpg
Attached File(s)
BagavinoBar.mq4
8 KB
|
984 downloads