Questions from Beginners MQL5 MT5 MetaTrader 5 - page 757
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
Generally speaking, there is a concept called the "gradient". It is an indicator that describes the "steepness" (of a graph). For this industry this indicator can be expressed in terms of point/time. It is essentially a rate. This indicator will not depend on scale, as it is not attached to the graph. Use a gradient and do not use an angle.
How do you calculate this gradient?
Is there any way you can elaborate on your idea? Please note which forum thread I wrote my question in.
How do you calculate this gradient?
Is there any way you can elaborate on your idea? Note which forum thread I wrote my question in.
I don't have an idea.
I'm talking about simple maths. The gradient is the speed. Speed itself is when time is in the denominator. In familiar usage it is the speed of a car, expressed in km/hour. But speed in general can be different. For example, the speed of writing software code is measured in number of lines per day. In the case of a price chart, speed is measured in the number of points per minute. Conventionally, we can assume that if the gradient (slope, rate of ascent) at some part of the chart is higher than, for example, 100 points/minute, then this part can be considered a trend, and if less, then a flat.
Hello 2017.07.07_15:55 GMT+3. I don't understand. It seems like there should be a signal, but in the strategy tester there isn't one. How then is your praised MT5 tester different from the MT4 tester? I wrote it almost like in the standard Moving Average.mq5 . But I managed to test the Expert Advisor on my demo account. It opened a trade but had to close it by itself. I fixed the closing. But I have written something else and the EA has stopped opening trades again. Zero errors and zero warnings are not an indicator of the good condition of the Expert Advisor. I got stuck here. How do I know what it says that the Expert Advisor is not working? I have to bother Karputov again. If I had received the entire list of bans, I would have done it myself. I'm posting the files, although not all of them. 16:06 GMT+3.
Please help!
To get indicator's value in MQL4 the following function is sufficient
How to get an analogue for MQL5?Please help!
To get an indicator's name in MQL4, a simple function is enough
How to get an analogue for MQL5?Have you looked at theiMA help?
Step One: In the "header", declare a variable for storing the iMA indicator handle:
Step two: create indicator handle in OnInit().
And the result (crosshair on the screenshot is set at bar #1):
Have you seen theiMA help?
Step one: declare a variable in the "header" to store iMA indicator handle:
Step two: create indicator handle in OnInit().
And the result (crosshair on the screenshot is set at bar #1):
Thanks for the reply.
In MQL4 everything is declared in a function - so there is a set of functions that are activated depending on the EA settings. If I'm not mistaken, in your case the memory will be allocated for dozens of different indicators that the TS allows to use, which is not rational, or the memory will not be allocated?
Is it possible to call a class function without having a specific object of that class? So it would be something like this:
Or is it necessary to create an object? Even if this function refers to the definition of the class itself, rather than an instance of it.
If the function does not need access to class variables, make it static.
If the function does not need access to class variables, make it static.
Getting errors - what's wrong? In MQL4 it works...