
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 wonder, how many people use comments to functions (classes, structures...) using exactly this design on the left?
I use it very often and densely (True, I don't format it as "squares", I write it "just so".
Here's my current bidding history interface file. And that's not the maximum number of comments.
In general, the more specific class - the more comments it should have.
Well, unless you have mega-memory, like Peter Konov, you can do without comments.
Yes, who likes what they like. Personally, I can't see the code so well formatted that I can't see the code itself.
Perhaps masteringVisual Studio Code would be a good solution.
Heh heh heh... I get confused when "you can't see the forest for the trees".
Just in this fragment - everything seems to be correct, but without a single comment, and like this "pile-up", without omissions, man, how hard it is to understand...
I delete this kind of comment at once, as it clogs the eyes and I write like this
There! Yes.
For short and simple functions, the most normal commentary style, in my opinion.
I'll put in my five cents.
As for the formatting. You need to enter several styles. One is the one from MQ. I propose this one:
I'll put in my five cents.
As for the formatting. You need to enter several styles. One is the one from MQ. I propose this one:
I don't like most of all the curly brackets in the current style. I don't understand why they moved them. I always align all braces to Tab, as in your example.
I use it very often and densely (True, I don't format it as "squares", I write it "just so".
Here's my current bidding history interface file. And that's not the maximum number of comments.
In general, the more specific a class is, the more comments it should have.
Well, unless you have a mega-memory like Peter Konov - you can do without comments there.
Mine is similar, only less comments :).
"Smearing" comments all over the listing, as is supposed to me, is not to my liking.
It would be nice if there was an option to turn this off:
Can you tell me exactly how you put comments in them? Do you manually edit it? Is there a secret combination?
Here's the situation:
I optimize in a strategy tester, on completion, OnTesterDeinit() is executed to analyze results, or just to collect data. At this moment, the strategy tester switches to the state as if everything is finished, but at this time, the final data processing can still take place in the background for a long time. When the window with the symbol chart is closed, the Expert Advisor will be closed forcibly.
Let's also describe the situation when OnTesterDeinit() is writing into a file thinking the current optimization is over, we start the next one with minimal ranges of parameters that are quickly calculated. As a result we have previous run is not completed and new one is on the same stage, in our example it leads to error of write access to files, or just mishmash in file, and visually it is not traceable, only through load manager or file.... I would like to be able to see in the tester that this operation is not yet complete.
Here's the situation:
I optimize in a strategy tester, on completion, OnTesterDeinit() is executed to analyze results, or just to collect data. At this moment, the strategy tester switches to the state as if everything is finished, but at this time, the final data processing can still take place in the background for a long time. When the window with the symbol chart is closed, the Expert Advisor will be closed forcibly.
Let's also describe the situation when OnTesterDeinit() is writing into a file thinking the current optimization is over, we start the next one with minimal ranges of parameters that are quickly calculated. As a result we have previous run is not completed and new one is on the same stage, in our example it leads to error of write access to files, or just mishmash in file, and visually it is not traceable, only through load manager or file.... I would like to be able to see in the tester that this operation is not yet complete.
When optimizing a new chart window opens - can we use chart id to figure out the end of the operation? It seems that there is an option of closing the chart, then after the end of calculations in OnTesterDeinit() the window can be closed and eventually we just need to monitor the presence of the chart open at the start of optimization, as soon as it has disappeared - the tester is ready for a new optimization.
When optimizing opens a new chart window - is there any way to find out the end of work by chart id? It seems that there is an option of closing the chart, then after the end of calculations in OnTesterDeinit() the window can be closed, and in the end we just need to monitor the presence of the chart open at the start of optimization, when it has disappeared - the tester is ready for a new optimization.
So, this code must be changed, but what if there is no such a possibility?
So you have to change the code, but what if you can't?
Then there is no way. This is a controversial situation, on the one hand the optimizer is free and ready for further work, but on the other hand there can be an overlap - the decision depends on the situation.