Close all positions in Excel

Please post any questions regarding the program here.

Moderator: 2020vision

Close all positions in Excel

Postby eclipse » Mon Jul 23, 2012 5:50 pm

Is there an equivalent in Excel to the close all positions on the grid interface? If not I'm sure this would be a very nice feature to have in the armoury.
User avatar
eclipse
 
Posts: 226
Joined: Mon Apr 16, 2007 10:54 am
Location: S. E. England

Postby mak » Mon Jul 23, 2012 7:59 pm

you can use green workbook in samples section... otherwise you will have to wait a little bit... i think it is in Gary's to do list
mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby eclipse » Mon Jul 23, 2012 8:45 pm

thanks mak, will wait for that one
User avatar
eclipse
 
Posts: 226
Joined: Mon Apr 16, 2007 10:54 am
Location: S. E. England

Postby NorthView » Sun Mar 24, 2013 5:40 pm

This would be a real boon. Any news, Gary?
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Postby osknows » Sun Mar 24, 2013 5:58 pm

It can be done with just Excel. I have a working greenup formulae that will close all positions in a few milliseconds without any VBA across hundreds of horses.
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby NorthView » Sun Mar 24, 2013 6:22 pm

Do you think it would work well with In Play horse racing, osknows?

If so, would it be possible to put the formula up here, or attach it as a file please?

When I test my triggers by watching them fire, I often notice that the largest green is usually on the horses that are least likely to win!
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Postby osknows » Sun Mar 24, 2013 7:44 pm

Yes it calcs in under 16ms so is well within 1 BA refresh and is fine for inplay. Attached is a simplified version as the one I use has evolved quite a bit over time. It includes both an amended version of Gary's VBA and also my formulae only version in columns AG:AO.

You may want to apply tick offset to the prices to get them matched in play.

http://www.mediafire.com/view/?apm74ifacv47e1g

Regards
Os
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby osknows » Sun Mar 24, 2013 7:48 pm

Sorry forgot to say, this will currently run slower as it also contains VBA. Just delete all VBA except MODULE2 and it will run full speed
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby NorthView » Mon Mar 25, 2013 9:09 am

Thanks osknows, that's very helpful.

As a general point I notice you're populating the trigger column T from VBA
ie Sheet1.Range("Q5:U55").Value = Sheet1.Range("AJ5:AN55").Value

rather than from an Excel formula ie putting =AJ5 into Q5.

Is it more efficient with VBA?
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Postby osknows » Mon Mar 25, 2013 12:31 pm

If you need to greenup then it means there are matched bets with a bet reference that need to be cleared. It's quicker to clear them and place bets all at the same time.

Also, there is approx a 200ms window between BA refreshes. As long as all the processing is done within that window it doesn't matter if it takes 1ms or 180ms. Hence the argument that Excel 2003 runs VBA quicker doesn;t really matter when using with BA.
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby NorthView » Fri Mar 29, 2013 3:08 pm

Thanks again, osknows, this is a huge help. I've coded this and your formulae are spot on.
NorthView
 
Posts: 172
Joined: Wed Oct 08, 2008 12:33 pm
Location: London

Postby Dag » Fri Nov 01, 2013 6:52 am

osknows wrote:***
You may want to apply tick offset to the prices to get them matched in play.
http://www.mediafire.com/view/?apm74ifacv47e1g

Link deleted. Can u post this file again?
Thanks in advance.
Dag
 
Posts: 18
Joined: Sun Oct 27, 2013 9:34 am

Postby osknows » Fri Nov 01, 2013 10:57 am

User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby Dag » Fri Nov 01, 2013 11:06 am


Thank you osknows.
Dag
 
Posts: 18
Joined: Sun Oct 27, 2013 9:34 am


Return to Help

Who is online

Users browsing this forum: No registered users and 79 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.

cron