Each group of operations in the table has the same priority. The higher is the priority, the higher is the position of the group in the table. The precedence rules determine the grouping of operations and operands.
以下の表内にある演算子の各グループは同じ優先順位を持ちます。表のグループの位置が高いものが、優先順位が高いです。優先順位のルールは、演算子と演算する値の集まりによって決定します。
1 2 3 4 5  | ()     Function call                     From left to right        関数呼び出し                      左から右へ []     Referencing to an array element        配列要素への参照  | 
1 2 3 4 5 6 7 8 9 10 11 12 13 14  | !      Logical negation                  From right to left        論理否定                          左から右へ -      Sign changing operation        符号変換演算子 ++     Increment        インクリメント --     Decrement        デクリメント ~      Bitwise negation (complement)        ビット否定(補数)  | 
1 2 3 4 5 6 7 8 9 10 11 12 13 14  | &      Bitwise operation AND             From left to right        ビット演算子 AND                  左から右へ |      Bitwise operation OR        ビット演算子 OR ^      Bitwise operation exclusive OR        ビット演算子 XOR <<     Left shift        左シフト >>     Right shift        右シフト  | 
1 2 3 4 5 6 7 8 9  | *      Multiplication                    From left to right        乗算                              左から右へ /      Division        除算 %      Module division        剰余  | 
1 2 3 4 5  | +      Addition                          From left to right        加算                              左から右へ -      Subtraction        減算  | 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  | <      Less than                         From left to right        より小さい                        左から右へ <=     Less than or equal        以下 >      Greater than        より大きい >=     Greater than or equal        以上 ==     Equal        等しい !=     Not equal        等しくない  | 
1 2  | ||     Logical OR                        From left to right        論理和                            左から右へ  | 
1 2  | &&     Logical AND                       From left to right        論理積                            左から右へ  | 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33  | =      Assignment                        From right to left        代入                              左から右へ +=     Assignment addition        加算代入 -=     Assignment subtraction        減算代入 *=     Assignment multiplication        乗算代入 /=     Assignment division        除算代入 %=     Assignment module        剰余代入 >>=    Assignment right shift        右シフト代入 <<=    Assignment left shift        左シフト代入 &=     Assignment bitwise AND        ビット論理積代入 |=     Assignment bitwise OR        ビット論理和代入 ^=     Assignment exclusive OR        ビット排他的論理和代入  | 
1 2  | ,      Comma                             From left to right        コンマ                            左から右へ  | 
Parentheses that have higher priority are applied to change the execution order of the operations.
演算の実行順序を変更するには、高い優先順位をもつ丸括弧を使用します。
Attention: Priority of performing operations in MQL4 differs to some extent from that conventional in the C language.
注意: MQL4 で仕込まれた演算子の優先順位は、従来のC言語のそれとある程度異なります。