11.1.2. 4. 1_"bat-atr-indicator_Alert"機能説明
"bat-atr-indicator_Alert"は、インターネットから無料で入手した"bat-atr-indicator"のMT4プログラムソースファイルに
改造を加えて、アラート出力を追加したインジケーターです。尚、"bat-atr-indicator"はトレーリングストップ(損切り位置)を 決めるために使用します。 1.パラメーター初期設定 ![]() ・"BackPeriod":"bat-atr-indicator"のパラメーター ・"ATRPeriod":"bat-atr-indicator"のパラメーター ・"Factor":"bat-atr-indicator"のパラメーター ・"TypicalPrice":"bat-atr-indicator"のパラメーター ・"Alert":売買サイン転換時のアラート(false:アラートなし, true:アラートあり) 2.表示色初期設定 ![]() ・#0:買いラインの色,サイズ,線種 ・#1:売りラインの色,サイズ,線種 ※色の設定をNoneにすると表示しません。 3.機能説明 ・"bat-atr-indicator"のラインを表示して、パラメーターの"Alert"が true の場合、 売買サイン転換時にアラート出力する。 4."bat-atr-indicator_Alert"MT4画面 以下は、"bat-atr-indicator_Alert"インジケーターのMT4画面です。 "bat-atr-indicator"の売買サイン転換時にアラートを出力します。 ![]() 5.パラメーター初期設定,表示色初期設定プログラム箇所 〇プログラムファイル場所:データフォルダ\MQL4\Indicator\bat-atr-indicator_Alert.mq4 ・パラメーター初期設定箇所 extern int BackPeriod = 2000; extern int ATRPeriod = 3; extern double Factor = 3; extern bool TypicalPrice = false; input bool Alert = false; ・表示色初期設定箇所 #property indicator_color1 clrLightSkyBlue #property indicator_color2 clrPink #property indicator_width1 5 //サイズ #property indicator_width2 5 トップページヘもどる |