Stored Values

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

Could anyone guide me in the right direction. I am trying to get my stored values correct. I am only wanting the next rule to fire if the first one goes in the wrong direction by 3 ticks. For some reason All the back bets are firing at once and the lay bets are non existent. Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
Dabbla
Posts: 827
Joined: Wed Apr 15, 2009 1:50 pm

Your using the wrong condition, you need to be using a (Stored value condition) not (Stored value SET condition).
I have fixed it and basically done what I think your try to achieve. Not sure the logic is 100% but it works.
You may want to consider changing where your bets are placed, taking best price will be a recipe for disaster.
I added a couple of rules for testing ,added a start rule, so you can quickly change the start time of the rule, without changing every rule.
FX 2.baf
You do not have the required permissions to view the files attached to this post.
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

That's perfect, thank you very much. Its firing how I want it to now.

On my first back bet, if it doesn't reach the 3 ticks I want , and then fires the lay bet(the next bet in the sequence) is there a way to cancel that unmatched offset bet I originally placed?

Also, if I add an offset bet to each rule, once one has been matched, is it possible to start the rules from the beginning again?

Any guidance would be appreciated.

Thank You
User avatar
Dabbla
Posts: 827
Joined: Wed Apr 15, 2009 1:50 pm

For the cancels, copy rule L1 , change that to one of the cancel rules, I would use (cancel price dependant). Then remove the SV attached to it. Then place it before rule L1.

In short cause dinners nearly ready.
You will need to make loop that stores the value of the offset price. Use a SV to work that out when you place B1, So back price -3 or what you have. Then you would use the matched bet info to see if the 2 are equal. Also use the unmatched bet amount condition.
If you get stuck ,ill try and help you a bit later
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

Thank You. I have an early start tomorrow so I'm off to bed now. But I will try when I'm home from work and let you know how I got on. I appreciate the help.
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

Right, I've managed to cancel each individual offset bet when the next rule fires. so I appreciate your help with that.

Im just trying to figure out the reset loop. If I set a value at the price of any of the offset bets being matched, what would i need to do to make it restart?

Any help would be appreciated.
FX 3.baf
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel - Automation”