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

ShowTradeLines Service - service for MetaTrader 5

조회수:
413
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The service provides more descriptive and intuitive representation of open positions and related deals on charts than it's offered by the terminal by default. Specifically you can see the time(s) and price(s) of opening trade and optionally other deals, such as partial close or adding volume to a position in a netting account.

The service monitors account state for open positions and creates graphical objects on an active chart (shown on top or maximized) if its symbol corresponds to at least one of existing positions.

Inputs

  • TimeInterval (seconds) - 5 by default;
  • LinePrefix - common prefix for on chart objects, such as "TradeTag";
  • LineColorProfit - color for lines of profitable positions (clrDodgerBlue);
  • LineColorLoss - color for lines of lossy positions (clrCoral);
  • LineStyle - drawing style of lines (STYLE_DASHDOT);
  • LineWidth - width of lines (1);
  • LineType - type of lines - OBJ_TREND (default) or OBJ_VLINE;
  • ShowDeals - option to show arrows for deals (true);
  • KeepLinesOnCharts - option to keep graphical objects on chart after position is closed (false);
  • Logging - output or not main events to log (true);

The service registers all objects added on chart in the list of the global variables. This helps the program to detect which objects to remove when a position is closed and KeepLinesOnCharts is false. If KeepLinesOnCharts is true, the service keeps corresponding objects on charts (they are left for manual control by user), but in any case the relevant global variables (describing closed positions and their deals) are removed upon position closure.

Graphical objects for open position and its deals

All objects receive textual descriptions with most important properties of positions and deals, which can be seen in tooltips (on mouse hover) and right on the chart (if corresponding option is enabled in the chart's settings).

Сode that records balance and equity charts and calculates additional optimization criteria Сode that records balance and equity charts and calculates additional optimization criteria

If you have access to the Expert Advisor code, you can save balance and equity charts and calculate additional optimization criteria by adding additional code from this library.

Binary tradng based on candle colors Binary tradng based on candle colors

A simple binary trading strategy that counts candle colors.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.