[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 55
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 have already contacted the forum about writing and reading arrays to a file, and now I have run into a problem again: After writing an array to a file, I cannot find the array element by value, so here is a script:
The result of running this script on me is the log entry "The word xyz is not in the written file, but the word xyz is"
Could you please tell me what is wrong and how to fix it?
You are using 2-dimensional array string y[][] while checking (searching) in one-dimensional array. Try this function:
and change the check condition to
TarasBY, thank you very much! It works!
And another question, has anyone encountered a phenomenon where the same script that mathematically calculates an integer in different builds of the terminal gives different values. For example, in 399 build it produces 488143839, but in 416 build it produces 348186686.
I've already checked it several times - the script runs the same with the same parameters in different builds.
TarasBY, thank you very much! It works!
And another question, has anyone encountered a phenomenon where the same script that mathematically calculates an integer in different builds of the terminal gives different values. For example, in 399 build it produces 488143839, but in 416 build it produces 348186686.
I've already checked it several times - the script runs the same with the same parameters in different builds.
Your numbers are large, perhaps the cause is an integer variable overflow.
No, Vadim, the desktop! A 512mb GForce 9600 graphics card itself.
This is due to the 32-bit architecture and the fact that 3.5 to 4Gb of space is dedicated to addressing PCI devices, in particular, if you have a lot of PCI devices installed, you will "see" less RAM than you have
Your numbers are big, maybe the reason is an integer variable overflow.
Often the internet goes down, is it possible to automate its restart with software? Or what is known about it? Is there any way to power two or more ISPs at the same time, I mean in parallel? Thanks in advance.
XmaksasX:
make a plain text document and put in this text
:LOOP
ping 8.8.8.8 | find "100%" && (rasdial /disconnect & rasdial "NAME OF YOUR CONNECTION" login pass)
ping -w 1000 -n 30 127.0.0.1
goto LOOP
save it and change the extension from *.txt to *.bat, roll it up and enjoy))
XmaksasX, thank you very much for your very wise advise, the internet connection has not been down for two days, or maybe I have not noticed it, since the principle above works. I used to get blackouts every 10 minutes, every hour or at night, even sadder at work, i.e. without any system. Now it's a blessing, you can get a good night's sleep too.
Another question, is it possible to manage a real account from two computers in parallel, from home and work?
Here's a piece of code from the EA. I wanted to implement the idea that if there is a deviation from the open price by sigma, then close. in theory if you put sigma = 1*Point. Then the Expert Advisor should always close with profit, because the deviation is always present at 1*Point. Another thing is that in real trade, there is a spread so it will lose profit and in the Strategy Tester there is no spread, so it should make profit all the time.
I think there is an error here.
and there's no spread in the tester
There is a spread in the tester. Exactly the same as on the chart when the test was run.