OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Randy H

Member

Posts: 10

Joined: 8/12/2011
Location: Houston,TX

User Profile
 
Subject : RE: OP & GXTrader
Posted : 8/14/2011 7:17 PM
Post #19538 - In reply to #19398

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]

Attached file : modGXT.txt (4KB - 553 downloads)
Attached file : GXTrader_Login.zip (0KB - 497 downloads)

Deleting message 19538 : RE: OP & GXTrader


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.