Author Topic: imported file -> trade out at specific price for 50%  (Read 725 times)

Tags:
  • All members
  • Posts: 59
I'm trying to green up at a pre determined price, but not sure how to do it.

I have an import file that looks like this:
"Bencic" 1.86 2.04

The first number is the open trade price.  The second number is the close trade price.

At the moment, when I open the trade, I will also place an unmatched bet at the close trade price.  Then when it is opened, I initiate a trade out to hedge profits.

So that's 3 trades.
1. Lay at 1.86 for full stake
2. Unmatched Back at 2.04 for half stake
3. Trade out to equalise profits

Ideally I'd like to do this in 2 trades.
1. Lay at 1.86 for full stake
2. Unmatched Back at 2.04 at a stake that would equalise profits

Is this possible?  Any help would be greatly appreciated.

  • Moderator
  • Posts: 3606
*
Re: imported file -> trade out at specific price for 50%
« Reply #1 on: 20 Oct 2022, 19:23 »
Hi
The basic formula for the back amount to green up matched lay bet is: (bm_laya*bm_layp)/back_price

assuming the lay bet is matched, for the backing trigger amount:
(bm_laya*bm_layp)/imported_2
or
(bm_laya*imported_1)/imported_2

if you want to back regardless of lay being matched or not:
(full lay stake*imported_1)/imported_2

Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 59
Re: imported file -> trade out at specific price for 50%
« Reply #2 on: 20 Oct 2022, 19:33 »
Thanks Mark.  I'll give this a go!!

  • All members
  • Posts: 59
Re: imported file -> trade out at specific price for 50%
« Reply #3 on: 20 Oct 2022, 23:14 »
It works! It's exactly what I wanted.  Thanks Mark.

 

Please note, BetFair is seems to be currently OFFLINE