Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 905
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
Hello! I don't have enough knowledge of my own. Can you tell me please. How to find the bar index on which the Awesome Oscillator(AO) indicator last crossed the zero level.
The solution was to write the first ticket in the job to a variable and subtract it when specifying the index
It's not like the tickets are in a row in one EA.
Hello! I don't have enough knowledge of my own. Can you tell me please. How to find the bar index on which the Awesome Oscillator(AO) indicator last crossed the zero level.
In the function, in the loop from the first bar (not zero) go deep into the history and look for the first crossing. Once found, you return the loop index from the function - the index of the loop will be the index of the bar where the crossover was found.
Can you tell me how to calculate the maximum lot to open in MT4?
I calculate it this way:
I get a value I can't open. I have to decrease lot size.
The m_amount here is 100.
Shift by 1 bar, but it will be filled with the current bar reading.
How to shift to history is clear. How do I shift to the future by a bar? It doesn't work that way.
How to shift to history is clear. How do I shift to the future by a bar? It doesn't want to.
SetIndexShift to help.Hello!
Can someone explain why when the Dow-Jones jumps, as it did today, so do DAX30 and SUI30 and UK100, even though the indices are calculated for completely different companies from completely different countries. Somehow all this makes one vaguely suspicious...
And yet, to understand the basics - why is this happening?
And yet, to understand the basics - why does this happen?
The Axioms of the Stock Speculator - Günther Max
Auxiliary axiom number 5. Beware the trap of historical parallels.
Auxiliary axiom #7. Beware of the fallacy of the existence of correlation and causation.
alas, coincidence and nothing more, although it may be a sign of insider information, in general don't guess, you won't guess anyway, and even if you find a link, it's not a fact that it will be the same next time
SZS: there is another riddle...oil goes up in price so gasoline goes up in price, oil goes down in price so gasoline goes up in price...so what do they make gasoline of?