c Int BM P - a library for creation of BM P images

c Int BM P - a library for creation of BM P images
Download ALL MT5 librarys (393)
YouTube Video Thumbnail

Similar MetaTrader Tools

c Int BM P - a library for creation of BM P images

Info

The c Int BM P - a library for creation of BM P images is a Library for MetaTrader 5 that this class is designed for creation of bmp images. Examples: An example of DrawTriangle() methodAn example of DrawRectangle() methodAn example of DrawCircle() methodAn example of Fill() methodUsage: The cIntBMP.

Usage

This tool is typically used for enhancing chart analysis and decision making.

Platform

This Library works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Libraries folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use c Int BM P - a library for creation of BM P images

1. Storage: Place library files in the MQL/Libraries directory to ensure they are accessible to your projects.

2. Implementation: Include the library in your code using the #import directive, ensuring you match the exact function names and parameters.

3. Compilation: Ensure the library is present in the directory before you compile your main EA or script, as the compiler links them during this phase.

4. Management: Keep libraries organized in sub-folders if you manage many custom functions to maintain a clean project structure.

Frequently Asked Questions

Q: What is a library file used for? A: Libraries store reusable code modules, allowing you to centralize common logic used by multiple EAs or indicators.

Q: Is a library executable? A: No, libraries are non-executable files containing functions; they must be imported into an EA, indicator, or script to function.

Q: Can I update a library while the platform is running? A: You should compile your EA or script after updating a library to ensure the latest code changes are integrated.

What this tool does

This class is designed for creation of bmp images.

Typical Use Case

This Library excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Library works on MetaTrader 5. Place the file in the MQL5/Libraries folder and restart the terminal.

Description & Settings

Related: Session Time Filter Library - another powerful library for MetaTrader 5 traders.


This class is designed for creation of bmp images.
Examples:
An example of DrawTriangle() method

Also recommended: AS Q Neural Net Pure MQ L5 Neural Network Library - similar library with strong performance on MetaTrader 5.

An example of DrawRectangle() method
An example of DrawCircle() method
An example of Fill() method
Usage:
The cIntBMP.mqh file should be located in MQL5/Include folder. The demo of cIntBMP class usage is located in the eBMP.mq5 file. Copy this file to the MQL5/Experts folder, open it in MetaEditor, compile and attach to the chart.
Using cIntBMP class:
1. Include file with class:
2. Delcare the cIntBMP class variable, for example "bmp":
3. Set image size and background color (using Create(...) method, see below).4. Draw on the image.5. Save (using the Save(...) method).6. Show (using the Show(...) method);
When finished:
1. Delete graphic object (using the Hide(...) method).2. Delete the file (using the Delete(...) method).
Class Methods:

Create(int aSizeX, int aSizeY, int aBGColor) - Sets image size and background color.aSizeX - width (in pixels);aSizeY - height (in pixels);aBGColor - background color;

SetDrawWidth(int aWidth) - Sets pen width.aWidth - pen width.

DrawDot(int aX, int aY, int aColor) - Draws a dot.aX - X coordinate;aY - Y cooordinate;aColor - color;

DrawLine(int aX1,int aY1, int aX2, int aY2, int aColor) - Draws a line.aX1, aY1 - starting coordinates;aX2, aY2 - ending coordinates;aColor - color;

DrawRectangle(int aX1, int aY1, int aX2, int aY2, int aColor, bool aSolid=false) - Draws a rectangle.aX1, aY1 - coordinates of the upper left corner;aX2, aY2 - coordinates of the lower right corner;aColor - color;aSolid - true - filled.

DrawTriangle(int aX1, int aY1, int aX2, int aY2, int aX3, int aY3, int aColor, bool aSolid=false) - Draws a triangle.aX1, aY1, aX2, aY2, aX3, aY3 - edge coordinates;aColor - color;aSolid - true - filled.

DrawCircle(int aX, int aY, int aRadius1, int aRadius2, int aColor, double aRatio=1.0, double aAngleFrom=0.0, double aAngleTo, bool aSolid=false) - Draws a circle.aX - X coordinate;aY - Y coordinate;aRadius1 - radius of the 1st circle;aRadius2 - radius of the 2nd circle;aColor - color;aRatio - ratio (ratio=1, circle, overwise ellipse). aAngleFrom - starting angle;aAngleTo - ending angle. if aAngleFrom=aAngleTo, it will draw a circle;aSolid - true - filled circle/ellipse.

Fill(int aX, int aY, int aColor) - Fills the area.aX, aY - coordinates of the fill area;aColor - fill color.

TypeText(int aX, int aY, int aColor) - Prints text on the image.aX, aY - coordinates of the left upper corner of the text;aColor - text color.

Save(string aFileName, bool aToImages=true) - saves the created image to file.aFileName - File name (it isn't necessary to specify the extension) ;aToImages - file will be saved to the MQL5\Images\ folder, overwise it will be saved to the MQL5\Files\ folder.

Show(int aX, int aY, string aBMPFileName, string aObjectName) - Shows the image on the chart.aX, aY - coodinates;aBMPFileName - file name of the image;aObjectName - graphic object of OBJ_BITMAP_LABEL type.

Hide(string aObjectName) - Deletes graphic object with the specified name.aObjectName - name of the object to delete.

Delete(string aFileName, bool aFromImages=true) - Deletes a file.aFileName - Name of the bmp file to delete (without path, it isn't necessary to specify the extension);aFromImages - if true, the file will be deleted from MQL5\Images\ folder, overwise it will be deleted from MQL5\Files\ folder.

You may also like: Institutional Kelly-VA P S Risk Engine (Library) - excellent alternative for library users on MetaTrader 5.


Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
RobotFX does not own any of the code provided on this platform. All tools are freely available on the internet; we simply index and re-offer them for download. We are not responsible for any financial losses that may occur. Trading responsibilities rely solely on the traders downloading and using the displayed Expert Advisors, indicators, and scripts. These tools are provided for educational purposes only and may require modification or optimization to align with a trader's specific strategy or needs.
© ROBOTFX - Best MetaTrader Expert Advisors & Indicators