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.
'Best price and 2nd best price difference' condition
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.
Perhaps store the value of current best price +- 1 tick separately and use that price in your stored value for money available
-
- Posts: 1684
- Joined: Fri Nov 20, 2015 9:38 am
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
-
- Posts: 1684
- Joined: Fri Nov 20, 2015 9:38 am
sionascaig wrote: ↑Tue Dec 15, 2020 8:14 amYou 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
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...
You only need to use the rules colored in yellow to make your comparisons, i.e. moneyBack1 > 0 AND moneyBack2 >0 etc...
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1684
- Joined: Fri Nov 20, 2015 9:38 am
Spooky !jimibt wrote: ↑Tue Dec 15, 2020 9:52 amOk, 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.
great minds and fools -lolsionascaig wrote: ↑Tue Dec 15, 2020 1:14 pmSpooky !jimibt wrote: ↑Tue Dec 15, 2020 9:52 amOk, 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
jimibt wrote: ↑Tue Dec 15, 2020 9:52 amOk, 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...
Thankyou so much Jimbit. You have saved many hours of my life

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!!
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.