Condition regarding spread

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

Hi,

Is there a condition where you can make sure the current back and lay price are within 1 tick of each other?

I'm trying a greyhound scalping bot and often the spread is to big. I only want it to fire when it's within 1 tick.

Any help will be greatly appreciated
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

The Relative odds condition will do this for you, there is two ready made bots in the shared files section that include this feature of automation
viewtopic.php?f=43&t=11522
viewtopic.php?f=43&t=11669
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

So would this be correct?

Selections back price
Is less than
The lay price
In position 1
Minus 1 tick
shakespeare
Posts: 113
Joined: Sat May 21, 2016 1:43 pm

DanMcWilliams wrote:So would this be correct?

Selections back price
Is less than
The lay price
In position 1
Minus 1 tick
No, incorrect! This would allow very wide spreads and rule out the tight ones!

You want to say "the selection's back price is EQUAL to the lay price (of the same selection) minus one tick."

If you wanted to be more generous and allow a spread of either 1 or 2 ticks then you would say "the selection's back price is GREATER than the lay price (of the same selection) minus three ticks."
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

That makes sense. No wonder I was losing so much. Good job it was practice mode. Thanks for your help.
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

Quick question regarding stop loss.

I am testing a greyhound bot which I have running from 3 mins to 20 secs before the start. I want to make sure I don't lose any more than £2. So I have greened all selections with the condition 'close trade profit condition with greening is greater than -2. But doesn't seem to be triggering. Any help ?
User avatar
jimibt
Posts: 4194
Joined: Mon Nov 30, 2015 6:42 pm

DanMcWilliams wrote:Quick question regarding stop loss.

I am testing a greyhound bot which I have running from 3 mins to 20 secs before the start. I want to make sure I don't lose any more than £2. So I have greened all selections with the condition 'close trade profit condition with greening is greater than -2. But doesn't seem to be triggering. Any help ?
Dan,

You need to turn the condition the other way around and say 'close my trades, IF the profit is less than £2'. this equates to:

'close trade profit condition with greening is LESS than -2'
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

Thanks Jim.

All seems a bit back to front to me, I'll just have to study harder.

Is there a way to say the weight of money is less than 'X'% for more than 'X' seconds?

Thanks for any help.
DanMcWilliams
Posts: 54
Joined: Thu Nov 20, 2014 12:11 pm

Does anyone know whether my above question is possible?
User avatar
Dallas
Posts: 23492
Joined: Sun Aug 09, 2015 10:57 pm

DanMcWilliams wrote:Does anyone know whether my above question is possible?
Yes it can be done using signals, there is a example file in the shared files library which looks for a poisition being in a loss for over 10 secs
viewtopic.php?f=43&t=11954

You could quickly modify that file to look for WOM rather than a loss in a specfic time frame
Post Reply

Return to “Bet Angel - Automation”