info_Table_v0Satop_en v1
Download scriptThis script functions as a multi-timeframe visual dashboard for MetaTrader, designed to provide a high-level overview of market sentiment across various time periods simultaneously. Instead of looking at one chart at a time, it organizes several technical indicators into a structured grid on your screen, allowing you to see market "signals" at a glance.
How the Dashboard Works
1. Multi-Timeframe Coverage The tool tracks nine different timeframes ranging from 1 minute all the way up to monthly charts (M1, M5, M15, M30, H1, H4, D1, W1, and MN). This allows a trader to identify whether a move is happening only on a small scale or if there is broader momentum across larger timeframes.
2. Indicator Analysis The script monitors five distinct types of technical analysis for every one of those timeframes:
- Moving Averages (2MA): It compares two different moving averages. If the faster average is above the slower one, it signals upward momentum; if it is below, it signals downward momentum.
- Relative Strength Index (RSI): It looks for "oversold" or "overbought" conditions relative to a midpoint of 50. It tracks whether the RSI is moving up or down to determine if price strength is increasing or decreasing.
- Commodity Channel Index (CCI): It identifies trends by looking at price deviations. It signals based on whether the price is breaking into extreme zones or staying within a neutral range.
- Bar Analysis: It looks at the current "live" candle. If the price has moved up since it opened, it registers as a buy signal; if it has moved down, it registers as a sell signal.
- Gap Analysis: It compares the opening price of the current candle to the closing price of the previous candle to identify "gaps" or immediate directional shifts in price action.
3. Visual Representation Rather than plotting lines or candles across your main chart, this script creates a neat table in a corner of your screen.
- Symbols: It uses specific icons (arrows/symbols) to represent signals.
- Color Coding: The dashboard uses a color-coded system—typically Lime for Buy signals, Red for Sell signals, and Purple for neutral or "no signal" areas.
- Real-Time Updates: The logic automatically refreshes constantly. As prices move, the icons in the table update instantly to reflect the current state of all indicators across all timeframes.
Summary for the User
Think of this tool as a "Command Center." Instead of switching tabs to see what the Hourly chart is doing while you trade on the 5-minute chart, you can keep this dashboard visible. It summarizes the complex math of five different indicators across nine different timeframes into a simple grid of colored icons, helping you spot market trends and potential reversals much faster.
//////////////////////////////////////////////////////////////////////
//
// signalTable.mq4
//
//////////////////////////////////////////////////////////////////////
#property copyright ""
#property link ""
#property indicator_chart_window
extern string ____1____ = "MA settings";
extern int period_MA1 = 5;
extern int ma_method_MA1 = 0;
extern int applied_price_MA1 = 0;
extern int period_MA2 = 12;
extern int ma_method_MA2 = 0;
extern int applied_price_MA2 = 0;
extern string ____2____ = "RSI settings";
extern int period_rsi =21;
extern int applied_price_rsi =0;
extern string ____3____ = "CCI settings";
extern int period_CCI =14;
extern int applied_price_CCI =0;
extern string ____4____ = "Arrow codes";
extern int symbolCodeBuy=221,
symbolCodeSell=222,
symbolCodeNoSignal=175;
extern string ____5____ = "color settings";
extern color noSignalColor=MediumPurple,
BayColor = Lime,
SellColor = Red,
textColor=Gold;
extern string ___6___ = "position on the chart";
extern int scaleX=22,
scaleY=20,
offsetX=35,
offsetY=20,
fontSize=20,
corner=1;
int period[]={1,5,15,30,60,240,1440,10080,43200};
string periodString[]={"M1 ","M5 ","M15 ","M30 ","H1 ","H4 ","D1 ","W1 ","MN "},
// ñîçäàåì åùå îäèí ìàññèâ ñ íàçâàíèÿìè èíäèêàòîðîâ
signalNameString[]={"2MA","RSI","CCI","Bar","Gap"};
//////////////////////////////////////////////////////////////////////
//
// init()
//
//////////////////////////////////////////////////////////////////////
int init()
{
// òàáëèöà ñèãíàëîâ
for(int x=0;x<9;x++)
for(int y=0;y<5;y++)
{
ObjectCreate("signaltable"+x+y,OBJ_LABEL,0,0,0,0,0);
// èçìåíÿåì óãîë ïðèâÿçêè
ObjectSet("signaltable"+x+y,OBJPROP_CORNER,corner);
ObjectSet("signaltable"+x+y,OBJPROP_XDISTANCE,x*scaleX+offsetX);
ObjectSet("signaltable"+x+y,OBJPROP_YDISTANCE,y*scaleY+20);
ObjectSetText("signaltable"+x+y,CharToStr(symbolCodeNoSignal),
fontSize,"Wingdings",noSignalColor);
}
// íàçâàíèÿ òàéìôðåéìîâ
for(x=0;x<9;x++)
{
ObjectCreate("textPeriodtable"+x,OBJ_LABEL,0,0,0,0,0);
// èçìåíÿåì óãîë ïðèâÿçêè
ObjectSet("textPeriodtable"+x,OBJPROP_CORNER,corner);
ObjectSet("textPeriodtable"+x,OBJPROP_XDISTANCE,x*scaleX+offsetX);
ObjectSet("textPeriodtable"+x,OBJPROP_YDISTANCE,offsetY-10);
ObjectSetText("textPeriodtable"+x,periodString[x],8,"Tahoma",textColor);
}
// íàçâàíèÿ èíäèêàòîðîâ
for(y=0;y<5;y++)
{
ObjectCreate("textSignaltable"+y,OBJ_LABEL,0,0,0,0,0);
// èçìåíÿåì óãîë ïðèâÿçêè
ObjectSet("textSignaltable"+y,OBJPROP_CORNER,corner);
ObjectSet("textSignaltable"+y,OBJPROP_XDISTANCE,offsetX-25);
ObjectSet("textSignaltable"+y,OBJPROP_YDISTANCE,y*(scaleY)+offsetY+8);
ObjectSetText("textSignaltable"+y,signalNameString[y],8,"Tahoma",textColor);
}
return(0);
}
//
// deinit()
//
//////////////////////////////////////////////////////////////////////
int deinit()
{
// ïðè óäàëåíèè íàøåãî èíäèêàòîðà íóæíî óäàëèòü âñå îáúåêòû,
// êîòîðûå ìû óæå ñîçäàëè
for(int x=0;x<9;x++)
for(int y=0;y<9;y++)
{
// ObjectsDeleteAll();
ObjectDelete("signaltable"+x+y);
ObjectDelete("textPeriodtable"+x);
ObjectDelete("textSignaltable"+y);
ObjectDelete("signaltable"+x+"0");
ObjectDelete("signaltable"+x+"1");
ObjectDelete("signaltable"+x+"2");
ObjectDelete("signaltable"+x+"3");
ObjectDelete("signaltable"+x+"4");
}
return(0);
}
///
int start()
{
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--MA--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
for(int x=0;x<9;x++)
{
double MA1 = iMA(Symbol(),period[x],period_MA1,0,ma_method_MA1,applied_price_MA1,0);
double MA2 = iMA(Symbol(),period[x],period_MA2,0,ma_method_MA2,applied_price_MA2,0);
if(MA1>MA2)
ObjectSetText("signaltable"+x+"0",CharToStr(symbolCodeBuy),fontSize,"Wingdings",BayColor);
// ñèãíàë íà ïðîäàæó
else if(MA1<MA2)
ObjectSetText("signaltable"+x+"0",CharToStr(symbolCodeSell),fontSize,"Wingdings",SellColor);
}
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--RSI--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
for(x=0;x<9;x++)
{
double rsi = iRSI(Symbol(),period[x],period_rsi,applied_price_rsi,0);
double rsi_1 = iRSI(Symbol(),period[x],period_rsi,applied_price_rsi,1);
double del = rsi-rsi_1;
// ñèãíàë
if(rsi>50&&del>0)
ObjectSetText("signaltable"+x+"1",CharToStr(symbolCodeBuy),fontSize,"Wingdings",BayColor);
if(rsi>50&&del<0)
ObjectSetText("signaltable"+x+"1",CharToStr(symbolCodeSell),fontSize,"Wingdings",BayColor);
// ñèãíàë íà ïðîäàæó
else if(rsi<50&&del<0)
ObjectSetText("signaltable"+x+"1",CharToStr(symbolCodeSell),fontSize,"Wingdings",SellColor);
else if(rsi<50&&del>0)
ObjectSetText("signaltable"+x+"1",CharToStr(symbolCodeBuy),fontSize,"Wingdings",SellColor);
}
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--CCI--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
for(x=0;x<9;x++)
{
double CCI =iCCI(Symbol(),period[x],period_CCI,applied_price_CCI,0);
double CCI_1 =iCCI(Symbol(),period[x],period_CCI,applied_price_CCI,1);
double der =CCI-CCI_1;
if(CCI>100&&der>0)
ObjectSetText("signaltable"+x+"2",CharToStr(symbolCodeBuy),fontSize,"Wingdings",BayColor);
if(CCI>100&&der<0)
ObjectSetText("signaltable"+x+"2",CharToStr(symbolCodeSell),fontSize,"Wingdings",BayColor);
if(CCI<100&&CCI>-100&&der>0)
ObjectSetText("signaltable"+x+"2",CharToStr(symbolCodeBuy),fontSize,"Wingdings",noSignalColor);
if(CCI<100&&CCI>-100&&der<0)
ObjectSetText("signaltable"+x+"2",CharToStr(symbolCodeSell),fontSize,"Wingdings",noSignalColor);
// ñèãíàë íà ïðîäàæó
else if(CCI<-100&&der<0)
ObjectSetText("signaltable"+x+"2",CharToStr(symbolCodeSell),fontSize,"Wingdings",SellColor);
else if(CCI<-100&&der>0)
ObjectSetText("signaltable"+x+"2",CharToStr(symbolCodeBuy),fontSize,"Wingdings",SellColor);
}
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--Bar--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
for(x=0;x<9;x++)
{
double x00 =iOpen(Symbol(),period[x],0)-iClose(Symbol(),period[x],0);
// ñèãíàë
if(x00<0)
ObjectSetText("signaltable"+x+"3",CharToStr(symbolCodeBuy),fontSize,"Wingdings",BayColor);
// ñèãíàë íà ïðîäàæó
else if(x00>0)
ObjectSetText("signaltable"+x+"3",CharToStr(symbolCodeSell),fontSize,"Wingdings",SellColor);
}
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--Gep--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
for(x=0;x<9;x++)
{
double x0 =iOpen(Symbol(),period[x],0)-iClose(Symbol(),period[x],1);
// ñèãíàë íà ïîêóïêó
if(x0>0)
ObjectSetText("signaltable"+x+"4",CharToStr(symbolCodeBuy),fontSize,"Wingdings",BayColor);
if(x0<0)
ObjectSetText("signaltable"+x+"4",CharToStr(symbolCodeSell),fontSize,"Wingdings",SellColor);
if(x0==0)
ObjectSetText("signaltable"+x+"4",CharToStr(symbolCodeNoSignal),fontSize,"Wingdings",noSignalColor);
}
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
return(0);
}
//////////////////////////////////////////////////////////////////////
Comments