Randy H![]() Member Posts: 10 Joined: 8/12/2011 Location: Houston,TX ![]() | Success! I was able to create an external vbs script and feed the username and password from the module Matt created to start the TWS program. Common.txt was modified in the SetupOT function to add the call to LoadGXT as shown below: '---------------------------------------------------------------------------------------- ' Name: SetupOT ' Purpose: Setup OT to use the specified profile, list, strategy, timeframe, etc. ' Arguments: oBot Script parameters ' Returns: Whether everything was successful Friend Function SetupOT(oBot As Script.TradeBotParams) As Boolean Dim sFileName As String If oBot.BrokerName = "GXTrader" Then LogAction("Loading the GXTrader_Login script", enuLogImportance.enuInformation) ' Log action Call LoadGXT ' Load the GXTrader Login script End If LogAction("Setting up your OmniTrader Environment", enuLogImportance.enuInformation) ' Log action StartOT() ' Start OT I've attached the modGXT.txt and GXTrader_Login.vbs file Enjoy - of course no warranty but I will try to answer any questions. [Edited by Randy H on 8/15/2011 12:40 PM] ![]() ![]() |