Reshetov: I see. You have ArraySetSeries() applied to arrays without data, i.e. before information has been loaded into them, while we need it after copying buffers.
Exactly.
But I think it will be easier for everyone if it is done in CopyBuffer - i.e. you specify which pair and frame.
The indicator itself makes the same calculation, if only it specifies which pair and frame.
If the architecture of MT5 itself allows easier to do it.
Reshetov: I see. You have ArraySetSeries() applied to arrays without data, i.e. before information has been loaded into them, while you want it after copying buffers.
i have kind of configured everything, signed everything, made settings in the terminal, but i do not want to trade automatically. when i try to place a pending order, it installs and writes to me about synchronization and delete all orders in the terminal, and then i see orders from the supplier. what do i need to do?
If the Expert Advisor uses MFI, then its code must contain a line with getting the handle of this indicator:"MQL5 Reference / Technical Indicators / iMFI ". Accordingly, getting a handle on the moving average indicator is described here:"MQL5 Reference Guide / Technical Indicators / iMA ".
I have read the article. However, it did not answer my question "How can I remove iMA handles located in MFI indicator window and registering bar close price?".
The iMA handle you mentioned does not apply to the iMA located in the indicator window. Description by the standard method the advisor removes the iMA handle from the chart.
Leser: Read the article. However, it did not answer my question "How do I remove the handles of the iMA located in the MFI indicator window and registering the bar closing price?"
Therefore, I suggest to begin with figuring out how exactly your Expert Advisor gets indicator handle from "window #2". And we will think out something there.
Leser: I have read the article. However, it does not answer my question ". iMA located in the window of MFI indicator and registering the bar closing price".
A clarifying question: on what data do you build the MA indicator: on the values of the MFI indicator or on bar closing prices? Nothing has been said before about "registering bar closing prices". That's why I provided a link to the article "Indicator from Indicator".
Hi,
Of course not.
If there's more than one turkey, you have to do as many pairs for each one as it eats.
One handler to use all pairs.
Use a handle one by one, i.e. copy the indicator buffers and then assign the value of the next indicator to the handle.
But I don't understand why you need to save on handles when they are elementary integers and have almost no effect on resources?
Use the handles one by one, i.e. copy the indicator buffers and then assign the value of the next indicator to the handle.
But I don't understand why you need to save on handles when they are elementary integers and have practically no effect on resources?
Hi there.
Last year I wrote an external function like this:
Of course, until it made calculations it gave error 4806, but then it works fine.
Today I opened this code and wondered if there is another way.
An error is an error.
How many Handles should I get for 8 pairs and 5 timeframes?
This is not a question for resources, I have to do something better.
Hi there.
Last year I wrote an external function like this:
Of course, until it did the calculations, it gave error 4806, but then it works fine.
I opened this code today and wondered if there is another way.
Remove this very function from your code and sleep well.
Remove this very function from your code and sleep well.
There are some "great" calculations that are not shown.
Then other functions take the selected pair and do something again.
The method is simple.
For example:
We make a handle of the indicator, it has no symbol, timeframe.
When we create a CopyBuffer, we indicate the timeframe and pair.
For example:
int OnInit()
It looks like this: Handle = indicator name
void OnTick()
It would look like this: CopyBuffer(specified symbol, timeframe, where from we copy it, how much we copy it, where we copy it)
This is just a dialogue :) with you.
There are some "great" calculations that haven't been shown.
I see. You have ArraySetSeries() applied to arrays without data, i.e. before information has been loaded into them, while we need it after copying buffers.
Exactly.
But I think it will be easier for everyone if it is done in CopyBuffer - i.e. you specify which pair and frame.
The indicator itself makes the same calculation, if only it specifies which pair and frame.
If the architecture of MT5 itself allows easier to do it.
Good idea :) .
I see. You have ArraySetSeries() applied to arrays without data, i.e. before information has been loaded into them, while you want it after copying buffers.
If the Expert Advisor uses MFI, then its code must contain a line with getting the handle of this indicator:"MQL5 Reference / Technical Indicators / iMFI ". Accordingly, getting a handle on the moving average indicator is described here:"MQL5 Reference Guide / Technical Indicators / iMA ".
Try also to read the article"Indicator by indicator in MQL5".
The iMA handle you mentioned does not apply to the iMA located in the indicator window. Description by the standard method the advisor removes the iMA handle from the chart.
You originally outlined the problem as follows: "The Expert Advisor uses MFI; Ma is not on the chart (window #1), but in the window with the MFI indicator (window #2)". I replied:"If your Expert Advisor uses MFI, then its code must contain a line with getting handle of this indicator: "MQL5 Reference Guide / Technical Indicators / iMFI" .
Therefore, I suggest to begin with figuring out how exactly your Expert Advisor gets indicator handle from "window #2". And we will think out something there.