//+------------------------------------------------------------------+ //| Fabularasa.mq4 | //| Fabularasa | //| | //+------------------------------------------------------------------+ #property copyright "Fabularasa" #property copyright "X" #property indicator_separate_window #property indicator_buffers 2 #property indicator_levelcolor DarkSlateGray #property indicator_color1 Blue #property indicator_color2 Gold #property indicator_levelcolor DarkSlateGray bool Side = True; extern int Y = 5; extern int X = 5; extern color BarLabel_color = DarkGreen; extern int barsPerTimeFrame =1000; double rsi[], ema[],rsiTF1[], emaTF1, rsiTF5[], emaTF5, rsiTF15[], emaTF15, rsiTF30[], emaTF30, rsiTF1H[], emaTF1H, rsiTF4H[], emaTF4H; int init() { if ( barsPerTimeFrame > 3000 ) barsPerTimeFrame = 3000; IndicatorBuffers(8); SetIndexStyle (0, DRAW_LINE,Blue); SetIndexStyle (1, DRAW_LINE,Green); SetIndexBuffer(0, rsi); SetIndexBuffer(1, ema); SetIndexBuffer(2,rsiTF1); SetIndexBuffer(3,rsiTF5); SetIndexBuffer(4,rsiTF15); SetIndexBuffer(5,rsiTF30); SetIndexBuffer(6,rsiTF1H); SetIndexBuffer(7,rsiTF4H); return(0); } int deinit() { ObjectDelete("NumberRsi"); ObjectDelete("RSI1"); ObjectDelete("RSI5"); ObjectDelete("RSI15"); ObjectDelete("RSI30"); ObjectDelete("RSI1H"); ObjectDelete("RSI4H"); return(0); } int start() { int limit = Bars; for(int b=0; b