Hi,
I'm completely novice at any of this and need some help to know if the following can be automated with macros and hopefully some pointers in how I should go about learning to do it if its possible.
Application - Futures Trading platforms that support the use of macros.
My issue is that I'm trying to see if it can function as I need if I try and setup a trading keyboard (
http://www.keyboardtrader.com/customize ... board.html) with 3 separate macros for each key press/switch that will then send the same action to 3 separate platforms.
(1 = Sierra Charts (SIM), 2 = Sierra Charts (LIVE), 3 = NinjaTrader 8 (SIM).)
I've switch the majority of my trading over to Sierra Charts but I've had to keep NT for some 3rd party add ons that I can't find on any other platform which I use to find entries/exits. I've been executing on (2) Sierra Charts (LIVE) but I'm finding it difficult when scalping to track the exact price level of my live order entry and stop price level (that's on SC) while looking at the Jigsaw DOM on NT.
So I started looking around for some option that would allow a macro button solution so that when I entered a live trade on (2) Sierra Charts (LIVE), that same order would be entered as a SIM trade on (1) Sierra Charts (SIM) and (3) NT8 (SIM) and show the same order price levels on the Jigsaw DOM as the order price levels on the live trade on Sierra Charts that is executing the live trade to the broker. Then I only need to closely watch one screen and it will have the same order entry price levels showing as the LIVE order.
The software for the keyboard (
http://www.access-is.com/softprog.php) allows "layering" (Multiple macros) on the same key.
I've been trying to test the concept using the current keyboard I have (Roccat MK Pro) and setup the same macro key sequence (Buy Market = CTRL+Numpad0) in Sierra Charts and (Buy Market = CTRL+Numpad0) in Ninjatrader 8. (This would not be the case with the dedicated trading keyboard - each platform would get its own unique macro sequence for each task but the 3 unique macros would be bound to the same key press).
The problem I seem to be running into is that it will only execute the macro on whatever chart that has been clicked on to "bring it to the front" in Windows (Running Windows 8.1). So if I first click on Sierra charts chart, then CTRL+Numpad0 it will execute the Buy order on SC. Then if I click on NT8 chart and press CTRL+Numpad0, it will execute the Buy order on NT8.
Each platform forces the chart to be clicked on first to become "active" and only then will it accept the macro sequence. I've talked to Sierra Charts support and they said I should explore trying to find a solution with AutoHotKey.
Is it possible to write a hotkey/script so that when a key is pressed (EG for a Buy market order), it will first make the required platform chart "active" and then execute the order on that platform, and that this same process can be executed for 3 separate platforms?
EG
Buy At Market button =
Make Sierra Charts LIVE chart# "active" - Execute Buy order
Make Sierra Charts SIM chart# "active" - Execute Buy order
Make Ninjatrader 8 SIM chart# "active" - Execute Buy order
Macros ideally would be all tied to one button on the keyboard (linked at start) or if that isn't possible, tie each macro to one key-switch and use dual or quad key caps so that 2 or 4 key-switches are activated at the same time. The keyboard in the above link has software that allows "layering" of macros (2 layers) on the same switch. From what I can gather this should allow 3 macros to a switch. Would that software (
http://www.access-is.com/softprog.php ) be able to be used with AutoHotKey? In the end result, I would like to have a key on the keyboard that would switch all the LIVE platform macros off/on as needed but still allow the others to function as normal but that is some ways off.
Is there a solution or workaround to getting this to all work as I've described? Will AutoHotKey be the right path to start going down?
The trading platforms allow macros for a range of functions EG Order entry, cancel, cancel all, flatten, flatten all and so on. Each function will be tied to a separate key/switch. From what I can gather they will use the same setup in AutoHotkey/Pulover's Macro Creator, but with a change to what platform order specific marco to send.
I'm only trying to trade 1 instrument at a time - 30yr Treasuries ZB. But I also have 10yr and 5yr charts and DOMs running over a total of 4 screens.
So far I have started looking at AutoHotKey and read some limited documentation. I think I need to use
#IfWinExists - to identify if the correct windows is running, then
#WinActivate - to make the correct Window active, then
^numpad0 - CTRL numpad0 to launch the macro that is needed from the platform to enter the trade.
In Pulover's Macro Creator I have found :
Window - command: WinActivate ; WinTitle (Clicked on correct chart in Sierra Charts)
Text - Text with commands: ^Numpad0
I press play and nothing happens. This is the first time I've attempted anything like this and I feel lost in how to approach it.
How do I setup a macro key combination at the start that will then trigger everything else to start? EG: To test the concept on the current keyboard, I'd like to set it up so that when SCROLL Lock is turned ON it will make the keyboard active to trade from and have the "Buy Market" macro launched by pressing "Numpad0" button on the keyboard.
What else am I missing. There has to be fair amount I think.
If there are any more details that might help, please let me know.
Thanks