Greening up

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Tiger
Posts: 64
Joined: Wed Mar 29, 2023 8:41 pm

I would like to green up when I've made a profit of say 10% on my initial bet when in play.

I tried offsetting with greening but this didn't green up on over 10 markets and I ended up going from a winning to losing position on most of them.

How can I put this into an automation rule. 10% will vary depending on the bet size and I don't want to have to work out what it would be and change it every time I implement the rule.
User avatar
Derek27
Posts: 25159
Joined: Wed Aug 30, 2017 11:44 am

Tiger wrote:
Sun Dec 17, 2023 4:13 pm
I would like to green up when I've made a profit of say 10% on my initial bet when in play.

I tried offsetting with greening but this didn't green up on over 10 markets and I ended up going from a winning to losing position on most of them.

How can I put this into an automation rule. 10% will vary depending on the bet size and I don't want to have to work out what it would be and change it every time I implement the rule.
Two possibilities. You could use a percentage offset, 10% if backing, 11.1% if laying.

Or you could have a separate green-up rule that greens a selection when your green profit is greater than 10% of your stake.
Tiger
Posts: 64
Joined: Wed Mar 29, 2023 8:41 pm

Two possibilities. You could use a percentage offset, 10% if backing, 11.1% if laying.

Or you could have a separate green-up rule that greens a selection when your green profit is greater than 10% of your stake.
[/quote]


How does the bot know what 10% of my stake is? Do I have to use stored values, if so how do I do that?
User avatar
ODPaul82
Posts: 819
Joined: Sun May 08, 2011 6:32 am

Tiger wrote:
Sun Dec 17, 2023 8:24 pm
Two possibilities. You could use a percentage offset, 10% if backing, 11.1% if laying.

Or you could have a separate green-up rule that greens a selection when your green profit is greater than 10% of your stake.

How does the bot know what 10% of my stake is? Do I have to use stored values, if so how do I do that?
[/quote]

https://www.betangel.com/user-guide/clo ... rofit.html

Add a condition to your green up rule to green up when an amount is hit
User avatar
Derek27
Posts: 25159
Joined: Wed Aug 30, 2017 11:44 am

Tiger wrote:
Sun Dec 17, 2023 8:24 pm
Two possibilities. You could use a percentage offset, 10% if backing, 11.1% if laying.

Or you could have a separate green-up rule that greens a selection when your green profit is greater than 10% of your stake.

How does the bot know what 10% of my stake is? Do I have to use stored values, if so how do I do that?
[/quote]

If you use a 10% offset, if you place a back bet at 5.5, the offset should be at 5. If you use a greening offset then it will automatically lay for 110% of your stake, netting a 10% profit if matched.

If you use a rule to green, you can calculate your stake by taking the PL of a selection you haven't traded and multiply by -1, assuming your trade was a back bet.
User avatar
Dallas
Posts: 23596
Joined: Sun Aug 09, 2015 10:57 pm

There's an example here in the form of a Servant, but you can easily use it as or copy it into an automation file
viewtopic.php?f=58&t=20089
Post Reply

Return to “Bet Angel - Automation”