ZhiJun Zhang / Profile
- Information
|
10+ years
experience
|
0
products
|
0
demo versions
|
|
0
jobs
|
0
signals
|
0
subscribers
|
About me
ZhiJun Zhang
shared author's MetaQuotes code
MQL5 Wizard - Trade Signals Based on Morning/Evening Stars + MFI
Trade signals based on "Morning Star/Evening Star" candlestick patterns, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.
ZhiJun Zhang
shared author's MetaQuotes code
MQL5 Wizard - Trade Signals Based on 3 Black Crows/3 White Soldiers + MFI
Trade signals based on "3 Black Crows/3 White Soldiers" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.
ZhiJun Zhang
shared author's Serhii Ivanenko code
Profit Loss Calculator
Calculator-panel to calculate profit/loss. Data is calculated either when moving lines, or changing the parameters in input fields of the entry price, lot, profit or loss in pips or in deposit currency
ZhiJun Zhang
面向对象的程序设计
面向对象的程序设计(OOP)主要是针对数据或者与数据密不可分行文的程序设计。数据和行为合起来称为类,对象就是类的实例。
面向对象处理组件:
•类型封装和扩展性
•继承机制
•多态性
•重载
•虚拟函数
OOP把计算当成行为建模。模型项是抽象计算代表的对象。假设我们想编写一个著名的游戏"Tetris"。我们必须学习如何用四个正方形随机组成的图形来建模。我们还需要调节图形下降的速度,定义图形旋转变换的操作。屏幕上图形移动受文档对象模型边框限制,这也需要建模。此外,消除填满的行,然后获得相应的得分。
因此,这个简单易懂的游戏需要创建几个模型-图形模型,文档对象模型,移动模型等等。所有这些模型都是抽象的,通过电脑运算表示。描述这些模型,抽象数据类型ADT(或者复杂数据类型)概念被使用。严格说来,DOM中“图形”运动模型并不是数据类型,但是它是使用“DOM”数据类型限制条件,“图形”数据类型全部操作。
对象是类变量。面向对象的程序设计允许您轻松创建使用ADT。面向对象程序设计使用继承机制。其优势是允许从用户已经定义的数据类型中获得衍生类型。
例如,创建俄罗斯方块图形,首先创建一个基本类图形很方便;代表所有可能图形的其他七个类可以从基本图形衍生出来。图形行为在基本类中就确定了,而执行每个独立图形的行为在衍生类中定义。
在OOP中对象对其行为负责。ADT开发人员包括描述相关对象期望的行为代码。实际上,对象对其行为负责,显著简化了对象用户程序设计的任务。
如果我们想要在屏幕上画一个图,我们需要知道中心点在哪里,以及如何画它们。如果独立的图形知道如何画自己,当使用这个图形时程序员可以发送“draw”消息。
MQL5语言类似于C++,也有ADT的封装机制。一方面,封装与内部特殊类型结合,另一方面,也与影响这类型对象的可接入外部函数连结。执行细节对于使用这个类型的程序很难达到。
OOP概念有一系列相关概念,包括以下内容:
•模拟真实世界操作
•用户定义数据类型的有效性
•隐藏执行细节
•通过继承机制重新使用代码的可能性
•执行期解释调用函数
一些概念非常不明确,有一些很抽象,另一些又很大众化。
面向对象的程序设计(OOP)主要是针对数据或者与数据密不可分行文的程序设计。数据和行为合起来称为类,对象就是类的实例。
面向对象处理组件:
•类型封装和扩展性
•继承机制
•多态性
•重载
•虚拟函数
OOP把计算当成行为建模。模型项是抽象计算代表的对象。假设我们想编写一个著名的游戏"Tetris"。我们必须学习如何用四个正方形随机组成的图形来建模。我们还需要调节图形下降的速度,定义图形旋转变换的操作。屏幕上图形移动受文档对象模型边框限制,这也需要建模。此外,消除填满的行,然后获得相应的得分。
因此,这个简单易懂的游戏需要创建几个模型-图形模型,文档对象模型,移动模型等等。所有这些模型都是抽象的,通过电脑运算表示。描述这些模型,抽象数据类型ADT(或者复杂数据类型)概念被使用。严格说来,DOM中“图形”运动模型并不是数据类型,但是它是使用“DOM”数据类型限制条件,“图形”数据类型全部操作。
对象是类变量。面向对象的程序设计允许您轻松创建使用ADT。面向对象程序设计使用继承机制。其优势是允许从用户已经定义的数据类型中获得衍生类型。
例如,创建俄罗斯方块图形,首先创建一个基本类图形很方便;代表所有可能图形的其他七个类可以从基本图形衍生出来。图形行为在基本类中就确定了,而执行每个独立图形的行为在衍生类中定义。
在OOP中对象对其行为负责。ADT开发人员包括描述相关对象期望的行为代码。实际上,对象对其行为负责,显著简化了对象用户程序设计的任务。
如果我们想要在屏幕上画一个图,我们需要知道中心点在哪里,以及如何画它们。如果独立的图形知道如何画自己,当使用这个图形时程序员可以发送“draw”消息。
MQL5语言类似于C++,也有ADT的封装机制。一方面,封装与内部特殊类型结合,另一方面,也与影响这类型对象的可接入外部函数连结。执行细节对于使用这个类型的程序很难达到。
OOP概念有一系列相关概念,包括以下内容:
•模拟真实世界操作
•用户定义数据类型的有效性
•隐藏执行细节
•通过继承机制重新使用代码的可能性
•执行期解释调用函数
一些概念非常不明确,有一些很抽象,另一些又很大众化。
ZhiJun Zhang
shared author's Serhii Ivanenko code
AutoTrendLines
The indicator automatically identifies points and draws support and resistance trend lines on them. There are two types of lines calculation
ZhiJun Zhang
shared author's ak20 ak20 code
MACD Histogram, multi-color [v04]
MACD indicator with MACD line, Signal line and multi-color histogram.
ZhiJun Zhang
shared author's Ahmed Soliman code
Auto Fibonacci Indicator (Auto Fibos)
There's a lot of Fibonacci indicators out there but I decided to make my own indicator for you.
ZhiJun Zhang
shared author's Nikolay Kositsin code
GetLotForOpeningPos
The function that calculates the lot size depending on the amount of money in the deposit currency being used.
ZhiJun Zhang
shared author's Aleksey Sergan code
Module of Trade Signals, based on Chande Momentum Oscillator
Crossover of overbought/oversold levels of Chande Momentum Oscillator is used as a signal to open positions.
ZhiJun Zhang
shared author's Nikolay Kositsin code
OpenSellPosition
The script is developed for selling with fixed Stop Loss and Take Profit values in points from the current price.
ZhiJun Zhang
shared author's Nikolay Kositsin code
SetBuyStopOrder
The script is developed for placing a BuyStop order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price.
ZhiJun Zhang
shared author's Iurii Tokman code
ytg_Percent_Lot
The script calculates the number of lots to trade using the specified percentage of risk funds.
ZhiJun Zhang
shared author's Nikolay Kositsin code
SetSellLimitOrder
The script is developed for placing a SellLimit order with fixed actuation levels, Stop Loss and Take Profit levels in points from the current price.
ZhiJun Zhang
shared author's Serhii Ivanenko code
Limit Stop Order Script
The script for manual trade: when achieving the limit price the script sets stop order and logs out
ZhiJun Zhang
shared author's MetaQuotes article
MetaQuotes ID in MetaTrader Mobile Terminal
Android and iOS powered devices offer us many features we do not even know about. One of these features is push notifications allowing us to receive personal messages, regardless of our phone number or mobile network operator. MetaTrader mobile terminal already can receive such messages right from your trading robot. You should only know MetaQuotes ID of your device. More than 9 000 000 mobile terminals have already received it.
: