NexusFi: Find Your Edge


Home Menu

 





Get Autohotkey to work with Sierra Chart?


Discussion in Sierra Chart

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




 
Search this Thread

Get Autohotkey to work with Sierra Chart?

  #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: 844

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?
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
About a successful futures trader who didnĀ“t know anyth …
Psychology and Money Management
 
  #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,215
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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts