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

An abstract trading robot, an OOP pattern - MetaTrader 5용 expert

조회수:
7097
평가:
(32)
게시됨:
2018.01.22 09:19
pattern.mq5 (22.92 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

When creating an automated trading system, developers often face the problem of choosing from a number of possible solutions. Patterns would be very useful in such cases. Almost certainly, such problems have already been solved earlier, and there are well thought out elegant solutions implemented by programmers from the expert community.

Designing object oriented programs is not an easy task, which becomes even more complicated when you need to reuse these solutions. It is necessary to select suitable objects, arrange them in appropriate classes with a reasonable degree of detailing, define class interfaces and inheritance hierarchy, etc.

What do experienced programmers do to solve this task?

First of all, every new problem should not be solved from scratch. It's better to use solutions, which have proven to be successful in the past. Many object oriented Expert Advisors contain similar patterns consisting of classes and interacting objects. Those trading robot developers, who use patterns, can instantly apply the patterns to implement a new task, without having to "reinvent the wheel".

The proposed template can be used for creating a real Expert Advisor, not an abstract one.

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

eaBreakeven eaBreakeven

The expert advisor moves stop loss of position at user-defined breakeven.

CDouble & CDoubleVector CDouble & CDoubleVector

A library for common rounding methods used in MQL development, primitive wrapper class for type (double), and vector for CDouble objects. MQL5 and MQL4 compatible!

MACD Crossing the zero level MACD Crossing the zero level

Displays areas, in which the MACD indicator crosses the zero line.

MACD Crossing the zero level (color candles) MACD Crossing the zero level (color candles)

Color candlesticks display areas, in which the MACD indicator crosses the zero line.