The other week someone asked in the forum if it was possible to have crosshairs always on. There is not an obvious way to do this, however with Empty4 there is always a workaround. I have also been meaning to put together a global crosshairs indicator and I've combined the two in the attached indicator. I know people have complained about the lack of global crosshairs in Empty4 for years (although its obviously not the only complaint!!) and with the recent upgrades its now possible.
The only input here which requires any explanation is "Crosshairs_Always_On". If true it will 'force' crosshairs on the chart. If you click without moving the mouse they will disappear (which is quite important to be able to open the indicators window to adjust or remove an indi), but the instant you move the mouse they reappear. However this has adverse consequences with regard to creating new objects and dragging existing objects around the chart, which may or may not be an issue. If "Crosshairs_Always_On" is false, the Left mouse button effectively becomes an on/off switch for crosshairs. This allows objects to be created and moved around the chart while using the indicator.
Global crosshairs replicates the time and price point shown by the crosshair/cursor on the controlling chart across all other charts. Obviously, if another chart is for a different currency pair, the horizontal price line may not be visible, however it is still useful to have the vertical line for comparing time points between pairs. Place the indicator on all tiled charts and as you move the cursor around, whichever chart you hover over will control the crosshairs on the others. There are some minor adverse consequences re objects but nothing insurmountable.
The indicator uses some winuser32 functions to 'force' the crosshairs to be on, so DLLs need to be allowed. The global crosshairs code is achieved almost entirely using new Empty4 functions.
I hope this may be of some use to a few others and that it might also spark a bit of interest in the new functionality in Empty4, some of which adds a whole new dimension.
Global Crosshairs / Crosshairs Always On Indicator
-
arts
- Trader
- Posts: 10
- Joined: Thu Nov 17, 2011 2:09 pm
Global Crosshairs / Crosshairs Always On Indicator
You do not have the required permissions to view the files attached to this post.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Global Crosshairs / Crosshairs Always On Indicator
Thank you for posting this
, I am sure it will be usefull for a lot of users!
Cheers
Tommaso
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
-
dclayw
- Trader
- Posts: 139
- Joined: Wed Nov 13, 2013 6:53 am
- Location: Australia
Global Crosshairs / Crosshairs Always On Indicator
Yep, that was me. Thanks so much for posting this indi and thanks for PMing me about it. Works perfectly and exactly what I was looking for.arts » Tue Jun 03, 2014 9:14 pm wrote:The other week someone asked in the forum if it was possible to have crosshairs always on.
-
prasadFx
- Posts: 1
- Joined: Sun Mar 29, 2015 2:03 pm
Global Crosshairs / Crosshairs Always On Indicator
This is exactly what I was looking for, thanks million times

- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Global Crosshairs / Crosshairs Always On Indicator
Well done for spotting this and bringing it back to light. Clearly been doing some productive digging at shf, I see.prasadFx » Sun Mar 29, 2015 2:14 pm wrote:This is exactly what I was looking for, thanks million times![]()
![]()
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- traderduke
- Trader
- Posts: 306
- Joined: Mon Nov 28, 2011 7:30 pm
- Location: East Coast USA
Global Crosshairs / Crosshairs Always On Indicator
arts
Thanks a lot, its the one of the functions that I liked about tradestation.
Thanks again
Ray
Thanks a lot, its the one of the functions that I liked about tradestation.
Thanks again
Ray
- simplex
- Trader
- Posts: 127
- Joined: Thu Feb 07, 2013 5:21 pm
- Location: An insignificant small town close to an insignificant former capital at the Rhine River.
Global Crosshairs / Crosshairs Always On Indicator
Absolutely great - thanks a lot for posting! 
If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)
It appears that the Weighted Moving Average was invented by a trader who did not have a firm grasp of filter theory in hopes of reducing lag. (John F. Ehlers)
-
arts
- Trader
- Posts: 10
- Joined: Thu Nov 17, 2011 2:09 pm
Global Crosshairs / Crosshairs Always On Indicator
Hi Andy,
Its been a while since I've thought about this indicator. I dusted it off and had another look at it.
In fact its not a bug. if you have the global_crosshairs input set to true, the indi deliberately turns off autoscroll on all other charts.
The indi uses the ChartNavigate() function to align the other charts with the time point you are looking at on the controlling chart. That could be some way to the left. If Autoscroll was allowed to be on, each of those other charts would jump to the end every time it received a fresh tick - kind of defeating the purpose of the indi...
John
Its been a while since I've thought about this indicator. I dusted it off and had another look at it.
In fact its not a bug. if you have the global_crosshairs input set to true, the indi deliberately turns off autoscroll on all other charts.
The indi uses the ChartNavigate() function to align the other charts with the time point you are looking at on the controlling chart. That could be some way to the left. If Autoscroll was allowed to be on, each of those other charts would jump to the end every time it received a fresh tick - kind of defeating the purpose of the indi...
John
-
Raj4x
Global Crosshairs / Crosshairs Always On Indicator
Awesome.
Can not believe (well, actually I do believe) that MetaCrap has not made that a default setting...
Will try on latest Empty4 build and report back should this no longer work.
Cheers and thanks

Can not believe (well, actually I do believe) that MetaCrap has not made that a default setting...
Will try on latest Empty4 build and report back should this no longer work.
Cheers and thanks
- fiox
- Trader
- Posts: 151
- Joined: Wed Feb 18, 2015 6:16 pm
- Location: Italy
Global Crosshairs / Crosshairs Always On Indicator
Simply magnificent. Thank you arts and guys for reporting to light this indi