Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1219
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
Static variables declared in a class function are pass-through for all instances of that class?
For some reason, I expected it to be different for each instance.
Is the alternative only class-level variables or are there some other tricky ways?
Hello ! I need to specify the path to save the file. more precisely the tick history. Help solve this problem )
@NeuralNetwork
FileOpenThe file is opened in the folder of the client terminal in subfolder MQL5\Files (or agent_folder\MQL5\Files in case of testing).
If FILE_COMMON is specified among the flags, the file is opened in the common folder of all the client terminals \Terminal\Common\Files.
--
to another location only via "symbolic link"
Thank you very much ! But, I want to set the path to save the file by specifying another drive or folder. I can't do it ...
https://www.mql5.com/ru/docs/files
3 line
@NeuralNetwork
FileOpenThe file is opened in the folder of the client terminal in subfolder MQL5\Files (or agent_folder\MQL5\Files in case of testing).
If FILE_COMMON is specified among the flags, the file is opened in the common folder of all the client terminals \Terminal\Common\Files.
--
to another location only via "symbolic link"
how will the admins and moderators solve the problem of a crookedly written robot?
Please advise if it is possible to get RSI values for weekly timeframe in the Expert Advisor code, but to calculate the values for the week, starting not from Monday, but for example from Wednesday (that is for the week from Wednesday till next Wednesday). I understand that it will not work with iRSI, because it takes weekly bars, and they start on Monday.
So far I see only one way of calculating it. Is there a simpler solution or a ready solution?
Shouting, yelling, cursing, not wanting to make your own code work, blaming moderators and admins, insulting moderators and admins...
In general - the whole package. I will give you one week to cool down and sort out your mistakes. Thoughtful!
To account for a ticket.
When opening an order, the ticket must be memorised.
Flags either control the number of order types or if there is a ticket control the closing time of the market order, if not equal to zero then the order has closed and the order opening flag is false.