How aboutDays?
And maybe you don't need to put a library containing one function in 4 lines in the base...?
//+------------------------------------------------------------------+ //|DaisOfWeekCheck.mqh | //|Copyright © 2012, Nikolay Kositsin | //|Khabarovsk, farria@mail.redcom.ru | //+------------------------------------------------------------------+ #property copyright "2012, Nikolay Kositsin" #property link "farria@mail.redcom.ru" #property version "1.00" //+------------------------------------------------------------------+ //| Check off days| //+------------------------------------------------------------------+ bool DaisOfWeekCheck() { //----+ MqlDateTime tm; TimeToStruct(TimeCurrent(),tm); bool Resalt; switch(tm.day_of_week) { case 0: Resalt=false; break; case 6: Resalt=false; break; default: Resalt=true; } //----+ return(Resalt); } //+------------------------------------------------------------------+
And maybe you don't need to put a library containing one function in 4 lines into the base...?
Yes, it would probably make more sense to do TimeTradeServer()! That's what the power of collective thinking means!
Yes, it would probably make more sense to do TimeTradeServer()! That's what the power of collective thinking means!
The rest of your codes also need to be finalised by the public? Why are they in the public database?
You still haven't answered - why do you need to make a 4-line function as a library? Aren't you afraid that the database will turn into an absolute rubbish dump at this rate?
Do the rest of your codes also need to be finalised by the public? Why are they in the public database?
You still haven't answered - why should a function of 4 lines be formatted as a library? Aren't you afraid that the database will turn into an absolute rubbish dump at this rate?
I think that the code even with 4 lines is useful. It brings an idea, but not a full solution, perhaps it is exactly what someone lacks. And then, so that you don't ask the question "how to do it?", there is a solution available for search.
IMHO, kodobaza is filled with enthusiasts, and without them it would remain empty.
Do the rest of your codes also need to be finalised by the public? Why are they in the public database?
You still haven't answered - why should a 4-line function be formatted as a library? Aren't you afraid that the database will turn into an absolute rubbish dump at this rate?
So far, it is your annoying fludding in the middle of nowhere and for any reason that serves as a dump! If you are so knowledgeable, what is necessary on this site, then nothing prevents it to prove it in practice as concrete and numerous examples. And where are they? About public revision - any software product is never fully completed from one time and there are always errors in it, which are corrected later. If you still haven't realised this, you should change your profession. For example, kneading concrete or carrying bricks on a construction site! And everybody except you has minimal complaints about my codes for some reason! What's the matter? Somehow so for this day the whole contingent on the use of the terminal has made 244 thousand downloads of my code and absolute absence of any comments like yours in my address. It is clear to anyone who you are and who I am!
And for some reason, everyone except you has minimal complaints about my codes! What's the matter?
Probably the point is that they are not much in demand?
// but a library of one function makes me smile... and it looks more like a rating scoring than filling the codebase with useful codes.
There is no one example that will cover all issues, and the same goes for articles. That's why we welcome any well-designed publications that can help beginners.
Think back to yourself when you first started writing in a new programming language. After all, you often needed just a simple example in a few lines to insert it and everything worked. And then, over time, you would redesign or write your own from scratch.
It's probably because there's little demand?
// but a library of one function makes me smile... and it looks more like a rating scoring rather than filling the codebase with useful codes.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
DaysOfWeekCheck:
Author: Nikolay Kositsin