Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 11
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. There are two points with coordinates (x1,y1) and (x2,y2). How can I use these two points to construct a logarithmic function with a logarithm basis other than natural? Seems like I need to use inverse function (), but I don't know how to make it diagonal. If someone has faced the problem, please advise. I am grateful in advance.
Easy, divide by the base of your logarithm. That is, if you want logarithm x of degree two, you divide logarithm x by logarithm two, and you get logarithm x of degree two.
Easy, divide by the base of your logarithm. That is, if you want logarithm x of degree two, you divide logarithm x by logarithm two, and you get logarithm x of degree two.
Can I clarify what you mean by not at market price? With SELLLIMIT and BUYLIMIT, everything is correct.
Go to the editing area and read what pending orders are... and all questions will go away.
You should go to edit and read what pending orders are... and all questions will go away.
Sell limit - sell from the upper border, Buy limit - buy from the lower one. All
Right with the pending orders, that's not the point.
I don't quite get it. What I meant was that the regular logarithmic function in MT4 calculates only the natural logarithm of a number. There is no other logarithmic function in MT4. You can use the inverse function, i.e. MathPow, but it has to be mirrored to the diagonal. I can't think of an easier way to do this.
About this?
The inverse of a power function is a logarithmic function on the same basis. To get a logarithmic function on the desired basis a, you need to divide MathLog(x) by MathLog(a).
About this?
The inverse of a power function is a logarithmic function on the same basis. To get a logarithmic function on the desired basis a, divide MathLog(x) by MathLog(a).
It's more or less like this:
Something, I'm doing wrong...
It was like this:
It went like this:
After compiling, no errors, but the indicator shows only one long bar.
After compiling, there are no errors, but the indicator shows only one long bar.
I do not have time to understand the logic of your indicator, but I wrote you how to correctly set the loop.
By the way, it would help to simplify the code and make it more readable. It would be easier to analyze it in this case. This is often the reason for errors. The more readable the code and well thought-out names of variables, the better.
Well, I don't have time to look into the logic of your indicator yet, but I wrote you how to correctly set the loop.
By the way, it wouldn't hurt to simplify the code and make it more readable. And then it would be easier to analyse it. This is often the reason for errors. The more readable the code, and the better the names of variables, the better.
I will look into it. Thank you.