ProjectedSp = infinity

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Anbell
Posts: 2383
Joined: Fri Apr 05, 2019 2:31 am

Howdy - I have a new automation that I only want to run if the market has BSP (as a backstop in case my bets aren't matched)

I have been using a condition where I set an SV called ProjectedSP and I have a conditioon where ProjectedSP must be greater than zero.

I've just noticed that if there is no BSP on the marker then ProjectedSP is stored as an SV as "Infinity" (not zero.)

Is it sufficient to have a SV Condition that ProjectedSP is not equal to an entered amount: Infinity?

(i.e. can an SV include text etc etc, or are there other issues why this condition wouldn't work? Is there a better way to achieve this condition?)

Thanks
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

Anbell wrote:
Sat Apr 11, 2020 8:57 am
Howdy - I have a new automation that I only want to run if the market has BSP (as a backstop in case my bets aren't matched)

I have been using a condition where I set an SV called ProjectedSP and I have a conditioon where ProjectedSP must be greater than zero.

I've just noticed that if there is no BSP on the marker then ProjectedSP is stored as an SV as "Infinity" (not zero.)

Is it sufficient to have a SV Condition that ProjectedSP is not equal to an entered amount: Infinity?

(i.e. can an SV include text etc etc, or are there other issues why this condition wouldn't work? Is there a better way to achieve this condition?)

Thanks
i would add a less than condition. 1000 might work for your purposes but if not I seem to remember that 1001 worked for me in the past when i encountered this.
Anbell
Posts: 2383
Joined: Fri Apr 05, 2019 2:31 am

Jukebox wrote:
Sat Apr 11, 2020 9:10 am
Anbell wrote:
Sat Apr 11, 2020 8:57 am
Howdy - I have a new automation that I only want to run if the market has BSP (as a backstop in case my bets aren't matched)

I have been using a condition where I set an SV called ProjectedSP and I have a conditioon where ProjectedSP must be greater than zero.

I've just noticed that if there is no BSP on the marker then ProjectedSP is stored as an SV as "Infinity" (not zero.)

Is it sufficient to have a SV Condition that ProjectedSP is not equal to an entered amount: Infinity?

(i.e. can an SV include text etc etc, or are there other issues why this condition wouldn't work? Is there a better way to achieve this condition?)

Thanks
i would add a less than condition. 1000 might work for your purposes but if not I seem to remember that 1001 worked for me in the past when i encountered this.

Thanks so much.

So BA recognizes that "Infinity" is a number and not a text string?
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

I can't answer definitively without a test - but I seem to remember that it worked for me when i was playing around with similar things in the past and I encountered this one. And technically if you use >0 and <1001 it might not matter.
Anbell
Posts: 2383
Joined: Fri Apr 05, 2019 2:31 am

Thanks again JukeBox.

Infinity is > 1000, so that probably shouldnt work (unless as a hack/workaround)?
Jukebox
Posts: 1576
Joined: Thu Sep 06, 2012 8:07 pm

Anbell wrote:
Sat Apr 11, 2020 10:04 am
Thanks again JukeBox.

Infinity is > 1000, so that probably shouldnt work (unless as a hack/workaround)?
I am aware - that's why I suggested less than 1001 - assuming that you wanted a real price under infinity.
Anbell
Posts: 2383
Joined: Fri Apr 05, 2019 2:31 am

Thanks again for all your help/guidance.

Looks like I'll have to experiment!
Post Reply

Return to “Bet Angel - Automation”