Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 748
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
I withdraw the question, I've figured it out myself.
I need a buy stop trailed (modified) by price fractals until it triggers and a sell stop in the same way.
So the question in your code, highlighted in red.
You still haven't answered. I don't know what to do with it, but the result of code execution will be different.
So the question in your code, highlighted in red.
You still haven't answered. And from this the result of code execution will be different.
Why do you useVolume[0]<2 in the condition?
Sometimes in one tick there is a bunch of them. And on this bar the condition won't work anymore.
Why do you useVolume[0]<2 in the condition?
Sometimes there are a bunch of them in one tick. And on this bar the condition will not work anymore
Victor, this question is not for me. I use this function.
I copied a piece of code to ask a question about brackets.
Why do you useVolume[0]<2 in the condition?
Sometimes there are a bunch of them in one tick. And on this bar the condition will not work anymore
This is what Oleg Remizov teaches on YouTube, this condition restricts trading on the news and catching moose :)
So the question in your code, highlighted in red.
has never been answered. And that will make the result of code execution different, too.
I have experimented with brackets in different ways, I have removed and added them, the result is the same
You don't need to experiment, you need to understand the meaning of these brackets and how to apply them. It's written in the documentation, I won't read a lecture about it.
But this is only part of the code. There is a similar problem further on.This formula is quite easy to adjust to the requirements. You just have to take into account the minimum lot
This looks a little different
Where X - Balance for opening the minimum lot,
But we still need to check for the minimum lot.
Why do we need all these complexities, X that must be calculated separately? Besides, we'll need additional checking...
Wouldn't it be easier to directly and honestly check validity and acceptability of all values of the formula, and then just honestly calculate it?
By the way, MathRound() rounds to the nearest integer, that is, it can easily overestimate wrongly, which may cause additional consequences.