Stored Value problem

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
ferrypaul
Posts: 114
Joined: Sat Aug 27, 2016 4:39 pm

Can someone please explain how I go about turning a minus SV into a positive value to be used as a recovery trade..

For example IV set up a back the home fav automation that greens up after a certain profit is achieved or reds up if the underdog scores first.. when the underdog scores first I have a SV that stores the loss amount for example -2.56 or something.. but I'm having trouble getting the recovery bit of automation to then lay my recovery score for 2.56 because the SV is a negative value.. So i need to change it from a negative value to a positive using another SV rule but I'm struggling to understand how to do that
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

Multiple the SV by -1
ferrypaul
Posts: 114
Joined: Sat Aug 27, 2016 4:39 pm

Does this look right?
You do not have the required permissions to view the files attached to this post.
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

Yes, thats correct
ferrypaul
Posts: 114
Joined: Sat Aug 27, 2016 4:39 pm

I have a green up rule as well as a red up rule.. if i change this to multiply by -1 and then change my recovery condition to look for a positive value will it also see my green up amount and think it needs to trigger the correct score lay because its a positive value?
User avatar
Dallas
Posts: 23597
Joined: Sun Aug 09, 2015 10:57 pm

ferrypaul wrote:
Tue Sep 20, 2022 12:26 pm
I have a green up rule as well as a red up rule.. if i change this to multiply by -1 and then change my recovery condition to look for a positive value will it also see my green up amount and think it needs to trigger the correct score lay because its a positive value?
If using it in that context yes

So you'd need to leave it as a negative value then add another stored value which takes that SV and does the adjustment to produce the positive amount
You'd then have two stored values, one as the negative the other as a positive
You can then use your negative as your condition and positive for whatever else you were needing it for
ferrypaul
Posts: 114
Joined: Sat Aug 27, 2016 4:39 pm

Just thinking now.. if I left it as it is then it would be seeing my positive amounts (after greening) as negative if I'm multiply by -1 wouldn't it? So if I leave my condition to look for a positive number then it will only see the losses as positive if that's makes sense
User avatar
ShaunWhite
Posts: 10570
Joined: Sat Sep 03, 2016 3:42 am

ferrypaul wrote:
Tue Sep 20, 2022 12:42 pm
Just thinking now.. if I left it as it is then it would be seeing my positive amounts (after greening) as negative if I'm multiply by -1 wouldn't it? So if I leave my condition to look for a positive number then it will only see the losses as positive if that's makes sense
You could do that, but for the sake of remembering what it does when you look at it again in 6months time I'd go for Dallas solution. 2 SVs, one for profit and one for loss, both positive. Generally keeping things simple rather than clever is the better option.
ferrypaul
Posts: 114
Joined: Sat Aug 27, 2016 4:39 pm

Good point.. I think I'll use 2 SVs.. thanks for the reply
Post Reply

Return to “Bet Angel - Automation”