|
Every MQL4 program allows to specify additional specific parameters named
#property that help client terminal in proper servicing for programs without
the necessity to launch them explicitly. This concerns external settings
of indicators, first of all.
すべての MQL4 プログラム は、明示的にそれらを起動する必要なしに、適切なサービスを提供するプログラムの中で、クライアント ターミナルを補助する
#property という名前の追加の特定パラメータを指定することができます。これは、まず第一に、インディケーターの外部設定に関連します。
#property identifier value
Constant
定数 |
Type
型 |
Description
説明 |
| link |
string |
a link to the company website
会社のウェブサイトへのリンク |
| copyright |
string |
the company name
会社名 |
| stacksize |
int |
stack size
スタック サイズ |
| library |
|
a library; no start function is assigned, non-referenced functions are
not removed
ライブラリ。start 関数は割り当てられない。未参照の関数は削除されない。 |
| indicator_chart_window |
void |
show the indicator in the chart window
チャート ウィンドウでインディケーターを表示 |
| indicator_separate_window |
void |
show the indicator in a separate window
別ウィンドウでインディケーターを表示 |
| indicator_buffers |
int |
the number of buffers for calculation, up to 8
計算のためのバッファ数。最高は8 |
| indicator_minimum |
double |
the bottom scaling limit for a separate indicator window
個別のインディケーターのウィンドウに対するスケーリング下限 |
| indicator_maximum |
double |
the top scaling limit for a separate indicator window
個別のインディケーターのウィンドウに対するスケーリング上限 |
| indicator_colorN |
color |
the color for displaying line N, where N lies between 1 and 8
ライン N の表示色。N は 1〜8 |
| indicator_widthN |
int |
width of the line N, where N lies between 1 and 8
ライン N の太さ。N は 1〜8 |
| indicator_styleN |
int |
style of the line N, where N lies between 1 and 8
ライン N の線種。N は 1〜8 |
| indicator_levelN |
double |
predefined level N for separate window custom indicator, where N lies between
1 and 8
別ウィンドウのカスタム インディケーターの定義レベル N。N は 1〜8 |
| indicator_levelcolor |
color |
level line color
レベルの線の色 |
| indicator_levelwidth |
int |
level line width
レベルの線の太さ |
| indicator_levelstyle |
int |
level line style
レベルの線種 |
| show_confirm |
void |
before script run message box with confirmation appears
スクリプトが実行される前に、確認メッセージ ボックスが表示される |
| show_inputs |
void |
before script run its property sheet appears; disables show_confirm property
スクリプトが実行される前にプロパティ シートが表示される。show_confirm プロパティを無効化 |
Examples:
例:
#property link "http://www.metaquotes.net"
#property copyright "MetaQuotes Software Corp."
#property library
#property stacksize 1024
Compiler will write the declared values in the settings of the executed
module.
コンパイラは、実行モジュールの設定で宣言された値を記述します。
|