複数チャートをきれいに揃えて並べ直します

Product outline
Community(0)
複数チャートをきれいに揃えて並べ直します Indicators/E-books
複数チャートをきれいに揃えて並べ直します
複数のチャートをタイル状に均等に分割して並べるスクリプト (2022/10/15Up)
Sales Result:
776本
Reviews:
How to provide:
Indicator
Sales from:
03/22/2019
Last Updated:
10/15/2022
Version:
2.1
Available company:

Japan

フォロー 0 フォロワー 17
Seller's last login time:10/19/2024 02:08:32
Read more seller information

複数のチャートを同時に表示していて、きれいに並べたいと思うことはありませんか?

なんとなく同じような大きさにして、表示位置を微調整したりして、そこそこ並べることはできますが、何かの拍子に動かしてしまったり、再調整が面倒だと思うこともしばしば。

mt4メニューの水平分割や垂直分割でもチャートを整列して表示できますが、今ひとつ使い勝手が悪いと思うのは私だけでしょうか。

そんな悩みを一発解決するスクリプトをどうぞ(^o^)。

 

ちょっと大げさですが、こんなふうに、微妙にずれて表示さているチャートも・・・、

タイルマネージャーで速攻ピッチリきれいに並びます♪

 

使い方は簡単で、このスクリプトをどこか適当なチャートにドロップし、下図のパラメータ設定でわかるように、「横分割数」で横方向に並べる数を、「縦分割数」で縦方向に並べる数を指定するだけです。

横、縦、それぞれ均等に分割して並べ直してくれます。

並び順は左から右へ、そして、上から下へ順番に並べますが、各チャート並び順とは関係なく、チャートをアクティブにした順、つまり、チャートをクリックした順に並べます。

上図の例で言えば、「AUDUSD,H1」→「AUDUSD,Daily」→「AUDUSD,Weekly」→「GBPUSD,H1」→「GBPUSD,Daily」→「GBPUSD,Weekly」の順にクリックしたのち、どこかのチャートにスクリプトをドロップし、横分割数を3、縦分割数を2にすれば図に示したように並びます。

また、例えば、上図の6つのチャートを、左側に1時間足、真ん中に日足、右側に週足の縦3分割で表示したい場合は、その順にチャートをクリックしたのち、次のように横分割数を3に、縦分割数を1にします。

すると、次のように、6枚のチャートが3分割され、各時間軸のチャートの後ろにもう一つのチャートが隠れるようにして表示されます。

 

また、縦横どちらかの分割数を0にすると、チャートの枚数と、0じゃない方の分割数から、自動的に0の方の分割数を計算して表示します。

例えば、6枚のチャートがあって、次のパラメータのように、横分割数を4に、縦分割数を0に設定すると、自動的に縦分割数を2に設定して下図のように表示してくれます。

 

 

 

また、このスクリプトは、「チャートタイトルと枠の表示・非表示(ボーダーコントロール)」スクリプトと合わせて使うと良いでしょう。

このタイルマネージャーで並べ直してから、このスクリプトを適用して、タイトルや枠線を非表示にして、チャートを見やすくしたり、動かないようにできます。

 

ソースファイル(TileManager.mq4)と実行ファイル(TileManager.ex4)をお渡しします。

なお、再コンパイルするには、ヘッダファイル「WinUser32.mqh」に次の文を追記してからコンパイルしてください。

 

「\MQL4\Include\WinUser32.mqh」内の 最初の方で、「#import "user32.dll"~#import」によって関数を定義しています。 その部分のどこか、最後でよいですが、 「bool GetClientRect(int hWnd , int &size[]);」 を追記した上で、再度コンパイルしてください。

 

元はと言えば他の方が作ったものですし、改変・再配布等ご自由にしていただいて構いませんが、バグ・改善点等お気づきの点があれば、お教えいただければ幸いです。

Free
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.