Trying to green up several markets for same event with keyboard shortcut

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
RobberBaron
Posts: 16
Joined: Wed Dec 02, 2020 10:14 pm

Hi Dallas,

I've read several threads regarding automation that have caught my attention and these have a good applications for Manual Trading In-Play.

1) One thread about - Using servant rule - using Keyboard shortcut to green up with 10%, 20%, 30%, 40%, 50% profit. This is only applicable to that one-click/ladder screen market.
2) Another thread about greening up several markets in the same event when a shared profit is reached between the markets.

The scenario I'm playing around with is when I'm manually trading in play several Football markets at the same time for the same event. e.g. Match Odds, Over/Under 1.5 Goals and Correct Score market.

At the moment I'd have 3 windows open for these markets and I would have to click selection in all 3 open windows with Keyboard shortcut to Green Up filled/partially filled bets.

What I'm trying to implement is a rule, that no matter which open Market window I click, all the Markets for that Event will Green Up.

Here's my current logic.

1) Open trades on several markets within same event. e.g. Match Odds, Correct Score, Over/Under 1.5 goals, etc.
2) At any time during event, press keyboard shortcut, in any open Market window for that event. e.g Match Odds for argument sake
3) Send signal to all other markets for the event.
4) All unmatched bets are cleared, in all markets.
5) Green Up all selections in all Markets
6) Then be able to repeat all steps 1-> 5 as many times as possible. After initial green ups, keep adding further bets, and still be able to green up again later.

This file is to be used for the keyboard shortcut.
Test - Green Up Manual Servant.baf
These 2 files are to be added to the appropriate market via Guardian. (These 2 files contain the same rules, essentially it could be 1 generic rules files applied to appropriate markets.)
Test - Over Under 3.5 Goals.baf
Test - Match Odds.baf
The issue I have is that the Keyboard shortcut rules file will only Green Up the current market. It wont send a signal to other markets in the event to Green Up. If I've read threads correctly, Signals are like stored Values that are shared between markets in the same event.

Obviously, I've got something mixed up either in conditions or in logic.

If you can put on the right path that would be great.

Thank you in advance.
You do not have the required permissions to view the files attached to this post.
RobberBaron
Posts: 16
Joined: Wed Dec 02, 2020 10:14 pm

Quick question, hopefully someone can answer.

I'm experimenting with a Rule file that will run as a Servant when a keyboard shortcut is pressed it sends a Signal or a Stored Value to a separate Rule file running in Guardian.

The basic experiment set up is as follows:

Servant Rule A File: contains 2 rules:
1) Rule to stop All Others Servants:
General - Always Armed, Applies to Servant Context Selection,
Parameters: Applied to market, Conditions: none,
Signals: none,
Stored Values:
SV name "increment" for "the market" and is "shared" and increments itself.

2) Rule to "Set/Modify SV" :
General: Always Armed,
Parameters: None,
Conditions: "Stored Value Changed Condition",
SV name: "increment"
for: "the Market"
changed between: "0" and "2" seconds ago
Signals:
Signal for market:
Action: "set signal"
Signal Name: "foobar"
Value: "2"
Signal for current selection: None
Stored Values:
SV name "GreenUp" for "the Event" and is "shared" and increments itself.


Guardian Rule File B: Rules for Guardian rule file:
1) Rule to "Set/Modify SV" :
General: Always Armed,
Parameters: None,
Conditions: "Signal value Condition",
SV name: "foobar"
for: "the Market"
is: "equal to" value "2"
Signals:
Signal for market: None
Signal for current selection: None
Stored Values:
SV name "ThisRulePickedUpFoobar" for "the Event" and is "shared" and increments itself.

2) Rule to "Set/Modify SV" :
General: Always Armed,
Parameters: None,
Conditions: "Signal value changed Condition",
SV name: "increment"
for: "the Market"
changed between:"0" and "2" seconds ago
Signals:
Signal for market: None
Signal for current selection: None
Stored Values:
SV name "ThisRulePickedIncrementForMarket" for "the Event" and is "shared" and increments itself.

3) Rule to "Set/Modify SV" :
General: Always Armed,
Parameters: None,
Conditions: "Signal value changed Condition",
SV name: "GreenUp"
for: "the Event"
changed between:"0" and "2" seconds ago
Signals:
Signal for market: None
Signal for current selection: None
Stored Values:
SV name "ThisRulePickedGreenUpForEvent" for "the Event" and is "shared" and increments itself.

Everything that can be logged is turned on in all rule files.

The rule for Guardian is applied to a "Match Odds" market. Then manually I open this market odds market in a window "One-Click" or "Ladder" doesn't matter which. I set up the keyboard shortcut with the other rule.

The reason for setting up Servant Rule File A is to prove that:

a) signals generated by a rule file in Servant mode, will hang around and be picked up by a rules file running in Guardian. Signals are meant for individual markets or selections. Not the "Event" as I previously thought.
b) Stored Value for the market generated by a rule file in Servant mode, will hang around and be picked up by a rules file running in Guardian.
c) Stored Value for the Event generated by a rule file in Servant mode, will hang around and be picked up by a rules file running in Guardian

