
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
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.