Recalculating Staking

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

Recalculating Staking

Postby philuk » Tue Apr 06, 2010 11:38 pm

Is there a way to tell the spreadsheet to update my staking total at the end of each day.

Like for example I use the sheet that updates the races at midnight every night.

How will I go ahead to make it adjust my stake according to my bank account.

For example , if after today my bank is £120 , it must work out the stake at 0.15% of that. The next night at twelve it must then work the new stake out according to my new bank total. etc....

I presume it is a VB code , no idea.

Thanx

:D
philuk
 
Posts: 37
Joined: Tue Mar 02, 2010 12:55 am

Postby mak » Wed Apr 07, 2010 6:29 am

if you place in j2 the letter U through vba it will update your balance in i2.you can work it from there. you can find it at the special trigger cells in the help section of ba.
mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby philuk » Wed Apr 07, 2010 7:16 am

Thanx for that , I saw that there , the only thing is that it will update my stake everytime my balance changes.

What I would like is for my stake to update at 00:00:00 , same when the markets refreshes , and then the stake must stay the same throughout the whole day untill 00:00:00 and then update it again for the next day.

:D
philuk
 
Posts: 37
Joined: Tue Mar 02, 2010 12:55 am

Postby mak » Wed Apr 07, 2010 9:10 am

sorry, but i am not good at all in vba. i am sure that this can be done & it is easy but not for me...
mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby milfor » Wed Apr 07, 2010 11:12 am

Click in the Excel menu 'Tools' on 'Macro' and 'Visual Basic Editor' and copy the following code there:

Code: Select all
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    Application.EnableEvents = False
    If Now-Int(Now)<1/1440 Then
        Worksheets(1).Cells(2,17).Value = "U"
    End If
    Application.EnableEvents = True
End Sub


This will update your balance only in the first minute after midnight.
milfor
 
Posts: 437
Joined: Mon Jun 26, 2006 1:44 am

Postby philuk » Wed Apr 07, 2010 5:40 pm

Thanx for that , will try that and let you know :D
philuk
 
Posts: 37
Joined: Tue Mar 02, 2010 12:55 am

Postby philuk » Wed Apr 07, 2010 6:14 pm

milfor wrote:Click in the Excel menu 'Tools' on 'Macro' and 'Visual Basic Editor' and copy the following code there:

Code: Select all
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    Application.EnableEvents = False
    If Now-Int(Now)<1/1440 Then
        Worksheets(1).Cells(2,17).Value = "U"
    End If
    Application.EnableEvents = True
End Sub


This will update your balance only in the first minute after midnight.


Thanx again , just one question...

Where do I fill in the percentage of what my stake will be.
For example : 0.15% of bank ?

Thanx
philuk
 
Posts: 37
Joined: Tue Mar 02, 2010 12:55 am

Postby milfor » Wed Apr 07, 2010 6:23 pm

After the update the cells I2 and L2 contain balance and exposure. Their sum is your current bank. Wherever you need the stake you could write the formula =(I2+L2)*0.0015
milfor
 
Posts: 437
Joined: Mon Jun 26, 2006 1:44 am

Postby philuk » Wed Apr 07, 2010 7:59 pm

Thanx for that Milfor :D

Excellent , no i understand.

Cheers

Philip
philuk
 
Posts: 37
Joined: Tue Mar 02, 2010 12:55 am

Postby philuk » Wed Apr 07, 2010 8:57 pm

mak wrote:sorry, but i am not good at all in vba. i am sure that this can be done & it is easy but not for me...


no problem Mak , me neither.

I have learnt more about VBA in this Forum , than anywhere else.:D

Since I have been using BA , my knowledge has broadend lots.

Not there yet , but getting there
philuk
 
Posts: 37
Joined: Tue Mar 02, 2010 12:55 am


Return to Discussion

Who is online

Users browsing this forum: Bing [Bot] and 29 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.