Discussion of article "Library for easy and quick development of MetaTrader programs (part XIV): Symbol object"

 

New article Library for easy and quick development of MetaTrader programs (part XIV): Symbol object has been published:

In this article, we will create the class of a symbol object that is to be the basic object for creating the symbol collection. The class will allow us to obtain data on the necessary symbols for their further analysis and comparison.

Launch the EA on a symbol chart in MetaTrader 5.
All symbol object properties are sent to the journal:

Account 18222304: Artyom Trishkin (MetaQuotes Software Corp. 10000.00 RUR, 1:100, Demo account MetaTrader 5)
============= Beginning of the parameter list:: "EURUSD" (Euro vs US Dollar) ==================
Status: Forex symbol
Custom symbol: No
The price type used for generating bars: Bars are based on Bid prices
The symbol under this name exists: Yes
The symbol is selected in Market Watch: Yes
The symbol is displayed in Market Watch: Yes
The number of deals in the current session: 0
The total number of Buy orders at the moment: 0
The total number of Sell orders at the moment: 0
Last deal volume: 0
Maximum volume within a day: 0
Minimum volume within a day: 0
Latest quote time: 2019.06.17 15:37:13.016
Number of decimal places: 5
Number of decimal places for a lot: 2
Spread in points: 10
Floating spread: Yes
Maximum number of orders displayed in the Depth of Market: 10
Contract price calculation method: Forex mode
Order execution type: No trade restrictions
Symbol trading start date: (Not set)
Symbol trading end date: (Not set)
Minimum distance in points from the current close price for setting Stop orders: 0
Freeze distance for trading operations: 0
Deal execution mode: Instant execution
Swap calculation model: Swaps are charged in points
Triple-day swap: Wednesday
Calculating hedging margin using the larger leg: No
Flags of allowed order expiration modes: 
 - Unlimited (Yes)
 - Valid till the end of the day (Yes)
 - Time is specified in the order (Yes)
 - Date is specified in the order (Yes)
Flags of allowed order filling modes: 
 - Return (Yes)
 - Fill or Kill (Yes)
 - Immediate or Cancel (No)
The flags of allowed order types: 
 - Market order (Yes)
 - Limit order (Yes)
 - Stop order (Yes)
 - Stop limit order (Yes)
 - StopLoss (Yes)
 - TakeProfit (Yes)
 - CloseBy order (Yes)
StopLoss and TakeProfit orders lifetime: Pending orders and Stop Loss/Take Profit levels are valid for an unlimited period until their explicit cancellation
Option type: European option may only be exercised on a specified date
Option right: A call option gives you the right to buy an asset at a specified price
Background color of the symbol in Market Watch: (Not set)

Author: Artyom Trishkin

 
"A library for easy and fast programme creation" ... . well... well...
 
Dmitrii Troshin:
"A library for easy and fast programme creation" ... . Well... well... well...

What's wrong with that? At the moment, the creation of the library is described, not a quick and easy way to create programmes with it. Everything will be.

Before one person can get quick and convenient access to any data, someone else must first work hard and organise the availability and accessibility of all the required data. Or do you disagree with this statement?

 

I may be wrong, of course, because I'm not the first instance.

but in my opinion because of the fact that the cycle of articles by its volume is already catching up with the famous work of L.Tolstoy it is absolutely impossible to find in the articles ready implementation by search.

As an example, I decided to check my order volume normalisation function with those described in the article = search by author's message does not process the text of the article, I opened 3 articles selectively through browser search (Ctrl + F) and could not find them.



ZY: how to use this? - does anyone have any suggestions? - selectively to me a part of the ready material would be useful, to read all articles completely, imho, only in printed version is possible, so that there was a place to put pencil markings

 
Artyom Trishkin:

What's wrong with that? At the moment the creation of a library is described, not a quick and easy way to create programmes with it. It will be.

Before one person can get quick and convenient access to any data, someone else has to work hard to organise the availability and accessibility of all the required data. Or do you disagree with this statement?

It reminds me of a cartoon why the lion has a big mane. It turns out that on the fifteenth article the haircut has just begun :)

 
Dmitrii Troshin:

This reminds me of the cartoon why the lion has a big mane. Turns out on the fifteenth article the haircut has just been started :)


Well, you didn't read it. Then you just don't understand the whole idea of this series. This is a large training material, touching on many aspects of information required in different situations.
And in the end it will be a very simple access to ready-made data in the style of "ask - get".
Yes, it's a lot of material, and a lot of hard work. Is that a reason for irony and sarcasm?
 
Igor Makanu:

I could be wrong, of course, because I'm not the first instance.

but in my opinion because of the fact that the cycle of articles in its volume is already catching up with the famous work of L.Tolstoy it is absolutely impossible to find in the articles ready realisation by search

as an example, I decided to check my order volume normalisation function with the ones described in the article = search by the author's message does not process the text of the article, I opened 3 articles selectively through browser search (Ctrl + F) and could not find them.



ZY: how to use this? - does anyone have any suggestions? - It would be useful for me to selectively read a part of the ready material, to read all articles completely, imho, only in printed version is possible, so that there would be a place to put pencil notes.

I find by Ctrl+F, but I run through all articles.
And in the code it doesn't search that way.
But it's in DELib.mqh.
True, the function is not without flaws.
 
Igor Makanu:

I could be wrong, of course, because I'm not the first instance.

but in my opinion because of the fact that the cycle of articles in its volume is already catching up with the famous work of Leo Tolstoy it is absolutely impossible to find in the articles ready realisation by search


Upon completion there will be full reference information with examples. On the principle of SB help
 
Artyom Trishkin:
Upon completion, there will definitely be a complete reference with examples. On the principle of the SB reference

without such a reference your series of articles is of no practical use, imho

 
Igor Makanu:

Without such a reference, your series of articles is of no practical use, imho

Those who are interested and who need it are already asking questions. Unfortunately, most of them ask questions in private and Skype. No matter how much you ask them to ask questions in the discussion, they still knock on my contacts.
And the help and examples were planned right away - without them work is not work. I don't like to abandon what I've started, and I don't like hackwork either.
 

Artyom Trishkin:
Кто заинтересован, и кому нужно, те уже задают вопросы. Правда по большей части в личке и скайпе к сожалению. Сколь ни проси задавать вопросы в обсуждении - всё равно в контакты стучатся.

...

You - moderators, should seriously think about this interesting phenomenon - why do people avoid the forum?