SubWindow - MetaTrader 5 Library | MT5 EA Download - MetaTrader 5 Resources

The library can be connected using
#include
All other documents on this page provide examples/scenarios for library applications; they are not required for the operation of the library.
// Get the index of the chart sub-window based on coordinates Integer subwindow::get( constant long chart ID, constant integer X, constant integer is); // Delete chart subwindow boolean subwindow::delete( const long chart ID, const unit index); //Delete all chart subwindows Boolean subwindow::Delete all ( constant long chart ID = 0 ); // Create a copy of the chart subwindow Boolean SubWindow::Copy( const long ChartID, constant unit index source, constant unit index Dst); //Change the position of the chart subwindow boolean subwindow::exchange( const long chart ID, constant unit index 1, constant unit index 2);
The description is accompanied by library usage examples/scenarios.
SubWindow_Copy.mq5
// Create a copy of the child window and attach the script to itSubwindow_delete.mq5
// Delete the child window with attached scriptSubWindow_DeleteAll.mq5
//Delete all chart subwindowsSubwindow_Manager.mq5
//Manage chart subwindowhelp:
Drag and drop - swap subwindows
Drag+CTRL - Duplicate child window
SHIFT+click - delete child window
Delete - deletes all child windows

To better understand how to use the library, here is a short source code:
#includeblank start () { subwindow::swap( 0 , 1 , 2 ); // On the current chart (0), we swap the first (1) and the second (2) subwindow }
The usage of the library on the zero subwindow (chart) is unpredictable and is a completely unusual situation.
Attachment download
📎 subwindow.mqh (5.65 KB)
📎 subwindow_copy.mq5 (0.18 KB)
📎 subwindow_delete.mq5 (0.15 KB)
📎subwindow_deleteall.mq5 (0.11 KB)
📎 subwindow_manager.mq5 (2.23 KB)
Source: MQL5 #19117
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •