!Writer





//+------------------------------------------------------------------+
//|                                                 SetMainDupel.mq4 |
//|                                Copyright © 2009, Ñåðãååâ Àëåêñåé |
//|                                      mailto: profy.mql@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, Ñåðãååâ Àëåêñåé"
#property link      "mailto: profy.mql@gmail.com"

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
{
	if (!GlobalVariableCheck("DupelSync")) GlobalVariableSet("DupelSync", 0); // ñîçäà¸ì, åñëè íåò
	int n=GlobalVariablesTotal();
	for (int i=0; i<n; i++)
	{
		string name=GlobalVariableName(i);
		string st=StringSubstr(name, 0, 10);
		if (st=="DupelSync_")
		{
			if (name=="DupelSync_"+Symbol()+Period()) GlobalVariableSet(name, 1);
			else GlobalVariableSet(name, -1);
		}
	}
	return(0);
}
//+------------------------------------------------------------------+



Sample





Analysis



Market Information Used:



Indicator Curves created:


Indicators Used:



Custom Indicators Used:

Order Management characteristics:

Other Features: