Fan sayfamıza katılın
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
- Yayınlayan:
- Pablo
- Görüntülemeler:
- 2585
- Derecelendirme:
- Yayınlandı:
- 2023.04.22 20:17
-
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git
You can use this piece of code to set two different groups of volume and compare them.
E.G (one minute chart example):
If you set group 1 to 20.
Group 1: The last 20 bars volume / 20 = You get the average of the last 20 bars.
If you set group 2 to 60.
Group 2: The 21th bar up to 60. (it means you will have 40 bars, not 60, if you want 60 you should set it to 80).
Then, with the average of the last 20 bars and the average of the 21th to 60th bar you can subtract and see the difference between them, or even better, you can divide GROUP 1 / GROUP 2 and see how much the volume has increased.
Such strategy is fantastic to trade breakouts or trend following.
You can combine volume analysis with price action.
So this is a very clean and simple piece of code, but valuable for the ones who are learning mql5 and want to improve their algo trading skills. Worth downloading for studies purposes.
The return of the function will be called and displayed as a comment on the top of the chart.
![Benchmark](https://c.mql5.com/i/code/library.png)
A set of macros to benchmark small code snippets for their execution speeds.
![Money Management](https://c.mql5.com/i/code/expert.png)
Close trades when the percentage profit or risk of the account is reached
![ChartButton Class MT5](https://c.mql5.com/i/code/expert.png)
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.
![Multi BuyOrders](https://c.mql5.com/i/code/script.png)
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.