I have been looking to find a way to lay horses that are within the bottom 3 ticks of there ranges in the last 60 seconds before the off. I cant find a way to capture range in BA. Anyone have any ideas?
Thanks.
Laying a horse if trading at bottom of range
You can set stored values (called say max_price and min_price) for each selection to build your own range (at least for the period you are monitoring the race in guardian).
(1) Create a set stored value rule to initialise both max_price and min_price stored values to LTP just once for each selection. Rearm for at least as many runners there are. Use a 0.01 second delay and maybe set a signal for each selection to confirm inital max_price/min_price is set.
(2) Create a set stored value rule conditional on if LTP < min_price then set the new value for min_price as LTP. Rearm continuously with say a 0.01 second delay as 0 is not allowed.
(3) Create a set stored value rule conditional on if LTP > max_price then set the new value for max_price as LTP. Rearm continuously with say a 0.01 second delay as 0 is not allowed.
(4) Create place bet rules using stored values in max_price and min_price to compare against current price.
You might also use the Volume Weighted Average price as an indication of just how far off the average price the current price is.
Dallas probably has a script somewhere.
Wat he saidWolf1877 wrote: ↑Sun Sep 16, 2018 6:47 amYou can set stored values (called say max_price and min_price) for each selection to build your own range (at least for the period you are monitoring the race in guardian).
(1) Create a set stored value rule to initialise both max_price and min_price stored values to LTP just once for each selection. Rearm for at least as many runners there are. Use a 0.01 second delay and maybe set a signal for each selection to confirm inital max_price/min_price is set.
(2) Create a set stored value rule conditional on if LTP < min_price then set the new value for min_price as LTP. Rearm continuously with say a 0.01 second delay as 0 is not allowed.
(3) Create a set stored value rule conditional on if LTP > max_price then set the new value for max_price as LTP. Rearm continuously with say a 0.01 second delay as 0 is not allowed.
(4) Create place bet rules using stored values in max_price and min_price to compare against current price.
You might also use the Volume Weighted Average price as an indication of just how far off the average price the current price is.
Dallas probably has a script somewhere.
This might help if you want to define the range yourself using a servant, then pass it over to guardian to run the automation
viewtopic.php?f=57&t=17132
viewtopic.php?f=57&t=17132
Hi Dallas,
Thanks for the link to that thread. I am struggling to find a way to store the bottom of the range as a stored value. I intend to only use this for automation so I am un-able to use the mouse to click on the numbers.
Im not sure why something as simple as ranges is not included in BA?
I cant think of a way to do this, if anyone can prove me wrong than that would be great!
Thanks for the link to that thread. I am struggling to find a way to store the bottom of the range as a stored value. I intend to only use this for automation so I am un-able to use the mouse to click on the numbers.
Im not sure why something as simple as ranges is not included in BA?
I cant think of a way to do this, if anyone can prove me wrong than that would be great!
Sorry Wolf, I cant see how I can create the stored value to capture the top/bottom of a range? I have looked at this for hours. Seems something that should be so simple!Wolf1877 wrote: ↑Sun Sep 16, 2018 6:47 amYou can set stored values (called say max_price and min_price) for each selection to build your own range (at least for the period you are monitoring the race in guardian).
(1) Create a set stored value rule to initialise both max_price and min_price stored values to LTP just once for each selection. Rearm for at least as many runners there are. Use a 0.01 second delay and maybe set a signal for each selection to confirm inital max_price/min_price is set.
(2) Create a set stored value rule conditional on if LTP < min_price then set the new value for min_price as LTP. Rearm continuously with say a 0.01 second delay as 0 is not allowed.
(3) Create a set stored value rule conditional on if LTP > max_price then set the new value for max_price as LTP. Rearm continuously with say a 0.01 second delay as 0 is not allowed.
(4) Create place bet rules using stored values in max_price and min_price to compare against current price.
You might also use the Volume Weighted Average price as an indication of just how far off the average price the current price is.
Dallas probably has a script somewhere.
Thanks for the response
Balmus, I've attached a 3 rule file just to build the min and max prices (i.e. the lower and upper range) for ANY selection.
There currently is no bet rule in there so you can run it safely as is. You need to add the bet rules later yourself!
Just download and import this BAF file. I have switched logging on against the stored values and signal assignments. Watch it in action by applying this rules file against a race (when the market is fairly active so prices are actually moving). Then select the race in guardian (by highlighting the row in blue) and then click the "log" tab at the bottom of the guardian screen to see the stored values loaded by scrolling to the bottom. I'd suggest that you uncheck the stored value and signal logging once you understand how it works unless you need to debug something. Thats my good deed for 2018. You're on your own now! Good luck.
You do not have the required permissions to view the files attached to this post.
I hadnt downloaded the latest version hence why I couldnt find min/max prices. It is now working like a dream, Thanks very much Wolf. Appriciate it!Wolf1877 wrote: ↑Thu Sep 20, 2018 1:01 amBalmus, I've attached a 3 rule file just to build the min and max prices (i.e. the lower and upper range) for ANY selection.
There currently is no bet rule in there so you can run it safely as is. You need to add the bet rules later yourself!
Just download and import this BAF file. I have switched logging on against the stored values and signal assignments. Watch it in action by applying this rules file against a race (when the market is fairly active so prices are actually moving). Then select the race in guardian (by highlighting the row in blue) and then click the "log" tab at the bottom of the guardian screen to see the stored values loaded by scrolling to the bottom. I'd suggest that you uncheck the stored value and signal logging once you understand how it works unless you need to debug something. Thats my good deed for 2018. You're on your own now! Good luck.
It was created in the 1.51 beta version.
See the versions thread for a download link.
viewtopic.php?f=46&t=17234
See the versions thread for a download link.
viewtopic.php?f=46&t=17234