AutoBringChartToTop
Download scriptThis script is a functional utility designed for the MetaTrader trading platform. Its primary purpose is to manage the visual focus of your workspace by automatically bringing specific price charts to the front of your screen.
Core Functionality
The script places a dedicated interactive button on your chart interface. This button acts as a toggle switch that controls an automated "Bring to Front" cycle.
When activated, the script performs the following logic:
- Automated Cycling: It identifies the active charts and sequentially moves them to the foreground one by one.
- Continuous Refresh: It repeats this process at a specific time interval (defined by the user), ensuring that all your open charts receive focus in a continuous loop.
- Smart Navigation: If the script reaches the end of your open charts, it automatically loops back to the first available chart to restart the cycle seamlessly.
User Interface & Interaction
To make the tool user-friendly, the script includes several visual and interactive features:
- Visual Feedback: The button changes color and text dynamically. When the feature is active, the button turns a "Yellow Green" color and displays "ON." When deactivated, it turns "Tomato" red and displays "OFF."
- Customizable Placement: You can choose exactly where on your screen the control button appears (e.g., top-left, bottom-right, etc.) and define its size and distance from the edges.
- Clean Integration: The button is configured to be non-selectable and hidden from standard selection tools, ensuring it doesn't interfere with your manual clicking or drawing on the charts.
How It Works Summary
Think of this script as a "virtual hands-free" assistant for traders who monitor multiple markets simultaneously. Instead of manually clicking every window to see the latest price movement, you turn this script on, and it handles the heavy lifting by cycling through your windows automatically, keeping your workspace dynamic and updated.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | A u t o B r i n g C h a r t T o T o p . m q 4 |
/ / | C o p y r i g h t 2 0 1 3 , M e t a Q u o t e s S o f t w a r e C o r p . |
/ / | h t t p : / / w w w . m q l 5 . c o m |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / 2 0 1 7 - 0 5 - 2 5 1 2 : 4 2 : 2 7 p u b l i s h t o M Q L 5 . C O M c o d e b a s e
/ / 2 0 1 6 - 0 2 - 1 8 1 4 : 5 1 : 3 1 a d d i n p u t E N U M _ B A S E _ C O R N E R C o r n e r = 3 ;
/ *
N o t e :
h t t p s : / / w w w . m q l 5 . c o m / e n / d o c s / c o n s t a n t s / o b j e c t c o n s t a n t s / e n u m _ a n c h o r p o i n t
T h e O B J _ B U T T O N , O B J _ R E C T A N G L E _ L A B E L a n d O B J _ E D I T o b j e c t s
h a v e a f i x e d a n c h o r p o i n t i n t h e u p p e r l e f t c o r n e r ( A N C H O R _ L E F T _ U P P E R ) .
* /
/ / 2 0 1 4 - 5 - 1 2 2 : 0 7 c o d e d
# p r o p e r t y c o p y r i g h t "