It's time to finally complete the management of the players at "logical" level, so that we have a complete set of tools which allows us to change the "logic representation" of a given set of entries waiting to be closed.
It is important to realize that a given set of "physical" orders can have, at the logical level of the players, infinite representations, and clearly sometimes it is useful to switch from a representation to another one.
Let's see this, starting with simple examples and gradually escalate our insight.
Imagine we have an ETF, TNA for instance and place 3 "automated entries":
BUY 100 @ 78.33
BUY 200 @ 78.41
SELL 301 @ 78.36
Now to each "real" order which has been executed, there is "naively" associated a player (here represented by a square), that is a logic unit which is keeping all the information about the entry and also follows independently the rules to automatically close and any other rules defined by the scalping/hedging game fixed by the fund manager.
At this, say "naive", level there is a one-to-one correspondence between entries and players. Now let's make the "conceptual leap" which will be useful to deal with more complex situations.
Look at the picture above: we have our 3 players, and if we look into the yellow rectangle, the monitor is telling us something. It says:
The meaning of this text is pretty simple. Since the buys are:
BUY 100 @ 78.33
BUY 200 @ 78.41
we have Buy 300 @ 78.38, where 78.38 represents the average buy price.
Similarly, 301 @ 78.36, represents the sell side (in this case it is coincident with the unique sell we have made: SELL 301 @ 78.36. If we had more, clearly we would have the cumulative position and the average price, just like we have for the buy side.)
Now, let's look at where it says: Equiv: -1 @ 71.36. What does it mean ?
This is saying that the 3 players, taken together, are globally "equivalent" (reasoning in terms of price and position alone) to have just 1 sell player of 1 share @ 71.36. In practice, the 2 buys have the effect to lower the price of the unique sell we have made, and this is completely intuitive: it's like we had sold just 1 share at a "less convenient" price (instead of 301 @ 78.36).
Now, what would change if we replaced the 3 players with a unique player Sell 1 @ 71.36 ?
Well, we have now the feature to do it and let's do it:
proceeding with the "grouping" we get a unique player:
Now what has changed ? If you look at the PNL figure, of course it has remain unchanged. This is obvious because it is completely independent of the players and based on the "physical" (real) orders actually executed.
If we look at the text on the screen, as before, we notice that the global player situation has also remained unchanged,and in fact we have:
so the equivalent position and price is always the same.
Now, it becomes obvious that we can play all the "alchemical" transformations
we want on the players passing from an equivalent representation to another one. And this is useful to change the "logic view" of a given set of orders.
Let's now make a step ahead. I have discussed previously the "splitting" feature, where we could take 1 sell player and split into multiple sell players. Or we could take 1 buy player and then split it into multiple buy players.
As cursory remark, I noted that given 1 player, there are of course infinite equivalent representations. I also mentioned the possibility to represent it with a combination of buy/sell players. This seemed kind of mind blowing and heretic when we mentioned it, but now we are actually in a position to achieve this result easily, and actually it will turn out handy.
In fact, I have added now a "binary splitter" which allows representing 1 player through 2 players: 1 buy and 1 sell, of arbitrary sizes and prices (chosen by the manager). Since we already have the feature to further split a single buy or a single sell, this actually quite completes the set of tools we need for "logical manipulation" of the players.
Let's see a practical case, by continuing our TNA example above. (Later we will see an application on a complex real-world situation, where it actually makes sense and it is very useful to provide a more meaningful representation of our open players.)
So we apply our "binary splitter" to get a representation in terms of 1 sell and 1 buy (which can be later further split if we want to):
where the "previewer" text is saying:
and we get this new representation:
Note how after all these transformations nothing has essentially changed (certainly not the PNL, nor the average position of all players):
but, in general terms, we may get a representation which is far more useful to trade within a given price range.
An example of application might be case where our average has been thrown outside the typical trading range of the instrument: with this sort of conceptual alchemy
we are able to somehow "recenter" the game in a more meaningful trading range. This is a pretty powerful conceptual tool which can come handy in several situations. In other words, nothing changes about the "physical orders" which have been executed: what changes is merely the "logical" representation of them, and therefore also the scheme which is eventually applied to recover the losing players.
In a next post, I will explain in some detail how the "binary splitter" works and how the 2 buy/sell players are obtained through this feature I have just added. We will see there are a couple of parameters (one about "sizing" and one about "spacing") which in practice give us infinite freedom in choosing the "representation" that we like and that is most useful for our purposes.
It is important to realize that a given set of "physical" orders can have, at the logical level of the players, infinite representations, and clearly sometimes it is useful to switch from a representation to another one.
Let's see this, starting with simple examples and gradually escalate our insight.
Imagine we have an ETF, TNA for instance and place 3 "automated entries":
BUY 100 @ 78.33
BUY 200 @ 78.41
SELL 301 @ 78.36
Now to each "real" order which has been executed, there is "naively" associated a player (here represented by a square), that is a logic unit which is keeping all the information about the entry and also follows independently the rules to automatically close and any other rules defined by the scalping/hedging game fixed by the fund manager.
At this, say "naive", level there is a one-to-one correspondence between entries and players. Now let's make the "conceptual leap" which will be useful to deal with more complex situations.
Look at the picture above: we have our 3 players, and if we look into the yellow rectangle, the monitor is telling us something. It says:
Code:
open players: Buy 300 @ 78.38, Sell 301 @ 78.36, Equiv: -1 @ 71.36
The meaning of this text is pretty simple. Since the buys are:
BUY 100 @ 78.33
BUY 200 @ 78.41
we have Buy 300 @ 78.38, where 78.38 represents the average buy price.
Similarly, 301 @ 78.36, represents the sell side (in this case it is coincident with the unique sell we have made: SELL 301 @ 78.36. If we had more, clearly we would have the cumulative position and the average price, just like we have for the buy side.)
Now, let's look at where it says: Equiv: -1 @ 71.36. What does it mean ?
This is saying that the 3 players, taken together, are globally "equivalent" (reasoning in terms of price and position alone) to have just 1 sell player of 1 share @ 71.36. In practice, the 2 buys have the effect to lower the price of the unique sell we have made, and this is completely intuitive: it's like we had sold just 1 share at a "less convenient" price (instead of 301 @ 78.36).
Now, what would change if we replaced the 3 players with a unique player Sell 1 @ 71.36 ?
Well, we have now the feature to do it and let's do it:
proceeding with the "grouping" we get a unique player:
Now what has changed ? If you look at the PNL figure, of course it has remain unchanged. This is obvious because it is completely independent of the players and based on the "physical" (real) orders actually executed.
If we look at the text on the screen, as before, we notice that the global player situation has also remained unchanged,and in fact we have:
Code:
open players: Buy 0 @ 0.00, Sell 1 @ 71.36, Equiv: -1 @ 71.36
so the equivalent position and price is always the same.
Now, it becomes obvious that we can play all the "alchemical" transformations
we want on the players passing from an equivalent representation to another one. And this is useful to change the "logic view" of a given set of orders.Let's now make a step ahead. I have discussed previously the "splitting" feature, where we could take 1 sell player and split into multiple sell players. Or we could take 1 buy player and then split it into multiple buy players.
As cursory remark, I noted that given 1 player, there are of course infinite equivalent representations. I also mentioned the possibility to represent it with a combination of buy/sell players. This seemed kind of mind blowing and heretic when we mentioned it, but now we are actually in a position to achieve this result easily, and actually it will turn out handy.
In fact, I have added now a "binary splitter" which allows representing 1 player through 2 players: 1 buy and 1 sell, of arbitrary sizes and prices (chosen by the manager). Since we already have the feature to further split a single buy or a single sell, this actually quite completes the set of tools we need for "logical manipulation" of the players.
Let's see a practical case, by continuing our TNA example above. (Later we will see an application on a complex real-world situation, where it actually makes sense and it is very useful to provide a more meaningful representation of our open players.)
So we apply our "binary splitter" to get a representation in terms of 1 sell and 1 buy (which can be later further split if we want to):
where the "previewer" text is saying:
Code:
Original player: CT_SELL 1 @ 71.36
Avg of new players: 71.36
Global signed position of new players: -1
Distance of new opposite player: 7.14 (10.00%)
Price range: [78.16, 78.50] 0.48%
CT_BUY 20 @ 78.50 (Reversing) Value: 1,569.92
CT_SELL 21 @ 78.16 (Reversing) Value: 1,641.28
and we get this new representation:
Note how after all these transformations nothing has essentially changed (certainly not the PNL, nor the average position of all players):
Code:
open players: Buy 20 @ 78.50, Sell 21 @ 78.16, Equiv: -1 @ 71.36
but, in general terms, we may get a representation which is far more useful to trade within a given price range.
An example of application might be case where our average has been thrown outside the typical trading range of the instrument: with this sort of conceptual alchemy
we are able to somehow "recenter" the game in a more meaningful trading range. This is a pretty powerful conceptual tool which can come handy in several situations. In other words, nothing changes about the "physical orders" which have been executed: what changes is merely the "logical" representation of them, and therefore also the scheme which is eventually applied to recover the losing players.In a next post, I will explain in some detail how the "binary splitter" works and how the 2 buy/sell players are obtained through this feature I have just added. We will see there are a couple of parameters (one about "sizing" and one about "spacing") which in practice give us infinite freedom in choosing the "representation" that we like and that is most useful for our purposes.
Last edited: