Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
4504
Rating:
(33)
Published:
2017.11.03 12:33
\MQL5\Include\fxsaber\
SubWindow.mqh (5.65 KB) view
\MQL5\Scripts\fxsaber\SubWindow\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The library can be connected using

#include <fxsaber\SubWindow.mqh>

All other files on this page provide examples/scenarios of library application; they are not needed for the operation of the library.


Features

// Getting the index of the chart subwindow based on coordinates
int SUBWINDOW::Get( const long Chart_ID, const int X, const int Y );

// Deleting a chart subwindow
bool SUBWINDOW::Delete( const long Chart_ID, const uint Index );
  
// Deleting all chart subwindows
bool SUBWINDOW::DeleteAll( const long Chart_ID = 0 );

// Creating a copy of a chart subwindow
bool SUBWINDOW::Copy( const long Chart_ID, const uint IndexSrc, const uint IndexDst );
  
// Changing the positions of chart subwindows
bool SUBWINDOW::Swap( const long Chart_ID, const uint Index1, const uint Index2 );


Example

The library use examples/scenarios are attached to the description.

  • SubWindow_Copy.mq5

    // Creates a copy of the subwindow, to which the script is attached
  • SubWindow_Delete.mq5

    // Deletes the subwindow, to which the script is attached
  • SubWindow_DeleteAll.mq5

    // Deletes all chart subwindows
  • SubWindow_Manager.mq5

    // Manages chart subwindows

Help:

Drag&Drop - Swap SubWindows

Drag&Drop+CTRL - Copy SubWindows

SHIFT+Click - Delete SubWindow

DELETE - Delete All SubWindows

ESCAPE - Exit

For a better understanding of how to use the library, here is a short source code:

#include <fxsaber\SubWindow.mqh>

void OnStart()
{
  SUBWINDOW::Swap(0, 1, 2); // On the current chart (0) we swap the first (1) and the second (2) subwindows
}


Features

The use of the library on the zero subwindow (the chart) is unpredictable, because is a completely abnormal situation.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/19117

Multi Time Frame Trader Multi Time Frame Trader

The Expert Advisor trades based on the i-Regr indicator signals.

This is a cross-platform МТ45 Expert Advisor This is a cross-platform МТ45 Expert Advisor

The МТ45 Expert Advisor is based on the Martingale strategy. It is designed for trading in the МetaТrader 4 and МetaТrader 5 terminals.

Multi Stochastic Multi Stochastic

A multi-currency Expert Advisor based on the iStochastic (Stochastic Oscillator) indicator signals.

Vortex Vortex

An indicator from "Technical Analysis of Stocks & Commodities" (January, 2010).