Trading Events. Introduction

Section for discussions related to indicators, use of indicators, and building of trading stategies using indicators.

Moderator: admin

Trading Events. Introduction

Postby gmiller » Thu Sep 13, 2012 11:25 am

Problem description
Let us assume that we want to create strategy based on trading activity: remove all pending orders when a position is closed, for instance. Traditionally we always think linearly: for every price update, if some conditions met do that, otherwise - do other. And to reach out goal we have to scan whole trade table to find out the position is left; and now a question: what to do when there are no prices updates? Looks like, the idea is about to impossible to implement.

Solution
What we need, ideally, is to lookup trading tables only when there is a trading activity related to the strategy instance. How we can make it done? A solution is quite simple: use subscription for trading events...

See more : Event driven strategy programming. Trading Events. Introduction
gmiller
 
Posts: 11
Joined: Thu Feb 09, 2012 3:22 pm

Return to Discussions

Who is online

Users browsing this forum: No registered users and 17 guests