この関数はExpert Advisorを停止し、チャートからアンロードします。
戻り値
注意
例:
| // + ———————————————– ——————- + // | Test_ExpertRemove.mq5 |
 // | Copyright 2009、MetaQuotes Software Corp. |
 // | https://www.mql5.com |
 // + ———————————————– ——————- +
 #property copyright “2009、MetaQuotes Software Corp.” #property link “https://www.mql5.com” #property version “1.00” input int  ticks_to_close = 20; // EAがアンロードされる前のティック数// + ————————————— ————————— +
 
 
 
 // | エキスパート初期化解除関数| // + ———————————————– ——————- +
 void OnDeinit (const int  reason)  { // —  Print (TimeCurrent ()、“:”  、__FUNCTION__ 、“reason code =” 、理由); // — “clear”コメントコメント(“” ); // —   } // + —————————————– ————————- + // | エキスパートティック機能|
         // + ———————————————– ——————- + void OnTick ()  { static int  tick_counter = 0; // —    tick_counter ++; コメント(“\ nエキスパートアドバイザーをアンロードする前” 、__ FILE__ 、“left” 、           (ticks_to_close-tick_counter)、“ticks” ); // —前であれば(tick_counter> = ticks_to_close)     { ExpertRemove ()。Print (TimeCurrent ()、“:” 、__FUNCTION__ 、“Expert advisorはアンロードされます”
                    );
 } Print (“tick_counter =” 、tick_counter); // —   } // + —————————————– ————————- +
 
 | 
   0 people found this article useful 
 
  0 people found this article useful