Basic library for creating volume profiles - MetaTrader 5 library | Trading script download - MT4/MT5 resources


The library provides some simple public methods to create and draw volumetric sections:
people : blank volume_profile( datetime_from , datetime_to , integer_resolution_points ); ~VolumeProfile() {}; Double Get HVPrice(); void plot();
Here is an example script to instantiate and draw the required volume curve:
#Include <VolumeConfig.mqh> blank on startup () { DateTimeFrom =When in love( _symbol , PERIOD_CURRENT , 50 ); DateTimeTo = LoveTime ( _symbol , PERIOD_CURRENT , 20 ); Volume Profile*VP = new Volume Profile(from,to,5); VP.Plot(); print (VP.GetHVPrice()); Remove Vice President; }
Attachment download
📎 testvol.mq5 (0.29 KB)
📎 volumeprofile.mqh (4.41 KB)
Source: MQL5 #49718
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •