Cancelling Fill or Kill Bets with Offsets

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
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?
User avatar
decomez6
Posts: 695
Joined: Mon Oct 07, 2019 5:26 pm

firlandsfarm wrote:
Mon Aug 30, 2021 5:13 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 ?
continous offset.baf
You do not have the required permissions to view the files attached to this post.
Anbell
Posts: 2407
Joined: Fri Apr 05, 2019 2:31 am

decomez6 wrote:
Mon Aug 30, 2021 10:22 am
firlandsfarm wrote:
Mon Aug 30, 2021 5:13 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 ?

continous offset.baf
You're so helpful and generous.

Thanks.
rostov
Posts: 50
Joined: Mon Jul 02, 2012 3:45 pm

.
decomez6 ,

Very neat. Thank you.
User avatar
decomez6
Posts: 695
Joined: Mon Oct 07, 2019 5:26 pm

no worries Anbell

glad to help where i can . just following your footsteps :D
User avatar
decomez6
Posts: 695
Joined: Mon Oct 07, 2019 5:26 pm

rostov wrote:
Mon Aug 30, 2021 11:09 am
.
decomez6 ,

Very neat. Thank you.
you welcome
User avatar
firlandsfarm
Posts: 3384
Joined: Sat May 03, 2014 8:20 am

decomez6 wrote:
Mon Aug 30, 2021 10:22 am
something like this ?

continous offset.baf
Thanks for that decomez6 will have a good look later when I have paper and pencil to note what you are doing and time. :)
User avatar
decomez6
Posts: 695
Joined: Mon Oct 07, 2019 5:26 pm

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 :D

continous offset back and lay.baf



-


-
You do not have the required permissions to view the files attached to this post.
rostov
Posts: 50
Joined: Mon Jul 02, 2012 3:45 pm

decomez6 wrote:
Mon Aug 30, 2021 1:31 pm


enjoy :D

Even neater. Enjoying.
User avatar
decomez6
Posts: 695
Joined: Mon Oct 07, 2019 5:26 pm

rostov wrote:
Mon Aug 30, 2021 1:47 pm
decomez6 wrote:
Mon Aug 30, 2021 1:31 pm


enjoy :D

Even neater. Enjoying,

random little help ! ha
User avatar
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?
User avatar
decomez6
Posts: 695
Joined: Mon Oct 07, 2019 5:26 pm

firlandsfarm wrote:
Wed Sep 01, 2021 3:30 am
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 .
cancel price dependant.PNG
please check out the Bot and let me know if you need a guide on how its working.

:D 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
You do not have the required permissions to view the files attached to this post.
User avatar
firlandsfarm
Posts: 3384
Joined: Sat May 03, 2014 8:20 am

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.

:D 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
Hi decomez6 and thanks for your tolerance. :)

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.
User avatar
decomez6
Posts: 695
Joined: Mon Oct 07, 2019 5:26 pm

firlandsfarm wrote:
Wed Sep 01, 2021 8:47 am
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.

:D 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
Hi decomez6 and thanks for your tolerance. :)

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 name :D
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?
hold back.baf
You do not have the required permissions to view the files attached to this post.
User avatar
firlandsfarm
Posts: 3384
Joined: Sat May 03, 2014 8:20 am

decomez6 wrote:
Wed Sep 01, 2021 9:52 am
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

hold back.baf
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.
Post Reply

Return to “Bet Angel - Automation”