Join our fan page
ChartButton Class MT5 - expert for MetaTrader 5
- Views:
- 7381
- Rating:
- Published:
- 2023.04.23 21:05
- Updated:
- 2023.08.15 21:07
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.
The main Idea behind it, is that it reacts to chart changes and mouse movements. If the mouse fits the given conditions the Button will be selected and will be draggable. I monitor the dragging with a custom chart event: EVENT_DRAG.The button's onChartEvent function is always called in the built in OnChartEvent function, and it passes down the informations to the different handler functions.
Check out the youtube tutorial I've made about the Idea behind it:
Learn how to split the volume data into different groups so that you can compare them and create a strategy based on volume average.
BenchmarkA set of macros to benchmark small code snippets for their execution speeds.
To assist traders who wish to open multiple buy orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Buy is the number trades the trader wish to open instantly. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple buy orders, it can save traders valuable time and allow them to focus on other aspects of their trading strategy.
Multi SellOrdersTo assist traders who wish to open multiple sell orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Sell is the number of trades to execute. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple sell orders, it can save traders valuable time and allow them to focus on other aspects of their trading