Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

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

author EAcpu | 3 reads | 0 comments |

SubWindow - library for MetaTrader 5

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 it
  • Subwindow_delete.mq5

     // Delete the child window with attached script
  • SubWindow_DeleteAll.mq5

     //Delete all chart subwindows
  • Subwindow_Manager.mq5

     //Manage chart subwindow
  • help:

    Drag and drop - swap subwindows

    Drag+CTRL - Duplicate child window

    SHIFT+click - delete child window

    Delete - deletes all child windows

    SubWindow - library for MetaTrader 5

    To better understand how to use the library, here is a short source code:

     #include blank 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

    Verification code Refresh