Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

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

author EAcpu | 2 reads | 0 comments |

Basic Library to Create Volume Profiles - library for MetaTrader 5

Basic Library to Create Volume Profiles - library for MetaTrader 5

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;
  }

Basic Library to Create Volume Profiles - library for MetaTrader 5


Attachment download

📎 testvol.mq5 (0.29 KB)

📎 volumeprofile.mqh (4.41 KB)

Source: MQL5 #49718

Verification code Refresh