I am storing the value of a net stake of a selection however the stored value is always positive number regardless if the net stake is positive or negative.
Is this a bug or is that normal that the stored value of a net stake of a selection is always a positive number?
The stored value of the "Net stake of a selection" is always a positive number.
-
- Posts: 19
- Joined: Sat Jan 02, 2010 4:21 pm
You are right you cannot place an order that is less than £0, however I have a feeling that my original question is not clear enough.
Let me give you an example that should clarify what I meant with positive or negative net stake.
Assume you are on the ladder interface and you placed a £10 back bet with 1 tick offset at odds 1.67.
Once the back bet is matched the net stake is £10. The background colour of the net stake box in ladder interface is pink and that is also your maximum liability. (see attachment)
Let's say the offset bet got matched at 1.66 and you have a guaranteed profit of £0.10. The net stake is now £0.10 and the background colour of the net stake box is blue. (see attachment)
The rule I created saves both net stakes (£10 and £0.10) however both values are saved as positive numbers. I would expect the rule to save the £10 (pink background) as -10 and £0.10 (blue background) as +0.10
You do not have the required permissions to view the files attached to this post.
They are both still positive values, the background colour is just to show you if you need to place a back or lay bet of that value to reduce your Net stake down to £0.00zadorozhnia wrote: ↑Wed Jun 02, 2021 5:47 pmYou are right you cannot place an order that is less than £0, however I have a feeling that my original question is not clear enough.
Let me give you an example that should clarify what I meant with positive or negative net stake.
Assume you are on the ladder interface and you placed a £10 back bet with 1 tick offset at odds 1.67.
Once the back bet is matched the net stake is £10. The background colour of the net stake box in ladder interface is pink and that is also your maximum liability. (see attachment)
10 net stake pink.JPG
Let's say the offset bet got matched at 1.66 and you have a guaranteed profit of £0.10. The net stake is now £0.10 and the background colour of the net stake box is blue. (see attachment)
10 net stake blue.JPG
The rule I created saves both net stakes (£10 and £0.10) however both values are saved as positive numbers. I would expect the rule to save the £10 (pink background) as -10 and £0.10 (blue background) as +0.10
So in your first image you'd need to place a £0.10 back bet
the second a £10.00 lay bet
-
- Posts: 19
- Joined: Sat Jan 02, 2010 4:21 pm
Thank you for your answer.Dallas wrote: ↑Wed Jun 02, 2021 7:33 pmThey are both still positive values, the background colour is just to show you if you need to place a back or lay bet of that value to reduce your Net stake down to £0.00zadorozhnia wrote: ↑Wed Jun 02, 2021 5:47 pmYou are right you cannot place an order that is less than £0, however I have a feeling that my original question is not clear enough.
Let me give you an example that should clarify what I meant with positive or negative net stake.
Assume you are on the ladder interface and you placed a £10 back bet with 1 tick offset at odds 1.67.
Once the back bet is matched the net stake is £10. The background colour of the net stake box in ladder interface is pink and that is also your maximum liability. (see attachment)
10 net stake pink.JPG
Let's say the offset bet got matched at 1.66 and you have a guaranteed profit of £0.10. The net stake is now £0.10 and the background colour of the net stake box is blue. (see attachment)
10 net stake blue.JPG
The rule I created saves both net stakes (£10 and £0.10) however both values are saved as positive numbers. I would expect the rule to save the £10 (pink background) as -10 and £0.10 (blue background) as +0.10
So in your first image you'd need to place a £0.10 back bet
the second a £10.00 lay bet
If I am manually trading, by looking at the background colour I know whether I need to back or lay the selection to reduce the net stake.
In "automation mode" I cannot figure it out how I can reduce the net stake considering that the stored value "of net stake of a selection" reported in the log is always a positive number regardless whether it needs a back or a lay to be reduced.
If the log would have reported a negative number when a lay bet is needed to reduce the net stake and a positive number when a back is needed to reduce the net stake then I would be able to create a rule that can reduce the net stake according to my criteria. I hope it makes sense.
This file will show the green direction as a number.
-1 lay bet
0
1 back bet .
You can put GREEN DIRECTION into an additional info slot in the ladder settings to get a visual view of what is required.
You would then back / lay depending on the GREEN DIRECTION number.
-1 lay bet
0
1 back bet .
You can put GREEN DIRECTION into an additional info slot in the ladder settings to get a visual view of what is required.
You would then back / lay depending on the GREEN DIRECTION number.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 19
- Joined: Sat Jan 02, 2010 4:21 pm
Thank you for sharing that rule. That's very helpful.Dabbla wrote: ↑Thu Jun 03, 2021 8:04 amThis file will show the green direction as a number.
-1 lay bet
0
1 back bet .
You can put GREEN DIRECTION into an additional info slot in the ladder settings to get a visual view of what is required.
You would then back / lay depending on the GREEN DIRECTION number.
(DATA) GREEN DIRECTION.baf
This morning I have actually worked out a similar rule to yours storing the value of the "close trade's profit with greening at a price" but setting the price at 1000 rather than 1.01.
Yours is definetely tidier than mine
