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
you may want to checkout the pairs response in tradelink, which is free and open source and supports blackwood. here is a visual representation of the pairs response : (it presently uses multiplication to compute the pair but you could switch it to subtraction in your example). here is the code : http://tradelink.googlecode.com/svn/trunk/Responses/PairsResponse.cs if you have questions join the users group : http://groups.google.com/group/tradelink-users
Thank-you tradelink. Your solution is not what I need. Is there anyone who can help me to write this sevenliner in BlackWood Api ?