NexusFi: Find Your Edge


Home Menu

 





Get Autohotkey to work with Sierra Chart?


Discussion in Sierra Chart

Updated
    1. trending_up 5,093 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?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
 
  #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