Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1364
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
Can you please tell me how to declare an array in a class in order to pull it out in an EA?
What for? What are the possibilities?
When you create an array for"intermediate calculations" of an indicator, you may create it and make everything work, or you may specify the INDICATOR_CALCULATION property.
What for? What are the possibilities?
If you have connected a dynamic array with an indicator buffer, the terminal will allocate memory for this array and the size of this array will be equal to the number of bars in a chart
this applies to both indicator buffers INDICATOR_DATA used for drawing and INDICATOR_CALCULATIONS - auxiliary buffers for calculations
If you have connected a dynamic array with an indicator buffer, the terminal will allocate memory for this array and the size of this array will be equal to the number of bars in a chart
this applies to both indicator buffers INDICATOR_DATA used for drawing and INDICATOR_CALCULATIONS - auxiliary buffers for calculations
I didn't find anything suitable in ENUM_CHART_PROPERTY_INTEGER
or I will ask a wider question. How to correctly fix the position of an object in the chart window (e.g. "centered") without linking it to the chart itself?
Is it to bind the sizes of graphical objects to the scale?
If yes, in what units and how to specify the object sizes.
In general, how to link drawing objects to the scale of the graphic?
A graphical object has to be fixed at a specific location on the graph window. For example a square in the bottom left corner. There is CHART_PRICE_MIN to define coordinate by Y, but how to define minimal time by X?
I didn't find anything suitable in ENUM_CHART_PROPERTY_INTEGER
or I will ask a wider question. How to correctly fix the position of an object in the chart window (e.g. "centered") without linking it to the chart itself?
There is a CHART_SCALEFIX_11 "1:1 scale mode" graph property and it is not disclosed what it is for and how to use it.
Is it to bind the sizes of graphical objects to the scale?
If yes, in what units and how to specify the object sizes.
In general, how to associate drawing objects with the map scale correctly?
It is necessary to fix the graphical object in a certain place of the chart window. For example, a square in the lower left corner. There is CHART_PRICE_MIN for Y coordinate but how can I know the minimum time by X?
I didn't find anything suitable in ENUM_CHART_PROPERTY_INTEGER
or I will ask a wider question. How to correctly fix the position of an object in the chart window (e.g. "centered") without linking it to the chart itself?
CHART_FIRST_VISIBLE_BAR
Number of the first visible bar on the chart. The indexing of the bars corresponds to the time series.
int r/o
But not all objects can be bound in this way.