Login Page - Create Account

Support Board


Date/Time: Fri, 21 Mar 2025 08:57:09 +0000



Post From: Trading using Macros

[2016-09-01 01:36:05]
User866531 - Posts: 14
This is true because the translation from a keyboard shortcut to the corresponding trading message is handled by the operating system and then sent to the active Sierra Chart window.

What you would need to do is somehow activate the chart window first that you want the keyboard shortcut to go to. It is OK if it was the last active window if some other program is active.


So does that mean I should look for some solution at the Windows level first with a macro that will find Sierra Charts and then chain the order entry macro after that?

Something like this possibly?
https://www.autohotkey.com/docs/Tutorial.htm

I haven't had a good look at it yet as I only found it this morning but it mentions : 4 -Running Programs & Websites.

There is also mentioned - 2 - Hotkeys & Hotstrings ; "b Windoes Specific Hotkeys/Hotstrings"
"These special commands (technically called "directives") create context-sensitive hotkeys and hotstrings. Simply specify a window title. But in some cases you might want to specify an HWND, group, or class. Those are a bit advanced and are covered more in-depth here: #IfWinActive. "


Not sure if that would relate to finding a already open program on the desktop and how to bring one specific chart in that program to the front to be active so that the order entry macro can trigger.
Would that be along the right path to start looking at for a solution?

Thanks