C Sharp .NET API Help

Discussion in 'Automated Trading' started by MoonWalker99, Jan 18, 2011.

  1. Hello all,

    I need a light help from a api programmer:
    I am trying to get started with programming in Blackwood API in c sharp.

    I have self started a few thing before and believe that if someone helps to program the logic below, I would have a start base.

    The logic that I am trying program is below. Blackwood does have pair functionality built in, but that is beside the point. I need to program the below logic and make it run live.

    SymbolOne = IBM
    SymbolTwo = GE

    SizeOne = 100
    SizeTwo = 200

    OneTwoDiff = SymbolOne.LastPrice - SymbolTwo.LastPrice

    If (OneTwoDiff>25) and (No current positionin Symbol One and Two = 0 Then

    (begin block)
    Short SymbolOne SizeOne Market
    Buy SymbolTwo SizeTwo Market
    (End block)


    Thank you very much
     
  2. Thank-you tradelink. Your solution is not what I need.

    Is there anyone who can help me to write this sevenliner in BlackWood Api ?