void ExpertRemove();
#property strict // strictは絶対に削除しない事 void OnDeinit(const int reason) { Print("関数名",__FUNCTION__); } void OnInit(){ Print("関数名",__FUNCTION__,"1"); ExpertRemove(); Print("関数名",__FUNCTION__,"2"); }
Expert test EURUSD,H1: loaded successfully test EURUSD,H1: 関数名:OnInit1 ExpertRemove function called test EURUSD,H1: 関数名:OnInit2 test EURUSD,H1: initialized test EURUSD,H1: uninit reason 0 test EURUSD,H1: 関数名:OnDeinit Expert test EURUSD,H1: removed