Discussion of article "Timeseries in DoEasy library (part 54): Descendant classes of abstract base indicator"

 

New article Timeseries in DoEasy library (part 54): Descendant classes of abstract base indicator has been published:

The article considers creation of classes of descendant objects of base abstract indicator. Such objects will provide access to features of creating indicator EAs, collecting and getting data value statistics of various indicators and prices. Also, create indicator object collection from which getting access to properties and data of each indicator created in the program will be possible.

For testing we need the indicator from the previous article without any changes.
Simply save it in a new folder \MQL5\Indicators\TestDoEasy\Part54\ under a new name TestDoEasyPart54.mq5.

Compile the indicator and launch it on the chart.
The following will be displayed in the journal: 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

Author: Artyom Trishkin

 
Hi - is it possible to create CUSTOM type indicators with a library?
 
Dima Diall:
Hi - is it possible to create CUSTOM type indicators with a library?

Yes, of course.

 
Artyom Trishkin:

Yes, of course.

Could you show me an example?

 
Dima Diall:

Could you please show an example?

From article 40 onwards
 
Artyom Trishkin:
From Article 40 onwards

Why so little? You have to start from the first one. Otherwise there may be misunderstandings.

 
Alexey Viktorov:

Why so little? You have to start from the first one. Otherwise, there may be misunderstandings.

This man has studied the entire library thoroughly. Unlike you, my friend.)

 
Artyom Trishkin:
From article 40 onwards

Maybe I misunderstood, but for now I don't want to write my own indicator using the DoEasy library (from article 40 onwards)... I meant creating an indicator object (as shown in articles 53-55) that loads an existing indicator of IND_CUSTOM type, for example Indicators/ZigZag.mq4 or Indicators/Examples/ZigZag.mq5; or even any indicator available at https://www.mql5.com/en/code/mt4/indicators or 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:

Maybe I misunderstood, but for now I don't want to write my own indicator using DoEasy library (starting from article 40)... I meant creating an indicator object (as shown in articles 53-55) that loads an existing indicator of IND_CUSTOM type, for example Indicators/ZigZag.mq4 or Indicators/Examples/ZigZag.mq5; or even any indicator available at https://www.mql5.com/en/code/mt4/indicators or https://www.mql5.com/en/code/mt5/indicators.

Roger. Yes, it will be in the next article (#56).