Jump to content

Doesnt seem to work with tradestation 9.1?


 Share

Recommended Posts

Im trying to write a script to automate some things in tradestation 9.1 and it seems any kind of automated input simply does not work with tradestation. I tried autohotkey and it does not work either.

I assume this is because there are some built in countermeasures in tradestation to prevent automated input. Im curious if anyone has run into this problem with tradestation or any other programs and if there is any way around it?

I was thinking of just writing what I need in c++ but I have a feeling it still might not work.

Any ideas?

Thanks for any help

Link to comment
Share on other sites

What does the AutoIt Window Info Tool display for the controls you try to automate?

What have you tried so far? Can you post the code?

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Im just trying a very basic script before I do anything major. Ultimately I want to do some automated data downloading but right now im just trying to make anything work:

WinWaitActive("TradeStation 9.1 - Desktop #1 - StockResearch1")

Send("This is a test")

MsgBox(0, "Tutorial", "Hello World!")

The message box comes up but the text does not get entered. When used on notepad the text gets entered fine. Exact same deal with autohotkey, I can get it to beep when the script is run but mouse clicks and keyboard input do nothing at all.

Link to comment
Share on other sites

I would give ControlSend a try because Send is not very reliable for what you try to do.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

I tried

ControlSend("TradeStation 9.1 - Desktop #1 - StockResearch1", "", "[CLASSNN:Edit47]", "test string")

and it does nothing in tradestation.

Also the mouse clicks work if im doing it for notepad but does nothing for tradestation.

MouseClick("left", 1220, 298, 2) - Works in notepad but does nothing if tradestation is the active window

Edited by elmutt
Link to comment
Share on other sites

What's the return value of ControlSend?

$iResult = ControlSend("TradeStation 9.1 - Desktop #1 - StockResearch1", "", "[CLASSNN:Edit47]", "test string")
MsgBox(0, "", "Result: " & $iResult)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Moderators

Is this an actual desktop app, or are you trying to enter data into the website itself? From the website (albeit without creating an account) it appears it is all web based, which if it is Java may make it very difficult to interact with.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...