Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 2117
- Rating:
- Published:
- 2024.05.11 15:10
- Updated:
- 2024.06.01 10:14
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This library provides a few simple public methods to create and plot Volume Profiles:
public: void VolumeProfile(datetime _from, datetime _to, int _resolution_points); ~VolumeProfile() {}; double GetHVPrice(); void Plot();
- GetHVPrice returns the price that is related to highest volume in the range.
- _resolution_points holds the window size to quantize adjacent prices(counted in points)
Here is a sample script to instantiate and plot a desired Volume Profile:
#include <VolumeProfile.mqh> void OnStart() { datetime from=iTime(_Symbol, PERIOD_CURRENT,50); datetime to=iTime(_Symbol, PERIOD_CURRENT,20); VolumeProfile *VP = new VolumeProfile(from, to, 5); VP.Plot(); Print(VP.GetHVPrice()); delete VP; }
![Breakout Strategy with Prop Firm Helper Functions](https://c.mql5.com/i/code/expert.png)
This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.
![Click on the market chart to create a price alert](https://c.mql5.com/i/code/indicator.png)
This is a first for MetaTrader 5. Now you can click on the chart to create price alerts.
![Trap News MT5](https://c.mql5.com/i/code/script.png)
Script For Trap News High Impact
![Delete all objects on chart (main window and sub window) with drag and drop](https://c.mql5.com/i/code/script.png)
It will delete all objects on the chart when the compiled executable is dragged onto the chart