Indicators: Custom crosshair cursor with synchronization

 

Custom crosshair cursor with synchronization:

Synchronized custom crosshair indicator showing price and (server/local) time.

Custom crosshair cursor with synchronization

Author: Soewono Effendi

 
Very useful <
 

What an awesome tool, and not just the idea because it's a classic, but it works flawlessly. And believe me, I tried a few more such tools.

But it has a big minus, for me at least. It doesn't have a toggle on/off option. A button, or even better a shortcut key ("x") to toggle the crosshair lines (and chart sync) on and off.

I've spent the whole weekend trying to add such an option, and did have some success, but not exactly what I wanted, or not exactly working as it should. I had success using "x" key, but only works for one chart (which is no use), but couldn't make it work globally, across all charts. Sometimes it deleted crosshair lines across all charts, sometimes not. And from this, other bad behavior. So, that was my problem, making the toggle globally recognized and indicator still working flawlessly, without any errors. From my understanding all charts should instantly recognize toggle key activity. When toggling ON, crosshair lines should be plotted on all connected charts and also "activate" chart sync (bool NavigateTo). When toggling OFF, crosshair lines should be removed from all connected charts and chart sync "turned off".

Would you be so kind to take the time and do something about it? I guess it's probably simple, or at least simpler, for you. If you want to, don't hesitate to write me.

 
goooood
 
andreimrsn #:

What an awesome tool, and not just the idea because it's a classic, but it works flawlessly. And believe me, I tried a few more such tools.

But it has a big minus, for me at least. It doesn't have a toggle on/off option. A button, or even better a shortcut key ("x") to toggle the crosshair lines (and chart sync) on and off.

I've spent the whole weekend trying to add such an option, and did have some success, but not exactly what I wanted, or not exactly working as it should. I had success using "x" key, but only works for one chart (which is no use), but couldn't make it work globally, across all charts. Sometimes it deleted crosshair lines across all charts, sometimes not. And from this, other bad behavior. So, that was my problem, making the toggle globally recognized and indicator still working flawlessly, without any errors. From my understanding all charts should instantly recognize toggle key activity. When toggling ON, crosshair lines should be plotted on all connected charts and also "activate" chart sync (bool NavigateTo). When toggling OFF, crosshair lines should be removed from all connected charts and chart sync "turned off".

Would you be so kind to take the time and do something about it? I guess it's probably simple, or at least simpler, for you. If you want to, don't hesitate to write me.

Please download latest update.
Use [Esc] to toggle custom crosshair cursor.

Enjoy.

 

Hurray! I can't believe it. You've made me very happy. Thank you so much.

Please, don't get me wrong, I really appreciate your time and work, and giving out for free. So, I'm a bit embarrassed to ask you for another favor. But I think many will appreciate if you'll find the time to fix/add this too.

Here it is. Now we have an option to hide the crosshair lines, which is more than awesome, but... they get plotted on chart anytime we change timeframe, so... we're going to press that Escape button pretty often. At least I will.

From how I see it, the crosshair lines are created on initialization. Can't you do it so they are created when pressing the [Ctrl] (or [Esc]) key? Or something like that. As it happens now; after toggling them OFF using the [Esc] key, if you press [Esc] again or [Ctrl] they will get plotted.

As I said, I don't want to be rude, so please forgive me if asking for too much.

PS. Guys, if you're looking for a synced crosshair for MT5, this is what you're looking for. Works like a charm. Tried many, but nothing compares.

 
Thanks for the feedback.

Please download the updated version that keeps the hidden/show state on start/restart of indicator.

Enjoy.
 

Hi

Thank you for free indicator. I have it loaded on my chart, but I cannot see it on the chart. I have tried control shift, still nothing, can you please help. thanks

 
SallyS #:

Hi

Thank you for free indicator. I have it loaded on my chart, but I cannot see it on the chart. I have tried control shift, still nothing, can you please help. thanks

you need to move your mouse on a chart while holding Shift or Ctrl..

 
Soewono Effendi #:
you need to move your mouse on a chart while holding Shift or Ctrl..

Thank you for clarifying, many blessing of abundance to you for sharing this :-)
 

I've been using the updated version for the past week. It works like a charm.

There would be another small detail. I tried tackling it myself, but unfortunately my coding skills are very limited.

I have a 5-chart display setup. When I activate the crosshair there will be 10 "blue" tooltips all around. Do you think you could do something about it? Like an input to enable or disable tooltips per indicator. That way we can just enable tooltips on one chart only, if we want to.

Thank you, thank you.