Discussion of article "Developing a trading Expert Advisor from scratch (Part 19): New order system (II)"
ATFX gold foreign exchange platform recruiting agents
ATFX free to open personal/company agents, exclusive agent background, commission is returned. UK FCA full licence foreign exchange brokers recruiting agents
Advantage] 12 foreign offices in 11 countries around the world, across Europe, America, Africa and Asia.
[Advantage] platform stability, top liquidity offer. STP mode, a number of well-known liquidity provider LP offer, fast turnover, not chucking not dropped, not slippage, hedging, dial scalp, second single, EA, etc. without any trading restrictions.
Advantage] UK FCA top foreign exchange licence, Cyprus stp licence. Mauritius financial licence, Abu Dhabi foreign exchange licence, St. Vincent foreign exchange financial licence and other multiple regulation. Capital security, the regular platform to support long-term large capital profit out of the gold.
[Advantage] fast and safe a variety of public access to money: wire transfer, UnionPay, public, Alipay, WeChat and so on.
[Advantage] variety of full: foreign exchange, gold, crude oil, index, U.S. stocks, Hong Kong stocks and other 200 kinds of trading varieties
[Advantage] ultra-low spread gold 0.35, Europe and the United States 0.18. base commission gold / index / crude oil / per hand 14/15/16 U.S. dollars per hand; foreign exchange 8/9/10 U.S. dollars per hand. mt4 operation
ATFX agent consulting: 85292029084 (WeChat) QQ: 1171513819 WeChat: AT5050

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
New article Developing a trading Expert Advisor from scratch (Part 19): New order system (II) has been published:
In this article, we will develop a graphical order system of the "look what happens" type. Please note that we are not starting from scratch this time, but we will modify the existing system by adding more objects and events on the chart of the asset we are trading.
If you think that this is not easy to implement, take a look at the following code part of the C_HLineTrade class:
The highlighted part shows exactly that we can create as many horizontal lines as we want, and they will receive events in a completely independent way. All we need to do is to implement events based on the name that each of the lines will have, since the names will be unique. The MetaTrader 5 platform will take care of the rest. The result will look something like this:
Although this already seems like something ideal, this modeling will not be enough to achieve the result we really need. The idea can be implemented. But the data modeling currently available in the EA is not ideal, because we cannot have an unlimited number of objects based on one name. We need to make some changes that require a fairly deep code modification.
Author: Daniel Jose