スポンサーリンク
検索

↑の検索エンジンが表示されない人は、
↓の古い検索エンジンを使用して下さい。
カスタム検索
MQL4リファレンスツリー
コンパイラワーニング


MetaEditorは、コンパイル時にコンパイラによって検出されたプログラムワーニングに関する警告メッセージを表示します。
警告が残っていても.ex4ファイルは作成されますが、意図しない動作をして思わぬバグが発生する可能性が高いので必ず修正して下さい。



管理人の勝手なコメント:
コンパイルワーニングについて問い合わせをする前に、このページでエラー内容を検索して下さい。
"検索"というのは"モニタ上で指差し確認して探す事"ではありません、ブラウザ上でキーボードのCtrlを押しながらFを押すと検索出来ます。 誰もが知っている検索方法を説明していてびっくりされる人がいるかもしれませんが、残念ながら"検索"という機能を知らない人が想像以上に沢山いるからです。

また#property strictを付けるとワーニングが出るという問い合わせを良く頂きますが、
ワーニングが出るのは基本的に何か間違えている(コンパイルは通るけど、何かしらデータ異常が発生する可能性が高い)ので必ず修正して下さい。 逆に言えばワーニングを放置すると潜在的な不具合が潜んでいる為、コンパイルエラーよりも質が悪いです。
#property strictを消してワーニングが出なくなりました。」といったようなIT企業の外注プログラマーみたいな対応は絶対にしないで下さい。
コード 詳細
21 datetime文字列が不完全
Incomplete record of a date in the datetime string
22 datetime文字列の日付が異常。
年の有効範囲:1970年~3000年
月の有効範囲:1月~12月
日の有効範囲:1日~31日(最終日は月による)
Wrong number in the datetime string for the date. Requirements:
23 datetime文字列の時間が異常
時の有効範囲:0時~23時
分の有効範囲:0分~59分
Wrong number of datetime string for time. Requirements:
24 RGB形式の無効な色
RGBの各色の有効範囲:1~255
Invalid color in RGB format: one of RGB components is less than 0 or greater than 255
25 不明なエスケープシーケンス
MQL4で使用可能なエスケープシーケンス:\n,   \r,   \t,   \\,   \",   \',   \X,   \x
Unknown character of the escape sequences.
26 関数内のローカル変数が多過ぎ(512Kbyteを超えて)ます。
Too large volume of local variables (> 512Kb) of the function, reduce the number
29 既に定義された列挙です。
最初に定義された列挙を使用します。
Enumeration already defined (duplication) - members will be added to the first definition
30 マクロが上書きされました
Overriding macro
31 宣言された変数が使用されていません
The variable is declared but is not used anywhere
32 コンストラクタvoid型でなければなりません
Constructor must be of void type
33 デストラクタvoid型でなければなりません
Destructor must be of void type
34 整数の範囲に収まらない定数(X > _UI64_MAX | | X < _I64_MIN)です。
double型に変換されます。
Constant does not fit in the range of integers (X> _UI64_MAX | | X <_I64_MIN) and will be converted to the double type
35 あまりにも長い16進数 - 16以上の重要な文字(古いニブルがカットされている)
Too long HEX - more than 16 significant characters (senior nibbles are cut)
36 16進数文字列("0x")にニブルがありません
No nibbles in HEX string "0x"
37 関数がありません。何も実行されません。
No function - nothing to be performed
38 初期化されていない変数が使用されています
A non-initialized variable is used
41 存在しない関数をコールしています
Function has no body, and is not called
43 キャストでデータが損失している可能性があります。
(例:int date = (double)0.1;)
Possible loss of data at typecasting. Example: int x = (double) z;
異なる型への代入で暗黙的キャストが行われ、データが損失している可能性があります。
(例:int temp_time = TimeLocal();)
possible loss of data to type conversion.
44 定数の変換でデータが損失します。
(例:int date = M_PI;)
Loss of accuracy (of data) when converting a constant. Example: int x = M_PI
45 符号違いの型で比較しています。
例: (char)tempc > (uchar)tempuc
Difference between the signs of operands in the operations of comparison. Example: (char) c1> (uchar) c2
46 関数のインポートに問題があります。
#import宣言は、関数のインポートを閉じるのに必要です。
Problems with function importing - declaration of #import is required or import of functions is closed
47 説明が長すぎます。余分な文字は実行ファイルに含まれません。
Too large description - extra characters will not be included in the executable file
48 インジケータバッファが必要なサイズより少ない
The number of indicator buffers declared is less than required
49 インジケータが色無しでプロットされています
No color to plot a graphical series in the indicator
50 インジケータが描画されていません
No graphical series to draw the indicator
51 OnStartハンドラ関数がスクリプトで見つけられません
'OnStart' handler function not found in the script
52 OnStartハンドラ関数のパラメータ定義が間違えています
'OnStart' handler function is defined with wrong parameters
53 OnStartハンドラ関数はスクリプトでのみ定義出来ます
'OnStart' function can be defined only in a script
54 OnInit関数のパラメータ定義が間違えています
'OnInit' function is defined with wrong parameters
55 OnInit関数はスクリプトで使用出来ません
'OnInit' function is not used in scripts
56 OnDeinit関数のパラメータ定義が間違えています
'OnDeinit' function is defined with wrong parameters
57 OnDeinit関数はスクリプトで使用出来ません
'OnDeinit' function is not used in scripts
58 OnCalculate関数が2つ定義されています。
Two 'OnCalculate' functions are defined. OnCalculate () at one price array will be used
59 複雑な整数定数を計算する際にオーバーフィルを検出
Overfilling detected when calculating a complex integer constant
60 変数が初期化されていません
Probably, the variable is not initialized.
61 この宣言は、指定された行で宣言されたローカル変数の参照を不可能にします
This declaration makes it impossible to refer to the local variable declared on the specified line
62 この宣言は、指定された行で宣言されたグローバル変数の参照を不可能にします
This declaration makes it impossible to refer to the global variable declared on the specified line
63 静的配列に使用する事は出来ません
Cannot be used for static allocated array
64 この変数宣言は、事前に宣言された変数を隠します。
This variable declaration hides predefined variable
65 式の値は常にtrueです。(または常にfalseです)
The value of the expression is always true/false
66 数学的な演算でbool型の変数また式を使用するのは安全ではありません。
Using a variable or bool type expression in mathematical operations is unsafe
67 unsigned long型にマイナス演算子は適用出来ません。
The result of applying the unary minus operator to an unsigned ulong type is undefined
68 #property versionで指定したバージョンは、MQLマーケントに受け入れられません。
#property versionの正しいフォーマットは"xxx.yyy"
The version specified in the #property version property is unacceptable for the Market section; the correct format of #property version id "XXX.YYY"
69 空の制御文が見つかりました
Empty controlled statement found
70 不正な引数 又は 無効な戻り値型のイベントハンドラ関数宣言しています
Invalid function return type or incorrect parameters during declaration of the event handler function
71 構造体の暗黙的なキャストが必要です
An implicit cast of structures to one type is required
72 この宣言は、アクセス不可指定されたクラスメンバに直接アクセスする事が出来ます。
スコープ定義演算子(::)でのみアクセス可能です。
This declaration makes direct access to the member of a class declared in the specified string impossible. Access will be possible only with the scope resolution operation ::
73 バイナリ定数が大き過ぎです、上位桁が切り捨てられます。
Binary constant is too big, high-order digits will be truncated
74 継承されたクラスのメソッドは、異なるconst修飾子を持っています。
派生した関数は親関数をオーバーロードしています。
Parameter in the method of the inherited class has a different const modifier, the derived function has overloaded the parent function
75 負の値または大きすぎる値のシフトビット演算は、実行結果が不明です。
Negative or too large shift value in shift bitwise operation, execution result is undefined
76 この関数は戻り値を返す必要があります。
Function must return a value
77 void型関数が値を返しています
void function returns a value
78 返された制御パスは完全ではありません
Not all control paths return a value
79 式はグローバルスケールで処理出来ません。
Expressions are not allowed on a global scope
80 エラーの可能性がある為、演算子の優先順位を確認して下さい。
優先順位を明確にする為括弧を使用して下さい。
Check operator precedence for possible error; use parentheses to clarify precedence
81 OnCalculate()関数が2つ定義されています。
OHLCバージョンが使用されます。
Two OnCalCulate() are defined. OHLC version will be used
82 構造体にメンバがありません
Struct has no members, size assigned to 1 byte
83 関数の戻り値を確認する必要があります
Return value of the function should be checked
84 リソースインジケータはデバッグ用にコンパイルされています。パフォーマンス低下するので、再コンパイルしてパフォーマンス向上させて下さい。
Resource indicator is compiled for debugging. That slows down the performance. Please recompile the indicator to increase performance
85 文字列の文字コードが大きすぎます。文字コードの範囲は0~65535(0xFFFF)までです。
Too great character code in the string, must be in the range 0 to 65535
86 文字列内に不明な文字があります。
Unrecognized character in the string
87 インジケータウインドウプロパティが定義されていません。
#property indicator_chart_windowが適用されます。
No indicator window property (setting the display in the main window or a subwindow) is defined. Property #property indicator_chart_window is applied
88 プロパティは無視されます。プロパティはグローバルスコープで宣言する必要があります。
copyright、link、version、strictのプロパティについては警告されません。
Property ignored, it must be declared on the global scope. The warning is not generated for the following properties: copyright, link, version and strict.




スポンサーリンク
スポンサーリンク


Copyright ©2015 MT4でEA自作しちゃお~ All Rights Reserved.


Top

inserted by FC2 system