- يوليو 27, 2017
- منشور من طرف: فريق ويكي الفوركس
- فئة: MQ5
لا توجد تعليقات
1692
1557
Growth of the code التحكيم المتعدد 1.000 .
الاختلافات من 1.000 :
-
- يبدأ المستشار ذو المعرفة فقط في PERIOD_M1 (انظر تحت للسبب, انظر ال إطار زمني parameter ).
- الآن يتداول هذا المستشار مباشرة على رمزين. The second character is taken from the static array ExtArrSymbols :
String ExtArrSymbols [ 20 ] = ; //+------------------------------------------------------------------+ //| أداء التهيئة المعرفة | //+------------------------------------------------------------------+ كثافة العمليات OnInit()
- The precept of opening positions is modified:
- Now the brand new place "يشتري" might be opened solely when the present worth is under the bottom place "يشتري";
- The brand new place "يبيع" might be opened solely when the present worth is increased than the best place of "يبيع":
- ال إطار زمني parameter is entered - now you'll be able to optimize on any interval of the graph. The Knowledgeable Advisor itself works solely when a brand new bar seems on the principle image (on the image on which the Knowledgeable Advisor is operating):
// + ----------------------------------------------- ------------------- + // | Knowledgeable tick perform | // + ----------------------------------------------- ------------------- + void OnTick () { // --- we work solely on the time of the beginning of latest bar static datetime prevtime = 0 ; datetime time_0 = iTime ( 0 , m_symbol_one.Title () , InpTimeFrame ); لو (time_0 == prevtime) return ; Prevtime = time_0;
Right here, the variable InpTimeFrame is our enter parameter إطار زمني . هكذا, relying on the worth of the enter parameter إطار زمني, we will make the EA work on any timeframe!
The outcomes of the take a look at for EURUSD: