The stored value of the "Net stake of a selection" is always a positive number.

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
zadorozhnia
Posts: 19
Joined: Sat Jan 02, 2010 4:21 pm

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?
jamesg46
Posts: 3772
Joined: Sat Jul 30, 2016 1:05 pm

Ney stake will always be positive, you cant put a stake into the market that is less than £0
zadorozhnia
Posts: 19
Joined: Sat Jan 02, 2010 4:21 pm

jamesg46 wrote:
Wed Jun 02, 2021 5:15 pm
Ney stake will always be positive, you cant put a stake into the market that is less than £0
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)
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
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

zadorozhnia wrote:
Wed Jun 02, 2021 5:47 pm
jamesg46 wrote:
Wed Jun 02, 2021 5:15 pm
Ney stake will always be positive, you cant put a stake into the market that is less than £0
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)

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
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.00

So in your first image you'd need to place a £0.10 back bet
the second a £10.00 lay bet
zadorozhnia
Posts: 19
Joined: Sat Jan 02, 2010 4:21 pm

Dallas wrote:
Wed Jun 02, 2021 7:33 pm
zadorozhnia wrote:
Wed Jun 02, 2021 5:47 pm
jamesg46 wrote:
Wed Jun 02, 2021 5:15 pm
Ney stake will always be positive, you cant put a stake into the market that is less than £0
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)

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
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.00

So in your first image you'd need to place a £0.10 back bet
the second a £10.00 lay bet
Thank you for your answer.
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.
User avatar
Dabbla
Posts: 827
Joined: Wed Apr 15, 2009 1:50 pm

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.
(DATA) GREEN DIRECTION.baf
You do not have the required permissions to view the files attached to this post.
zadorozhnia
Posts: 19
Joined: Sat Jan 02, 2010 4:21 pm

Dabbla wrote:
Thu Jun 03, 2021 8:04 am
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.

(DATA) GREEN DIRECTION.baf
Thank you for sharing that rule. That's very helpful.
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 :-)
Post Reply

Return to “Bet Angel - Automation”