Initial commit: MQL5 Scripts Collection (MetaTrader 5)
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| Objects Description Activator.mq5 |
|
||||
//+------------------------------------------------------------------+
|
||||
|
||||
#property copyright "tom-next.com community - Blog MetaTraders"
|
||||
#property link "http://www.tom-next.com/community/blog/34-metatraders/"
|
||||
|
||||
#property script_show_inputs
|
||||
#property version "1.00"
|
||||
#property description "Enables the 'Chart Objects Description' for non-programmers."
|
||||
//+------------------------------------------------------------------+
|
||||
//| Script program start function |
|
||||
//+------------------------------------------------------------------+
|
||||
void OnStart()
|
||||
{
|
||||
//---
|
||||
long currChart=ChartFirst();
|
||||
int i=0;
|
||||
while(i<CHARTS_MAX)
|
||||
{
|
||||
ChartSetInteger(currChart,CHART_SHOW_OBJECT_DESCR,true);
|
||||
ChartRedraw(currChart);
|
||||
currChart=ChartNext(currChart);
|
||||
if(currChart==-1) break;
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
//+------------------------------------------------------------------+
|
||||
Reference in New Issue
Block a user