Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1215
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
good afternoon everyone, I need a hint on how to translate code from MT4 to MT5...
function on MT4 - returns True or False using MA.
need to transfer it to MT5
The problem is in time series Low[i] and High[i] , i don't understand how to convert them.
good afternoon everyone, I need a hint on how to translate code from MT4 to MT5...
function on MT4 - returns True or False using MA.
need to transfer it to MT5
The problem is in time series Low[i] and High[i] , i dont understand how to convert them.
You have to create indicator handle ONLY once. This is done in the OnInit. Example of creation:iMA
2. First fix point 1.
1. the indicator handle MUST be created once. This is done in OnInit. Example of creation:iMA
2. First correct item 1.
Here is what you get:
that's what I got:
Now tell me, why do you need such a huge cycle - across all the bars?
It's very irrational.
Describe the logic in your own words.
Now tell me, why do you need such a huge cycle - across all the bars?
It's very irrational.
Describe the logic in your own words.
The condition - the price moves away from the midline atMinDist(30 pips). If it happens, then when it comes back to the midline and reachesOpenDev( 10 pips) - there is a signal to open a Buy order. (It is always Buy at the top of the average line)
The condition is that the price moves away from the average line on theMinDist (30 pips), if it happens, then when the price returns to the average line and reachesOpenDev (10 pips) - there is a signal to open a Buy order. (It is always Buy at the top of the average line)
When should we check 'MinDist(30 pips)' and 'OpenDev(10 pips)' - at every tick or only at the moment of a new bar opening?
What is the reason for opening a position immediately after the EA has been started?
The conditions for opening a position are not met, but the position is opened
What is the reason for opening a position immediately after the EA has been started?
The conditions for opening a position are not fulfilled, but the position is opened
Where and how are the values of averages obtained? Did you get them at all? If the values are normally obtained, have you noticed the indexing in the array of averages?
Where and how are the mean values obtained? Are they obtained at all? If these values are obtained normally, have you noticed the indexing in the arrays of averages?
Here is the code
Here is the code
Indicator handle MUST be created once. This is done in OnInit. Example of creation:iMA