NexusFi: Find Your Edge


Home Menu

 





Get Autohotkey to work with Sierra Chart?


Discussion in Sierra Chart

Updated
    1. trending_up 5,012 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 845

Anyone know how to get Autohotkey to work with Sierra Chart?

I want to simply have two mouse clicks and I originally tried

 
Code
^Numpad1::
Click 1201, 186
Click 1629, 186
and then I tried

 
Code
^Numpad1::
CoordMode ,Mouse,Relative
WinActivate, Sierra Chart
sleep,100
Click 1201, 186
Click 1629, 186
the latter modifications based upon a post I found by Kiwi, but it's still not working. Any help would be appreciated. Thanks.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
Ceasefire in Name Only: Three Numbers That Define the Ir …
Prediction Markets & Event Contracts
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #3 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,216
Thanks Received: 2,090



vegasfoster View Post
Anyone know how to get Autohotkey to work with Sierra Chart?

I want to simply have two mouse clicks and I originally tried

 
Code
^Numpad1::
Click 1201, 186
Click 1629, 186
and then I tried

 
Code
^Numpad1::
CoordMode ,Mouse,Relative
WinActivate, Sierra Chart
sleep,100
Click 1201, 186
Click 1629, 186
the latter modifications based upon a post I found by Kiwi, but it's still not working. Any help would be appreciated. Thanks.

Probably the window is not recognized. For this kind of script I suggest to use the AutoscriptScriptWriter (recorder), kinda wizard that makes things easier. Also when you use Winactivate, Sierra Chart and you have different windows with similar names on your workspace, you want to make sure it is the right one; to turn around you can use the function:

SetTitleMatchMode

parameters are:
1: A window's title must start with the specified WinTitle to be a match.(default)
2: A window's title can contain WinTitle anywhere inside it to be a match.
3: A window's title must exactly match WinTitle to be a match.

also, be careful when assigning the Numpad1 a specific function, as long as the script is running (green H in your tray) this key will always stay active and could be mistyped leading to actions you would not like. Solutions are:
1) Pause the script
2) SetTitleMatchMode=1 (the script will work only in the specified window)


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on March 21, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts