Cancelling Fill or Kill Bets with Offsets
- firlandsfarm
- Posts: 3384
- Joined: Sat May 03, 2014 8:20 am
I've been mulling this over in my mind for a while but cannot see a way to do it ... is it possible to cancel Fill or Kill bets with Offsets where the first bet has not been matched but retain the Offset bet where it has?
something like this ?firlandsfarm wrote: ↑Mon Aug 30, 2021 5:13 amI've been mulling this over in my mind for a while but cannot see a way to do it ... is it possible to cancel Fill or Kill bets with Offsets where the first bet has not been matched but retain the Offset bet where it has?
You do not have the required permissions to view the files attached to this post.
You're so helpful and generous.decomez6 wrote: ↑Mon Aug 30, 2021 10:22 amsomething like this ?firlandsfarm wrote: ↑Mon Aug 30, 2021 5:13 amI've been mulling this over in my mind for a while but cannot see a way to do it ... is it possible to cancel Fill or Kill bets with Offsets where the first bet has not been matched but retain the Offset bet where it has?
continous offset.baf
Thanks.
- firlandsfarm
- Posts: 3384
- Joined: Sat May 03, 2014 8:20 am
no worries firlandsfarm,
after Anbell found it helpfull i threw another glance at it and quickly introduced a lay bet file .
How it works
Rule : back bet 1
- triggers one time by placing a back bet and remains active storing your entry price LTP . the stored value will remain constant.
- set up a signal name 1
Rule : back bets 2...
- waits for signal from back bet 1 and places a back bet a tick above best market price and offset it by a tick
- it will continue placing back bets every 5 secs , so long as the current price is above your first entry price (LTP)
Rule : lay bets 2...
- does similar to back bets2....only this time it places lay bets a tick below the best market price and offset it by a tick so olong as the price is below your entry price (LTP)
Rule : checkpoint matched bets
- resets the matched bets back to zero everytime a bet is matched
DISCLAIMER !
its for trial purposes ,
no greening rules ,
its on one runner but can be duplicated to cover more.
enjoy
-
-
after Anbell found it helpfull i threw another glance at it and quickly introduced a lay bet file .
How it works
Rule : back bet 1
- triggers one time by placing a back bet and remains active storing your entry price LTP . the stored value will remain constant.
- set up a signal name 1
Rule : back bets 2...
- waits for signal from back bet 1 and places a back bet a tick above best market price and offset it by a tick
- it will continue placing back bets every 5 secs , so long as the current price is above your first entry price (LTP)
Rule : lay bets 2...
- does similar to back bets2....only this time it places lay bets a tick below the best market price and offset it by a tick so olong as the price is below your entry price (LTP)
Rule : checkpoint matched bets
- resets the matched bets back to zero everytime a bet is matched
DISCLAIMER !
its for trial purposes ,
no greening rules ,
its on one runner but can be duplicated to cover more.
enjoy

-
-
You do not have the required permissions to view the files attached to this post.
- firlandsfarm
- Posts: 3384
- Joined: Sat May 03, 2014 8:20 am
Thanks again decomez6 but maybe I can't see the solution to my problem
If I'm reading it correctly this ruleset would build a back position whenever the LTP is greater than the initial LTP and build a lay position whenever the LTP is less than the initial LTP.
I can see how that could be advantageous (but also dangerous!
). May I clarify my issue ...
Often we place Offset bets with Fill&Kill activated so that the offset bet (Bet2) is not placed until the original bet (Bet1) is matched in whole (my stakes are not large enough to warrant batching).
I'm asking how to cancel unmatched Bet1 bets but leave unmatched Bet2 bets active so as to try and complete the pairing?

I can see how that could be advantageous (but also dangerous!

Often we place Offset bets with Fill&Kill activated so that the offset bet (Bet2) is not placed until the original bet (Bet1) is matched in whole (my stakes are not large enough to warrant batching).
I'm asking how to cancel unmatched Bet1 bets but leave unmatched Bet2 bets active so as to try and complete the pairing?
no worries...
i try to help where i can and always surprise myself how much i learn by solving the so called 'small problems '.
This forum is just full of helpfull gold nuggets . especially when an advanced trader asks a question the answers that follow are priceless .
i am a poor communicator when it comes to explaining details of a bot so i put the bot at the bottom to explain how i would go about it.
the option of cancelling unmathched (price dependant ) in combination with a price parameter is a great way to cancel some of your back / lay bets . please check out the Bot and let me know if you need a guide on how its working.

NB: watch this video on ' a bet that never looses / How not to trade '... i watched it and i was curiose enough to give it a go .. but only backing
https://youtu.be/CueR3i24sKk
You do not have the required permissions to view the files attached to this post.
- firlandsfarm
- Posts: 3384
- Joined: Sat May 03, 2014 8:20 am
Hi decomez6 and thanks for your tolerance.decomez6 wrote: ↑Wed Sep 01, 2021 7:41 am... the option of cancelling unmathched (price dependant ) in combination with a price parameter is a great way to cancel some of your back / lay bets .
cancel price dependant.PNG
please check out the Bot and let me know if you need a guide on how its working.
not a bad one !
continous backing _cancel unmatched.baf
NB: watch this video on ' a bet that never looses / How not to trade '... i watched it and i was curiose enough to give it a go .. but only backing
https://youtu.be/CueR3i24sKk

Yes, I had seen that video and will admit (probably like thousands before and after me) that's how I designed my first trading system!

I'm looking more at a situation where I don't want to add to my position but also don't want to dump what I already have. Sort of like a Hold on the stock market.
As for your ruleset, yes I think that would work albeit for all unmatched back opening bets or all unmatched lay opening bets. Thanks for your contribution, much appreciated.
patience is my middle namefirlandsfarm wrote: ↑Wed Sep 01, 2021 8:47 amHi decomez6 and thanks for your tolerance.decomez6 wrote: ↑Wed Sep 01, 2021 7:41 am... the option of cancelling unmathched (price dependant ) in combination with a price parameter is a great way to cancel some of your back / lay bets .
cancel price dependant.PNG
please check out the Bot and let me know if you need a guide on how its working.
not a bad one !
continous backing _cancel unmatched.baf
NB: watch this video on ' a bet that never looses / How not to trade '... i watched it and i was curiose enough to give it a go .. but only backing
https://youtu.be/CueR3i24sKk
Yes, I had seen that video and will admit (probably like thousands before and after me) that's how I designed my first trading system!![]()
I'm looking more at a situation where I don't want to add to my position but also don't want to dump what I already have. Sort of like a Hold on the stock market.
As for your ruleset, yes I think that would work albeit for all unmatched back opening bets or all unmatched lay opening bets. Thanks for your contribution, much appreciated.

check on the bot above i find it interesting . may be you could do some mental gymnastics and make something out of it .
i have a new one !
below
How it works
- it stores the back amount matched , SV `back`
-sets signal 1
-then only lays when back signal has a value
-finally checkpointing the back bets
NB : did it in a hurry , might need more crooss checking but could be what you are looking for?
You do not have the required permissions to view the files attached to this post.
- firlandsfarm
- Posts: 3384
- Joined: Sat May 03, 2014 8:20 am
That's the way I've been thinking about but always fell short when both backs and lay Bet1's were possible but your rules seem to have given me a light bulb idea and I'm sure signals/SV's could be used to isolate the Bet1's and Bet2's for both back and lay positions.
Many thanks for you efforts.