'Best price and 2nd best price difference' condition

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
doctor143
Posts: 55
Joined: Wed Jul 31, 2019 3:10 pm

Any way to set condition that the best price and 2nd best price should have one pip difference? I want to set odds for inactive markets but want to make sure that my price is just one away from the best price. In case, the 2nd best price is cancelled I want my bot to cancel existing bets and trigger bets 1 pip above the 2nd best price that time.

Your help would be highly appreciated.
User avatar
doctor143
Posts: 55
Joined: Wed Jul 31, 2019 3:10 pm

Any leads would be highly appreciated, I have been trying to work on this but can not find a solution for this. Thanks in advance.
rik
Posts: 1583
Joined: Sat Jan 25, 2014 5:16 am

me neither would be helpful if there was additional conditions like tick "empty" or not and tick difference between 1st 2nd 3rd best price
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

use the stored value condition for money available at current best value +- 1 tick > 0?
User avatar
doctor143
Posts: 55
Joined: Wed Jul 31, 2019 3:10 pm

sa7med wrote:
Tue Dec 15, 2020 6:10 am
use the stored value condition for money available at current best value +- 1 tick > 0?
I have tried using this method but it will only add or subtract 1 tick from the money available. I have attached the pictures for the reference. If anyone can help please? Have been trying to do this for last 2 days :(
You do not have the required permissions to view the files attached to this post.
sa7med
Posts: 800
Joined: Thu May 18, 2017 8:01 am

doctor143 wrote:
Tue Dec 15, 2020 7:05 am
sa7med wrote:
Tue Dec 15, 2020 6:10 am
use the stored value condition for money available at current best value +- 1 tick > 0?
I have tried using this method but it will only add or subtract 1 tick from the money available. I have attached the pictures for the reference. If anyone can help please? Have been trying to do this for last 2 days :(
Perhaps store the value of current best price +- 1 tick separately and use that price in your stored value for money available
sionascaig
Posts: 1684
Joined: Fri Nov 20, 2015 9:38 am

doctor143 wrote:
Tue Dec 15, 2020 7:05 am
sa7med wrote:
Tue Dec 15, 2020 6:10 am
use the stored value condition for money available at current best value +- 1 tick > 0?
I have tried using this method but it will only add or subtract 1 tick from the money available. I have attached the pictures for the reference. If anyone can help please? Have been trying to do this for last 2 days :(
You need to use the "Stored Value condition"

- look up "Money available to lay at a price"
- it then asked you what price to use for lookup, which can be 1st, 2nd, 3d or another stored value
- then "is equal to"
- "an entered amount" of 0 or whatever
sionascaig
Posts: 1684
Joined: Fri Nov 20, 2015 9:38 am

sionascaig wrote:
Tue Dec 15, 2020 8:14 am
doctor143 wrote:
Tue Dec 15, 2020 7:05 am
sa7med wrote:
Tue Dec 15, 2020 6:10 am
use the stored value condition for money available at current best value +- 1 tick > 0?
I have tried using this method but it will only add or subtract 1 tick from the money available. I have attached the pictures for the reference. If anyone can help please? Have been trying to do this for last 2 days :(
You need to use the condition type "Stored Value condition"

- look up "Money available to lay at a price"
- it then asked you what price to use for lookup, which can be 1st, 2nd, 3d or another stored value
- then "is equal to"
- "an entered amount" of 0 or whatever
User avatar
jimibt
Posts: 4202
Joined: Mon Nov 30, 2015 6:42 pm

Ok, here you go. this is an extract from one of my rules that does exactly this. I've included only the relevent rules to address the above.

You only need to use the rules colored in yellow to make your comparisons, i.e. moneyBack1 > 0 AND moneyBack2 >0 etc...

avail-money.PNG
Money Avail v1.0.baf
You do not have the required permissions to view the files attached to this post.
sionascaig
Posts: 1684
Joined: Fri Nov 20, 2015 9:38 am

jimibt wrote:
Tue Dec 15, 2020 9:52 am
Ok, here you go. this is an extract from one of my rules that does exactly this. I've included only the relevent rules to address the above.

You only need to use the rules colored in yellow to make your comparisons, i.e. moneyBack1 > 0 AND moneyBack2 >0 etc...


avail-money.PNG

Money Avail v1.0.baf
Spooky !
You do not have the required permissions to view the files attached to this post.
User avatar
jimibt
Posts: 4202
Joined: Mon Nov 30, 2015 6:42 pm

sionascaig wrote:
Tue Dec 15, 2020 1:14 pm
jimibt wrote:
Tue Dec 15, 2020 9:52 am
Ok, here you go. this is an extract from one of my rules that does exactly this. I've included only the relevent rules to address the above.

You only need to use the rules colored in yellow to make your comparisons, i.e. moneyBack1 > 0 AND moneyBack2 >0 etc...


avail-money.PNG

Money Avail v1.0.baf
Spooky !
great minds and fools -lol
User avatar
doctor143
Posts: 55
Joined: Wed Jul 31, 2019 3:10 pm

jimibt wrote:
Tue Dec 15, 2020 9:52 am
Ok, here you go. this is an extract from one of my rules that does exactly this. I've included only the relevent rules to address the above.

You only need to use the rules colored in yellow to make your comparisons, i.e. moneyBack1 > 0 AND moneyBack2 >0 etc...

avail-money.PNG
Money Avail v1.0.baf

Thankyou so much Jimbit. You have saved many hours of my life ;) Much appreciated.
User avatar
whimsies
Posts: 181
Joined: Sun Oct 02, 2016 7:37 am

Thanks +1
Finbar147
Posts: 28
Joined: Sat Mar 06, 2021 4:50 am

Hey jimibt (or anyone else that might be able to help), i found this .baf file which does exactly what I was trying to do recently (and failing miserably!). I've been playing with it for the last couple of hours but can't get it to trigger even once using the simplest of rules.

Am I right that the PRE and IP rules aren't necessary? i am only doing pre event so deleted the IP rules. The PRE also had to have the time changed to be before the event. PRE is 'Set / Modify a signal only' rule but doesn't actually have any signal set against it, again I've tried putting in a signal but it didn't work and I don't think it's essential.

I can see that the Get Money is triggering multiple times but I can't get the lay bet to trigger, no matter how low i set the values for the required money at the required prices. Had it set to $5 each box and over 29% weight of money (which for a lay should get loads of hits), nothing else, and I can see that there were many times it triggered, do I need to have a Signal rule?

I'll try to attached some screenshots

Ignore screenshot 1, i would delete it if I knew how!!
You do not have the required permissions to view the files attached to this post.
Last edited by Finbar147 on Wed Jun 23, 2021 1:34 pm, edited 1 time in total.
Finbar147
Posts: 28
Joined: Sat Mar 06, 2021 4:50 am

couple more screenshots, all help gratefully received! It's probably sonmething very obvious...
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel - Automation”