MT5レンジフィルターRangeFilter_GMMAs_Width

Product outline
Community(0)
MT5レンジフィルターRangeFilter_GMMAs_Width Indicators/E-books
MT5レンジフィルターRangeFilter_GMMAs_Width
視覚的に分かりやすいレンジボックス生成インジケーター
Sales Result:
0本
Reviews:
How to provide:
Indicator
Sales from:
12/28/2025
Last Updated:
-
Version:
-
Available company:
Payment method:

-

フォロー 0 フォロワー 1
Seller's last login time:3/20/2026 22:47:02
Read more seller information

GMMA(Guppy Multi Moving Average)の短期群が収束した箇所に自動でボックス(矩形)を描画するMT5用インジケーターです。

テクニカル分析において、GMMAの短期線が密集する状態は「エネルギーの蓄積(スクイーズ)」を意味し、その後のブレイクアウトの予兆として重視されます。

このコードの仕組みと特徴を分かりやすく解説します。


1. プログラムの全体像

このインジケーターは、以下のステップで動作します。

  1. 初期化 (OnInit): 短期EMA(3, 5, 8, 10, 12, 15期間)の計算用ハンドルを取得します。

  2. 計算と判定 (OnCalculate):

    • 過去500本分のローソク足に対して、6本のEMAの値をチェックします。

    • 「6本のEMAの中の最大値 - 最小値」を計算し、それが設定値(デフォルトは7ポイント)以下であれば「レンジ(収束)」と判定します。

  3. 描画: 収束が始まった時間から終わった時間までの範囲を OBJ_RECTANGLE(矩形オブジェクト)でチャートに描画します。

  4. 後片付け (OnDeinit): インジケーターを削除した際、チャートに残ったボックスをきれいに消去します。


2. 主要なロジックの解説

収束(スクイーズ)の判定基準


ここでは、もっとも期間の短いEMAともっとも長いEMA(およびその間のすべて)が、一定の幅(InpThresholdPips)の中に収まっているかを判定しています。

  • ポイント: _Point を掛けているため、パラメーターの「7」はドル円なら 0.007円(0.7ピップス)を指します。

ボックスの描画範囲

  • 時間軸: range_start_time(収束開始)から time[i](収束終了)まで。

  • 価格軸: 収束期間中のEMA群の「最高値」と「安値」をカバーするようにボックスの高さが決まります。


3. コードのメリットと注意点

メリット

  • 視認性の向上: 裁量判断では見逃しがちな「EMAの微妙な収束」を、ピンク色のボックスで視覚化できます。

  • 負荷対策: lookback を 500本に制限しているため、過去数年分のデータをすべて計算してMT5が重くなるのを防いでいます。

  • 透過設定: InpOpacity(透明度)が設定されているため、塗りつぶしてもローソク足が見えなくなるのを防いでいます。

注意点・改善のヒント

  • pipsの単位: 現在のコードは「ポイント単位」です。FX業者が5桁表示(例:145.123)の場合、7 はわずか 0.7pips です。ボラティリティに合わせて、この数値を 2030 に調整すると、より実用的なボックスが表示されやすくなります。

  • 再描画のタイミング: OnCalculate の冒頭で ObjectsDeleteAll を実行しているため、新しいティックが来るたびにすべてのオブジェクトを書き直します。500本程度なら問題ありませんが、計算範囲を広げる場合は負荷に注意が必要です。

¥2,000(Tax included)
?About 1-Click Order
Product outline
Community(0)
Best Seller Ranking
Recommended Products (Campaigns)

For those using GogoJungle for the first timeEasy 3 steps to use the product!

At GogoJungle, we provide services to enrich your investment life for our members. In addition, product purchases are limited to members. Why not register as a member now and make use of GogoJungle!

01
Enter user information and register as a member
02
Follow the instructions to make a purchase
03
Download from My Page
■ Important Matters and Risk Warnings Regarding Investment Products 【Financial Instruments Business Operator】
GogoJungle Inc.
Registration: Director-General of the Kanto Local Finance Bureau (Financial Instruments Business) No. 1960
【Member Association】
Japan Investment Advisers Association
【Fees and Expenses】
The use of software, e-books, investment advisory services, etc., provided on our platform involves purchase prices determined for each product.
Additionally, when conducting actual financial instrument transactions (such as FX or CFD trading), costs such as transaction fees and spreads (the difference between the sell and buy price) may be incurred through the connected brokerage firms.
【Margin and Risk of Loss】
Transactions such as FX (Foreign Exchange Margin Trading) and CFD (Contract for Difference) allow for trading in amounts exceeding the deposited margin.
Therefore, due to sudden fluctuations in target indices (currency, commodity prices, etc.), there is a risk of incurring losses that exceed the deposited margin (loss exceeding principal).
Furthermore, financial instrument transactions involve risks such as price fluctuations, which may result in losses falling below or exceeding the initial investment principal.
【Nature of Services and Trading Entity】
The Company operates a platform (marketplace) providing investment software and information; we do not engage in the buying, selling, mediation, brokerage, or agency of financial instruments on behalf of customers.
The services and information provided are intended as reference for investment decisions and do not guarantee future profits or specific results.
While some services include investment advice, they do not constitute a mandate or solicitation to trade specific financial instruments.
Final investment decisions and the execution of trades must be made at the customer’s own risk and discretion.
GogoJungle Inc.
Registration: Director-General of the Kanto Local Finance Bureau (Financial Instruments Business) No. 1960
Member Association: Japan Investment Advisers Association
GogoJungle Inc.
Registration: Director-General of the Kanto Local Finance Bureau (Financial Instruments Business) No. 1960
Member Association: Japan Investment Advisers Association
Financial Services AgencyJapan Investment Advisers AssociationFinancial Instruments Mediation Assistance CenterSecurities and Exchange Surveillance Commission

Copyright © 2026 GogoJungle Inc. All Rights Reserved.