savinkins: I thought that the problem is known, so they will tell you. But thanks for the advice. Here is the file.The problem is not only well-known, but also well-known Forum on trading, automated trading systems and testing of trading strategies The requested data was not found. Alexey Viktorov,Read more
savinkins: I thought that the problem is known, so they will tell you. But thanks for the advice. Here is the file.
The problem is not only well-known, but also well-known
Forum on trading, automated trading systems and testing of trading strategies
The requested data was not found.
Alexey Viktorov, 2017.07.08 10:39
The question was raised back in September 2016, but nothing was fixed or I could not find a solution to the problem?
For some reason, this problem does not occur in the Expert Advisor, and in the indicator it is not possible to request the data of the period indicator that does not correspond to the current one. And the answer to this post also could not be found for a reason… I’d rather not say anything.
Please help me. Maybe someone knows where there is an answer, or they will answer more specifically
Task: to get the values of the fractals of the period H1 when the indicator is launched on the period M5.
investr777: Good afternoon. Tell me how to translate: There are also such functions in mql4 as Bid, Ask, and Time.And this is it: Please help me!All information in the documentation Obtaining market information. Functions such as SymbolInfoInteger() SymbolInfoDouble () and others.The opening time ofRead more
investr777:
Good afternoon. Tell me how to translate:
There are also such functions in mql4 as Bid, Ask, and Time.
And this is it:
Please help me!
All information in the documentation Obtaining market information. Functions such as SymbolInfoInteger() SymbolInfoDouble () and others.
The opening time of the bar and other parameters can be found in the sectionAccess to timeseries and indicators
Alena Lysenkova: Oh, Russell's teapot, another one.The person raised the topic, probably he needs an answer. The topic can be Googled by others who will need an answer. The last thing they want is to see your toxic attacks there instead of a response.Is it not fate to think of it yourself? Oh, my deRead more
Alena Lysenkova:
Oh, Russell’s teapot, another one. The person raised the topic, probably he needs an answer. The topic can be Googled by others who will need an answer. The last thing they want is to see your toxic attacks there instead of a response. Is it not fate to think of it yourself?
Oh, my dear, the person raised the topic far from getting an answer, but in order to show off his dull mind and offend someone a little. Read what is written before making conclusions. And I do not recommend EVERYONE to use an enemy search engine, despite its successful expression in the Russian language. Good luck finding the answers, but through good search engines.
gedd: Tell me in what direction at least to think. I need the values of the indicators at specific points in the date/time, more precisely with a pre-defined interval.In MQL5, working with timeseries is organized in the form of arrays. But... for example, within one minute there can be 2 ticks and 2Read more
gedd:
Tell me in what direction at least to think. I need the values of the indicators at specific points in the date/time, more precisely with a pre-defined interval.
In MQL5, working with timeseries is organized in the form of arrays. But… for example, within one minute there can be 2 ticks and 2000 ticks. I am more interested in the value of indicators at the time of opening or closing the bar,
but even more precisely, just with a pre-set constant interval. That is, it is necessary to somehow convert the current date/time to an array index, probably?
In general, how to get the indicator value depending on a specific time?
Those who think clearly express themselves clearly, but this is beyond my power to understand. Maybe it is necessary?
intCopyBuffer( int indicator_handle, / / indicator handle int buffer_num, / / indicator buffer number datetime start_time, / / from what date datetime stop_time, / / to what date double buffer [] / / array where data will be copied
);
creepystaisy97: Good afternoon, I want to run the script in 2 steps:1. The script opens two pending orders buystop and sellstop;2. as soon as the price touches one of the orders,the "opposite" one is removed(for example, a buystop is opened,a sellstop is removed);If I had no problems with the firstRead more
creepystaisy97:
Good afternoon, I want to run the script in 2 steps:
1. The script opens two pending orders buystop and sellstop;
2. as soon as the price touches one of the orders,the “opposite” one is removed(for example, a buystop is opened,a sellstop is removed);
If I had no problems with the first step,then with the second….
Please tell me how to implement step 2 correctly.I heard that you can do this through the standard cycle of iterating orders (for (int i=orderstotal()-1; i>=0; i–) until> some does not fit the magic number,but how to implement this I do not understand.
I will be glad of any help and any advice.Thank you in advance.
Doing this in a script is absolutely wrong. In this case, you will have to loop the script, which is not welcome. But if you do this in the Expert Advisor, the algorithm is quite simple:
When opening orders, their tickets are stored in different variables or in an array.
At each tick, orders are selected in turn and the order type is checked.
If OP_BUY or OP_SELL means the second one is deleted and expertremove () is either waiting for the next command…
Aleksandr Volotko: Actually a subject. We are looking for a normal copy machine for MT5, which works normally on netting accounts, do not send it to the Market - there are no such things, this is a fact. Either there are flaws in the logic, or it doesn't work, or both options are available at the saRead more
Aleksandr Volotko:
Actually a subject.
We are looking for a normal copy machine for MT5, which works normally on netting accounts, do not send it to the Market – there are no such things, this is a fact. Either there are flaws in the logic, or it doesn’t work, or both options are available at the same time.
Surely someone already has one written for a loved one, working correctly, with sane copying logic, without unnecessary rattles, reliable as a Kalashnikov assault rifle.
But there are two kinds of logic, one is mine and the other is wrong.
Alexander Kharlamov: ftp forwarding is probably a very good idea... you can't drop a sample code?! or a link to the likeness?! thank you!So there is an example in the documentation...
Alexander Kharlamov:
ftp forwarding is probably a very good idea… you can’t drop a sample code?! or a link to the likeness?! thank you!
Fresto: I shouldn't have deleted the topic. Still can't handle it. There are 2 parabolic indicators, for each you need to go both long and short, as a result of 4 calls. To correctly implement this, you need MagicNumber. I found an article on mql4, but there is a bit of divergent syntax already. CanRead more
Fresto:
I shouldn’t have deleted the topic. Still can’t handle it. There are 2 parabolic indicators, for each you need to go both long and short, as a result of 4 calls. To correctly implement this, you need MagicNumber. I found an article on mql4, but there is a bit of divergent syntax already. Can you please give a simple example of this implementation?
As I see it: 1. 4 entry conditions, each indicator has its own magic. 2. 4 exit conditions, if the condition worked-close the position with such and such magic.
As I understand it, there is no magic-related function in the ready-made Trade library. Thus, it is necessary to go out precisely to find your position among the open ones with magic. Thank you in advance.
Bad search. However, I think that two magicians will be enough. 4 conditions, this is 2 buy and 2 sell total 1 magic on one buy and sell and 1 on the second buy and sell.
Getting data by the indicator from another indicator on a larger time frame
alexeyvik
savinkins: I thought that the problem is known, so they will tell you. But thanks for the advice. Here is the file.The problem is not only well-known, but also well-known Forum on trading, automated trading systems and testing of trading strategies The requested data was not found. Alexey Viktorov,Read more
The problem is not only well-known, but also well-known
Forum on trading, automated trading systems and testing of trading strategies
The requested data was not found.
Alexey Viktorov, 2017.07.08 10:39
The question was raised back in September 2016, but nothing was fixed or I could not find a solution to the problem?
For some reason, this problem does not occur in the Expert Advisor, and in the indicator it is not possible to request the data of the period indicator that does not correspond to the current one. And the answer to this post also could not be found for a reason… I’d rather not say anything.
Please help me. Maybe someone knows where there is an answer, or they will answer more specifically
Task: to get the values of the fractals of the period H1 when the indicator is launched on the period M5.
int hadle;
double arr[];
/**************Custom indicator initialization function**************/
int OnInit()
{
hadle = iFractals(_Symbol, PERIOD_H1);
int size = CopyBuffer(hadle, 0, 0, 1000, arr);
if(size < 0)
{
Print("CopyBuffer error", GetLastError());
}
return(INIT_SUCCEEDED);
}/*******************************************************************/
And it absolutely does not matter where to place CopyBuffer () in OnInit () or in OnCalculate()
I even tried opening a new chart window with the specified period H1
long idChart = ChartOpen(_Symbol, PERIOD_H1);
add an indicator to it, or apply a template with an indicator to update this chart
ChartIndicatorAdd(idChart, 0, hadle);
nothing helps, the result isChartRedraw(idChart);
ERR_INDICATOR_DATA_NOT_FOUND
4806
The requested data was not found
there are also links to other topics.
See lessMarketInfo translation, purchase price, sale price, bar opening time on mql5
alexeyvik
investr777: Good afternoon. Tell me how to translate: There are also such functions in mql4 as Bid, Ask, and Time.And this is it: Please help me!All information in the documentation Obtaining market information. Functions such as SymbolInfoInteger() SymbolInfoDouble () and others.The opening time ofRead more
All information in the documentation Obtaining market information. Functions such as SymbolInfoInteger() SymbolInfoDouble () and others.
The opening time of the bar and other parameters can be found in the sectionAccess to timeseries and indicators
See lessOnly long and only short parameters
alexeyvik
Alena Lysenkova: Oh, Russell's teapot, another one.The person raised the topic, probably he needs an answer. The topic can be Googled by others who will need an answer. The last thing they want is to see your toxic attacks there instead of a response.Is it not fate to think of it yourself? Oh, my deRead more
Oh, my dear, the person raised the topic far from getting an answer, but in order to show off his dull mind and offend someone a little. Read what is written before making conclusions. And I do not recommend EVERYONE to use an enemy search engine, despite its successful expression in the Russian language. Good luck finding the answers, but through good search engines.
See lessOnly long and only short parameters
alexeyvik
hvn000: And you're probably the smartest. Imagine, in three and a half years, I've become even smarter. Unlike necroposters.
Imagine, in three and a half years, I’ve become even smarter. Unlike necroposters.
See lessInput parameters (which are set by the user)
alexeyvik
Stanislav Korotky: sinputThis prevents optimization of the parameter, and nothing more.
This prevents optimization of the parameter, and nothing more.
See lessIndicator values in date/time?
alexeyvik
gedd: Tell me in what direction at least to think. I need the values of the indicators at specific points in the date/time, more precisely with a pre-defined interval.In MQL5, working with timeseries is organized in the form of arrays. But... for example, within one minute there can be 2 ticks and 2Read more
Those who think clearly express themselves clearly, but this is beyond my power to understand. Maybe it is necessary?
See lessint CopyBuffer(
int indicator_handle, / / indicator handle
int buffer_num, / / indicator buffer number
datetime start_time, / / from what date
datetime stop_time, / / to what date
double buffer [] / / array where data will be copied
);
Help with a simple script
alexeyvik
creepystaisy97: Good afternoon, I want to run the script in 2 steps:1. The script opens two pending orders buystop and sellstop;2. as soon as the price touches one of the orders,the "opposite" one is removed(for example, a buystop is opened,a sellstop is removed);If I had no problems with the firstRead more
Doing this in a script is absolutely wrong. In this case, you will have to loop the script, which is not welcome. But if you do this in the Expert Advisor, the algorithm is quite simple:
Admit it, who has a normal copier for MT5 + netting accounts?
alexeyvik
Aleksandr Volotko: Actually a subject. We are looking for a normal copy machine for MT5, which works normally on netting accounts, do not send it to the Market - there are no such things, this is a fact. Either there are flaws in the logic, or it doesn't work, or both options are available at the saRead more
But there are two kinds of logic, one is mine and the other is wrong.
See lessworking on a VPS. Is it possible to write and then see the log?
alexeyvik
Alexander Kharlamov: ftp forwarding is probably a very good idea... you can't drop a sample code?! or a link to the likeness?! thank you!So there is an example in the documentation...
So there is an example in the documentation…
See lessMultiple inputs of one Expert Advisor for 1 instrument
alexeyvik
Fresto: I shouldn't have deleted the topic. Still can't handle it. There are 2 parabolic indicators, for each you need to go both long and short, as a result of 4 calls. To correctly implement this, you need MagicNumber. I found an article on mql4, but there is a bit of divergent syntax already. CanRead more
Bad search. However, I think that two magicians will be enough. 4 conditions, this is 2 buy and 2 sell total 1 magic on one buy and sell and 1 on the second buy and sell.
See less