[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 500
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
So it makes sense. It means transferring parameters via links.
To avoid explaining the code in details, I will explain it briefly.
There are 3 functions:(int GetCrossingMa, int GetStochSignal and int GetSignal())
The int GetSignal() function gets values of flaps and other indicators which are passed by referenceto non-core functions(int GetCrossingMa andint GetStochSignal) to get corresponding signals in them. I want to do it to avoid getting the same data in different functions. I don't think it's wise to calculate the same mask in 2 or more functions. It's easier to just calculate it once, and that's it. Why waste additional resources on it?
The explanations are clear, but the actions are not.
These are these: "Theint GetSignal() function gets values of scales and other indicators" actions in your variant are "questionable", to put it mildly, because there is no need for such actions.
This code:
full P.... Do you realize what is "going on" here? - The whole "bar row" is searched in vain, and at the end of the loop, the variables are left with values... guess what happens next.
A little bit on Perl and php a little bit. But seriously haven't approached other languages as I haven't needed to. Does it matter?
Yes. It does. In that case, you remove all (i.e. there shouldn't be any)"in my opinion" and even more so, "not reasonable".
You do it the way you have to! Including "spending extra resources".
Besides the textbook and the docs, read the BASE and ABC carefully - it's all sorted out there!
The explanations are clear, but the actions on them are not.
These are: "Theint GetSignal() function gets values of scales and other indicators" actions in your version are "questionable", to put it mildly, because there is no need for such actions.
This code:
full P.... Do you realise what is "going on" here??? - The code goes through ALL "bar rows" in vain, and at the end of the cycle the variables are left with values... guess further.
Of course I do. We find the values of the fast and slow wrist and stochastic signal line at each moment of time at the close of each bar on a particular TF. And then we calculate the place of their intersection. What is not logical here?
Yes. It does. In that case you remove all (i.e. there should be no)"in my opinion" and even less "not reasonable".
You do - as OWN! Including "spending extra resources on it".
By passing the textbook and the docs, read the BASE and the ABC - it's all sorted out there in a nutshell!
So I read it, and I read it.
And what do you mean by"In that case you remove everything (i.e. there shouldn't be any)"? What do you remove everything?
So I do, and I have read it.
And what do you mean by"In that case, remove everything (i.e. there shouldn't be any)" ? What do you remove everything?
" I want to do it to avoid getting the same data in different functions. I don't think it's wise to calculate the same mashki in 2 or more functions. It's easier to just calculate it once, and that's it. Why waste additional resources on it?
Do as prescribed in the documentation and don't reinvent the wheel.
What does this cycle have to do with anything at all ???
What do you do when you exit it and what do you do with it? It's nonsense.
You do it like in the textbook - all trade signals in this definition definition fi of trade criteria triggering - one by one (you can wrap them in different fi's and work with them afterwards while checking if these trade criteria triggers), then you get conditions for their triggering.
Read here:
"SOFTWARE SOLUTIONS
Where do I start as a beginner?HOW do I find the price of the last fractal?
HOW to get a signal of two MA crossings?
HOW do I check for a MA crossing with the required divergence?"
Of course I do. You find the values of the fast and slow wrist and the stochastic signal line at each time point at the close of each bar on a particular TF. And then we calculate the place of their intersection. What is not logical here?
Docent, read the document at TarasBY 's link carefully and don't make up nonsense.
There is no indication in the link of how to stop a running task. After all, we need to shut down the terminal 5 minutes after it has started, what should we do?
Describe in more detail what the fuck is wrong with the terminals, why do they need to be restarted?