
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
No, I'm not. Because that's exactly the point. Let me tell you a little bit more about what this is all about. The trader uses the chart as if it were a tester. The indicator hides a part of the real chart to the right of the supposedly current time (in fact, this time is somewhere in the history). Pressing F12 displays the next candle in the online chart, etc. So, it is when restarting the terminal with the indicator attached that it does not return the chart position to the place where the trader finished his studies. As a result he/she receives an empty chart because the terminal resets the chart to the last real candle. And this despite the fact that the terminal was unloaded in a completely different place.
An interesting observation. I checked it myself - alas, nothing has changed. I still get the freshest prices on reloading.
I suggest that we "synchronise our watches". I'm testing all this on build 1861. What is your build?
Maybe you should add such lines at the front
and then shift it?
Or just don't shift it anywhere. It works without problems too.
At which bar I closed the terminal, and at which it opened.
However, this variant keeps the chart on the inactive window as well. Alas. The chart stays in place even without this code.
Maybe add lines like this at the front
and then shift it afterwards?
Yes, the full version has it all. If you work without rebooting the terminal, everything is fine. But rebooting leads to such problems. And even crutch solution doesn't always help. I'll investigate it further.
Yes, the full version has it all. If you work without rebooting the terminal, everything is fine. But rebooting leads to problems like this. And even crutch solution doesn't always help. I'll investigate it further.
But I have also experimented with restarting the terminal. What could be the problem? I got the update downloaded, but so far I've cancelled the update. Maybe you should update as well?
Upgraded to 1865 build. The problem remains.
Moreover, it turned out that even after full loading of data on the chart and using ChartNavigate() the chart is displayed where required for a while, but with a new tick it still goes back to the very last bar. The autoscroll button is disabled and no other indicators are used.
If you move the chart manually, nothing like this happens. I am at a loss for now. I will investigate it tomorrow when I have fresh eyes to see if I have screwed up somewhere.
Script. Only withCHART_CURRENT_POS it is stable. With CHART_BEGIN and positive "Shift", as well as with CHART_END and negative "Shift", the chart either does not move or jumps (scrolls itself) to the latest prices: feeling that the autoscroll button is enabled.
1
Upgraded to 1865 build. The problem remains.
Moreover, it turned out that even after full loading of data on the chart and using ChartNavigate() the chart is displayed where required for a while, but with a new tick it still goes back to the very last bar. The autoscroll button is disabled and no other indicators are used.
If you move the chart manually, nothing like this happens. I am at a loss for now. Tomorrow I will investigate it again with a clear head, maybe I have screwed up somewhere.
I suggested to update not in the hope that everything will fall into place, but in order to have the same builds.
Igor, are you making experiments with the full version of the indicator or with the experimental one?
I have just reloaded the terminal with build 1865 and everything was fine. I'm writing this message, periodically look at the chart, switch the chart windows... But the shifted chart remains unmoved despite incoming ticks and switching.
Here is the whole code
For some reason, I don't believe that one terminal works this way and another works that way.I suggested updating not in the hope that everything would fall into place, but so that the builds would be the same.
Igor, are you doing experiments with the full version of the indicator or with an experimental one?
I have just reloaded the terminal with build 1865 and everything was fine. I am writing this message, periodically look at the chart, switch the chart windows... But the shifted chart remains unmoved despite incoming ticks and switching.
Here is the whole code
Somehow I don't believe that one terminal works this way and the other does not.Try looking at a symbol that has no history at all
Try to look for a symbol that has no history at all
How to do this?
According to the description in the first post of the thread, it is an indicator, it hangs on an open chart - it means that the history is already loaded. Right? Hang the indicator, close the terminal, start the terminal, --- where can the history go? If it was there already...
Secondly, I opened EURMXN symbol. Without looking in the terminal, can you tell what it is? )))
How to do this?
According to the description in the first post of the thread, it is an indicator, it hangs on an open chart - it means that the history is already loaded. Right? Hang the indicator, close the terminal, start the terminal, --- where can the history go? If it was already there...
Second was opening the EURMXN symbol. Without looking in the terminal can you tell what it is? )))
No, I can't...
What I meant was that probably loading historical data makes the chart shift towards its end.
Try this: put the indicator on a minute timeframe, close the terminal and open it after an hour - the terminal starts loading the missing minutes - what will happen to the chart? Will it shift?
What a newsflash!!!
I had H1, H4 period charts open and I used them to check. Now started experimenting on M1, M5, M30... it's not working!!!
Switching to H1 or H4 there is no problem even if there is a new hour. This was tested either yesterday or early today or both yesterday and today... not the point, but I got caught up in the hour change.