The issue is that neither signals or stored values created by the Servant Rule File A is being picked up the Guardian Rule File B, when both Rule files are applied to the same market. Can someone explain what is going?

I can see that both Stored Values "GreenUp" and "increment" are hanging around after the servant has been stopped. Surely this Stored Values at the Event and Market levels will be visible to the rules file running in Guardian. For some reason they aren't visible are noticed by the Guardian Rule file

This is the output to the log file of the Match odds market in Guardian:

"12/12/2020 14:34:13: [AS 409] : Automation Servant ( Test - Green Servant (Ver 2) ) Started ( Selection context: RKC Waalwijk. )
12/12/2020 14:34:13: [AS 409] : Store Value (Shared) for market: increment = 1 + 71 = 72
12/12/2020 14:34:13: [AS 409] : Store Value (Shared) for event: GreenUp = 1 + 51.02 = 52.02
12/12/2020 14:34:13: [AS 409] : Automation Signal for market: foobar = 2
12/12/2020 14:34:13: [AS 409] : Automation Servant ( Test - Green Servant (Ver 2) ) Stopped.
12/12/2020 14:34:16: [AS 410] : Automation Servant ( Test - Green Servant (Ver 2) ) Started ( Selection context: The Draw. )
12/12/2020 14:34:16: [AS 410] : Store Value (Shared) for market: increment = 1 + 72 = 73
12/12/2020 14:34:16: [AS 410] : Store Value (Shared) for event: GreenUp = 1 + 52.02 = 53.02
12/12/2020 14:34:16: [AS 410] : Automation Signal for market: foobar = 2
12/12/2020 14:34:16: [AS 410] : Automation Servant ( Test - Green Servant (Ver 2) ) Stopped.
12/12/2020 14:34:18: [AS 411] : Automation Servant ( Test - Green Servant (Ver 2) ) Started ( Selection context: FC Groningen. )
12/12/2020 14:34:18: [AS 411] : Store Value (Shared) for market: increment = 1 + 73 = 74
12/12/2020 14:34:18: [AS 411] : Store Value (Shared) for event: GreenUp = 1 + 53.02 = 54.02
12/12/2020 14:34:18: [AS 411] : Automation Signal for market: foobar = 2
12/12/2020 14:34:18: [AS 411] : Automation Servant ( Test - Green Servant (Ver 2) ) Stopped.
12/12/2020 14:37:51: [AS 412] : Automation Servant ( Test - Green Servant (Ver 2) ) Started ( Selection context: RKC Waalwijk. )
12/12/2020 14:37:51: [AS 412] : Store Value (Shared) for market: increment = 1 + 74 = 75
12/12/2020 14:37:51: [AS 412] : Store Value (Shared) for event: GreenUp = 1 + 54.02 = 55.02
12/12/2020 14:37:51: [AS 412] : Automation Signal for market: foobar = 2
12/12/2020 14:37:51: [AS 412] : Automation Servant ( Test - Green Servant (Ver 2) ) Stopped.
12/12/2020 14:37:57: [AS 413] : Automation Servant ( Test - Green Servant (Ver 2) ) Started ( Selection context: RKC Waalwijk. )
12/12/2020 14:37:57: [AS 413] : Store Value (Shared) for market: increment = 1 + 75 = 76
12/12/2020 14:37:57: [AS 413] : Store Value (Shared) for event: GreenUp = 1 + 55.02 = 56.02
12/12/2020 14:37:57: [AS 413] : Automation Signal for market: foobar = 2
12/12/2020 14:37:57: [AS 413] : Automation Servant ( Test - Green Servant (Ver 2) ) Stopped.
12/12/2020 14:38:36: [AS 414] : Automation Servant ( Test - Green Servant (Ver 2) ) Started ( Selection context: RKC Waalwijk. )
12/12/2020 14:38:36: [AS 414] : Store Value (Shared) for market: increment = 1 + 76 = 77
12/12/2020 14:38:36: [AS 414] : Store Value (Shared) for event: GreenUp = 1 + 56.02 = 57.02
12/12/2020 14:38:36: [AS 414] : Automation Signal for market: foobar = 2
12/12/2020 14:38:36: [AS 414] : Automation Servant ( Test - Green Servant (Ver 2) ) Stopped."

Any help will be appreciated.
RobberBaron
Posts: 16
Joined: Wed Dec 02, 2020 10:14 pm

Finally got this working :-)

I can now place manual bets in several markets for the same event and pressing a shortcut key in any of these markets "one-click" or "ladder" screens will green-up markets for the event running the rule file in guardian.

So far the testing is going well.

Only concern I have is when it Greens Up first time. This works. Its just when placing new bets after green up, the green up action some times works in one or two markets, but not all markets. Other times it works as intended. Not sure what is going on.

If anyone is interested in testing as well, I'll be happy to upload the files.
Post Reply

Return to “Bet Angel - Automation”