Automated Trading From Excel

Discussion in 'Automated Trading' started by sle, Apr 21, 2006.

  1. sle

    sle

    True. I need to use subs to keep track of the trades that where done and to keep a small history of last N ticks. Otherwise, the decision to rebalance can be all done from a single function.
     
    #11     Apr 23, 2006
  2. Have you considered the TT X_Trader API? They have open source programming available for order entry automation. After joining the TT Developer Program, users are granted access to documentation, training materials, samle code and more.

    http://www.tradingtechnologies.com/xtrader-api.asp
     
    #13     Apr 24, 2006
  3. I assume you're referring to the RtUpdate & RtGet functions.
    If so, use RtUpdate as this fires off the worksheet_change event.
    So, you now know the cell that has changed (using a check that the intersect of Target and MyCell is not nothing) you can iterate thru it's dependents.
     
    #14     Apr 27, 2006
  4. koye

    koye


    b) You can always define some VBA User Defined function to detect any changes on the cells that you're interested and Excel will trigger your UDF function when any of the monitoring cell changes.

    For example, you wan to monitor any changes in cells A1, B1, C1. Assuming that these cells are getting the Reuter's
    data.

    In vba, you can write a function like the following:

    public Function MonitorCell(
    byval x as String, _
    byval y as String, _
    byval z as String) as String

    '' do some calculation, send trade etc...

    End Function

    and you can put this function in Cell D1 as
    = MonitorCell(A1,B1,C1)
     
    #15     Apr 28, 2006