Questions from Beginners MQL5 MT5 MetaTrader 5 - page 838

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
In mql4 I used iCustom to make indicators that use someone else's ready-made indicators, even though I know nothing about programming... I have had enough of intuition. I am using mql5 but nothing works, no matter how hard I try to understand it. Please help me, please.
I have this indicator in ex5. I put it in my Downloads folder. I want to take both of its lines and draw it on the chart in other periods, i.e. make it multitime frame with iCustom.
Since I cannot write an indicator from scratch, I have taken the code of a simple Bears Power indicator. I haven't changed anything there, except for changing indicator_chart_window and DRAW_LINE and the line, which, to my mind, should take out the data of the first buffer with default parameters of the current TF:
Everything compiles, nothing gets drawn. What else does it need? :(
In mql4 I used iCustom to make indicators that use someone else's ready-made indicators, even though I know nothing about programming... I have had enough of intuition. I am using mql5 but nothing works, no matter how hard I try to understand it. I want to ask you for help.
I have this indicator in ex5. I put it in my Downloads folder. I want to take both its lines and draw it on the chart in other periods, i.e. make it multitime frame with iCustom.
Since I cannot write an indicator from scratch, I have taken the code of a simple Bears Power indicator. I haven't changed anything there, except for changing indicator_chart_window and DRAW_LINE and the line, which, to my mind, should take out the data of the first buffer with default parameters of the current TF:
Everything compiles, nothing gets drawn. What else does it need? :(
In mql5 the work with custom and standard indicators is organized differently than in mql4. If in mql4 you can get only one indicator value through iCustom, in mql5 you can get indicator values for the whole depth of history in the array. The second major difference is the direction of indexing in the indicator buffers.
It's tedious to look through all the code and check it against the original, so I'll only point out the main ones:
The file must be located in the Indicators folder or in a subfolder located in the same Indicators.
Here is the line to get the MA indicator handle
and this is the string to get the value of MA indicator
in this case to an additional buffer or array.
It turns out that to get data of the custom indicator
And then you can process the indicator values from this additional buffer in some way, or you can put them into the indicator buffer without forgetting about the direction of indexing.
Thank you! I wrote something as I understood it, and now only one error pops up when compiling. On the line
errorto_copy - undeclared identifier.
In which section and how do I declare it?
Thank you! I wrote something as I understood it, and now only one error pops up when compiling. On the line
errorto_copy - undeclared identifier.
In which section and how do I declare it?
You need to compare my hints with your code and with the source code you already fixed. This variable is declared in those codes. And in addition to my remarks, you should try to understand the logic of building indicators in general, and not just change a piece of shit for a piece of shit.
In MetaTrader 5, can the performance of one EA on a currency pair be radically different from the performance, for example, on the RTS Index?
The councillor will work the way it is written. And not otherwise.
As for the nuances that must be considered: RTS is an exchange, hence the NETTING type of accounting positions. If the EA is not originally designed to work on the netting, the result is unpredictable.
The councillor will work the way it is written. And not otherwise.
As for the nuances that must be considered: RTS is an exchange, hence the NETTING type of accounting positions. If the EA is not originally designed to work on netting, the result is unpredictable.
If your EA is not intendedto work on netting, the result is unpredictable.
There are no multi-directional positions in the strategy.
Thank you, how do you know for sure from the code if it is designedto work on netting or not.
There are no oppositely directed positions in the strategy.
And, if so (always ONE position in work), then there is no difference - whether netting or hedging.
If this is the case (there is always ONE position in operation), it makes no difference whether it is netting or hedging.
On a reverse signal in currencies (Forex) positions are closed, but not on the exchange. Where to look, what to look for?
On a reverse signal on currencies, positions are closed, but not on the exchange. Where to look, what to look for?
To look for the place where the command to close the position comes from.