Scripts (example) - Favorite

  • 265 Views
  • Last Post 13 September 2018
admin posted this 07 August 2018

The second example is how to write your strategy. We use the correct score.

 

 

 

A task: 

Make a bet on 'favorite' if conditions:

  • - start price of 'favorite' is ...
  • - time of event is...
  • - total goals in match is ...
  • - 'favorite' wins with difference ...  of goal 

Order By: Standard | Newest | Votes
admin posted this 07 August 2018

1. Declare variables:

1.1. Conditions of Selection:


  • To choose not equal teams, we set the price of "favorite" LAY (The lower the price - the stronger the favorite - the greater the difference between the teams)
  • To take only markets with money, we set a variable - the minimum amount of money in the market.

 

admin posted this 07 August 2018

1.2. Conditions of Enter

admin posted this 07 August 2018

1.3. Order

  • These variables set the order. By default, I set the price to 1.01 , because I enter the market when Back = 1.1 ~ 1.5 I want an order to be accepted at any price.
  • The size of the order (%). Set as a percentage of the total balance. The user can specify from 1 to 100.

admin posted this 07 August 2018

 1.4. Service variables

  • Variables for balance storage
  • RunnerCatalogs- this is the list where the markets are placed on which you already bet. In order not to put on one market twice.

In a script, you can declare any variables you need to work.

admin posted this 07 August 2018

2. Functions

2.1. Service functions - Start(), Stop()

 

 

Start, stop functions are called once when the user starts and stops the script.

 

In this example, in the start function, I clear the list of markets where bids are already made.

admin posted this 07 August 2018

2.2. Service functions - BalanceUpdated(totalBalance, availableToBetBalance)

This function is called when the balance has changed. Here you can solve the  task of money management.

admin posted this 07 August 2018

2.3. Service functions - UpdateEvents(List<Event> events)

This function is called when data (price, size, orders, score) has changed. 

The variable (List<Event> events) contains a list of all the events that are displayed in the "Soccer Schedule" window.

admin posted this 07 August 2018

2.3.1. Select a team (runner)

  • selected runner (IsChecked = true) displayed with yellow point

 

admin posted this 07 August 2018

2.3.2. Select Event

 

You can do selection by manual. In windows set checkbox for event and use selected event for script!

 

 

  • selected event (IsChecked = true) displayed as checked checkbox

admin posted this 07 August 2018

2.3.3. Select Market for place order

admin posted this 07 August 2018

2.4. User function - PlaceOrder(RunnerCatalog runner)

admin posted this 18 August 2018

I'm on vacation, will continue to work in September.

admin posted this 13 September 2018

Good luck !

 

 

 

I'm back from vacation - I'm starting work again

 

Close