[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 312
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
Hello programming guru
Can you please tell me how to draw a rectangle filled with the background colour in the upper left corner with a small indentation (for aesthetics) on top of the chart and under the text displayed by the expert?
Thanks in advance
it's the same... To describe it too, just for a different situation.
Isn't that it?
Artem, don't mind writing the code, will you? Or give me that thing you got in your hand and I'll end this misery...
Question about the operation of the tester: Afterrunning a test, you change the parameters (dates, currency pair, timeframe), re-run the test - it runs, but when it is over the information in the tabs like "chart" and "report" does not change at all - everything remains from the previous test. The saved report also turns out to be old. What is the reason and how to fix it? Maybe there is some function to reset the results?
I've read the manual, articles, searched the forum - I haven't encountered any mentions of such a problem...
It shouldn't be like this, maybe you have "Optimisation" checked?
This shouldn't be the case, maybe you have "Optimise" ticked?
Oh, that seems to be the case: when running a new test I didn't notice that optimisation was on, thought it wasn't critical. Slightly strange interface solution...
But it's working now, thank you very much!
I haven't dug deep into logic, but something tells me there are some unnecessary calculations. A year and a half ago I was solving the same problem with quotes gathering and forming M1 candlesticks with clear cut at the beginning of the astronomical minute.
If you will be interested, you may take a look at some moments of pure optimization of your code (file). Really, if we seriously talk about optimization, you need to measure the code's runtime. ;)
Now I'm trying a different way entirely from scratch.
Question for Vadim on the mapping. So, uh... Started from scratch. We take the original ticking TF:
In principle, there is a very simple logic: We catch a bidask, form RateInfo, but we put time to Volume and model Time. Now, without worrying about how to simulate Time, we remove simulation completely and do it by standard TOLHCV and before it we put "if more than 0 seconds have passed since last call of start()". If it was less in another branch of the same condition, edit High-Low and increment Volume. In essence it is the same as described above but with cycle completely removed, i.e. we obtain second TF "with gaps" (with missing seconds):
Also left the bullish-bearish grading completely off. Worth the gamble? Let's check, put GetTickCount() with shrinking to this variant and to the initial one from the owner, run them simultaneously on one chart, look at the log:
as expected. Tick - original, seconds with gaps - modified. Now form an auxiliary array before time=TimeCurrent():
This is in the code of the seconds tf. For the EA that will be hovering on the secondtf itself, the values of TOLHCV x seconds ago can then be obtained as ind[GlobalVariableGet("final")]-ind[GlobalVariableGet("final")-x]+1, if of course this array is somehow passed. So, let's use mapping:
We write a test script that will hover over the seconds and read theTOLHCV values x seconds ago (not the candlesticks):
We run the seconds timeframe. On initialization, a window will be displayed
There are 58.572 times in the log
and at deinitialization it shows a window
В методе "MT4::Memory::SearchIndexOrHandle()" не установлен параметр для поиска в области памяти терминала.
Well deinitializatsii it later, I put the script - alert once. I override MemoryCreate and MemoryCloseHandle, nothing appears (the script keeps the alert), the log
- and that's it. So, logically speaking, I'm using calls in wrong order or declaring them incorrectly. My operating system is WinXP. Vadim, at least tell me which direction to go.