文章 "DoEasy 函数库中的时间序列(第五十四部分):抽象基准指标类的衍生"

 

新文章 DoEasy 函数库中的时间序列(第五十四部分):抽象基准指标类的衍生已发布:

本文研究基于基准抽象指标衍生对象类的创建。 这些对象所提供功能,可访问创建的指标 EA,收集和获取各种指标和价格数据的数值统计信息。 同样,创建指标对象集合,从中可以访问程序中创建的每个指标的属性和数据。

为了进行测试,我们需要上一篇文章中的指标,且无需进行任何修改。
简单地将其保存在新文件夹 \MQL5\Indicators\TestDoEasy\Part54\ 之下,新名称为 TestDoEasyPart54.mq5

编译指标,并在图表上启动它。
在日志中将显示以下内容: all parameters of created indicator Accelerator Oscillator in full , and then its short description:

Account 8550475: Artyom Trishkin (MetaQuotes Software Corp.) 10425.23 USD, 1:100, Hedge, Demo account MetaTrader 5
--- Initializing "DoEasy" library ---
Working with the current symbol only. Number of used symbols: 1
"EURUSD"
Working with the specified timeframe list:
"H4" "H1"
EURUSD symbol timeseries: 
- "EURUSD" H1 timeseries: Requested: 1000, Actually: 0, Created: 0, On the server: 0
- "EURUSD" H4 timeseries: Requested: 1000, Actually: 1000, Created: 1000, On the server: 6231
Time of library initializing: 00:00:00.156
 
============= Beginning of the parameter list: "Standard indicator" =============
Indicator status: Standard indicator
Indicator type: AC
Indicator timeframe: H4
Indicator handle: 10
Indicator group: Oscillator 
------
Empty value for plotting where nothing will be drawn: EMPTY_VALUE
------
Indicator symbol: EURUSD
Indicator name: "Accelerator Oscillator"
Indicator short name: "AC(EURUSD,H4)"
================== End of the parameter list: "Standard indicator" ==================
 
Standard indicator Accelerator Oscillator EURUSD H4
Buffer (P0/B0/C1): Histogram from zero line EURUSD H4
Buffer [P0/B2/C2]: Calculated buffer
"EURUSD" H1 timeseries created successfully:
- "EURUSD" H1 timeseries: Requested: 1000, Actually: 1000, Created: 1000, On the server: 6256


作者:Artyom Trishkin

 
您好 - 是否可以使用库创建 CUSTOM 类型的指标
 
Dima Diall:
您好 - 是否可以使用库创建 自定义 类型的指标

当然可以。

 
Artyom Trishkin:

是的,当然。

能给我举个例子吗?

 
Dima Diall:

您能举例说明吗?

从第 40 条起
 
Artyom Trishkin:
从第 40 条开始

为什么这么少?必须从第一条开始。否则可能会产生误解。

 
Alexey Viktorov:

为什么这么少?你必须从第一个开始。否则,可能会产生误解。

这个人把整个图书馆都研究透了。不像你,我的朋友)。

 
Artyom Trishkin:
从第 40 条开始

也许我理解错了,但现在 我不想使用 DoEasy 库编写自己的指标(从第 40 条开始)...我的意思是创建一个指标对象(如第 53-55 条所示),加载一个 IND_CUSTOM 类型的现有指标,例如Indicators/ZigZag.mq4Indicators/Examples/ZigZag.mq5;甚至是 https://www.mql5.com/en/code/mt4/indicators或 https://www.mql5.com/en/code/mt5/indicators 的任何指标

MQL5 Code Base: Indicators
MQL5 Code Base: Indicators
  • www.mql5.com
This indicator shows the amount of price movement within a certain time, compared to the actual price movement range. Good to detect consolidation areas, as well as new trends being formed If you can't watch your statistics and your game plan at all time, your emotions will take control and you will start taking ENTRIES such as revenge trade...
 
Dima Diall:

也许我理解错了,但现在 我不想使用 DoEasy 库编写自己的指标(从第 40 条开始)...我的意思是创建一个指标对象(如第 53-55 条所示),加载 IND_CUSTOM 类型的现有指标,例如Indicators/ZigZag.mq4Indicators/Examples/ZigZag.mq5;甚至是 https://www.mql5.com/en/code/mt4/indicators或 https://www.mql5.com/en/code/mt5/indicators 的任何指标

罗杰是的,将在下一篇文章(#56)中介绍。