거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

Class СBmpButtonTransparent - MetaTrader 5용 라이브러리

조회수:
3940
평가:
(24)
게시됨:
2015.04.10 15:45
업데이트됨:
2016.11.22 07:32
MQL5.zip (114.03 KB)
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The class and examples were developed for a competition arranged by TheXpert.

This class allows to handle the cursor hover and pressing the free form button.

The button is implemented using the standard OBJ_BITMAP_LABEL object. Images should be set for four button states (normal, hovered, pressed, hovered pressed). The button shape is determined by analyzing the default state image (normal button). A set of free form regions on an image with non-zero transparency is treated as a button. The button shape can be as complex as possible. The implementation works correctly for any anchor corner (OBJPROP_CORNER) and any chart subwindow.

Standard Library is required for compilation.

The archive contains the button class and 3 examples:

  1. Buttons on a chart without a dialog box. You can set the anchor corner and the 1st point coordinates in the settings.
  2. Buttons in an Expert Advisor dialog box.
  3. Buttons in an indicator dialog box.

Video:

Tips:

  • The library is not limited to pressed buttons (as in the video). You can set the button type using the Locking() function.
  • Transparency threshold used - 250.
  • The library works with BMP images in 32-bit format (A8 R8 G8 B8). The image should be loaded as a resource (see examples).

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/12638

A class for working with free form buttons A class for working with free form buttons

This class is designed for creating interactive buttons with various states on a price chart.

Ozymandias_HTF Ozymandias_HTF

The Ozymandias indicator with the timeframe selection option available in the input parameters.

Risk Manager Risk Manager

The Expert Advisor controls and limits the overall loss for the account, and the loss for every deal. It includes Trailing Stop for the account.

ForexProfitBoost_2nb_HTF_Signal ForexProfitBoost_2nb_HTF_Signal

The indicator shows the trend direction or the signal based on the ForexProfitBoost_2nbSign indicator.