Is there an automated way to track price within a range (and that it hasn't moved much)?

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Stubbo
Posts: 56
Joined: Fri Dec 02, 2016 8:44 am

Can a combination of conditions be used to track that a price hasn't moved by a certain amount within a given time period?

I know I can count over a period of time using signals (e.g. fire once per second, increment signal with each fire, reset with a second rule if contrary conditions are met, until signal value = X seconds).

Is there any way to check that a price has stayed within a defined range over that period?

I can use historic relative odds to know 10 seconds ago it was within X ticks of where it is now (but in that 10 seconds it could have gone well outside the range and come back). But if I set it to 1 second and execute ten times and say set a +1 / -1 range of the "now" price, then with each second it could move up 1 tick, and thus 5 seconds in be 5 seconds away from the original start point.

Equally I know I can do this if I set a fixed price point (e.g. within +/- 1 tick of 2.0) but to make the automation more generic I need to use the initial 'now' price to kick things off rather than an arbitrary fixed value.

I guess what is really needed is to be able to set signal/variable to the current price, and then track movement against the value of that signal...but other than posting a suggestion for a future release, I'm not seeing anyway within the guardian rules to achieve this.

Anyone got any creative ideas to the contrary?
User avatar
Dallas
Posts: 23493
Joined: Sun Aug 09, 2015 10:57 pm

Yes by using several historical relative odds condtions
http://www.betangel.com/forum/viewtopic ... 53&t=11538
Stubbo
Posts: 56
Joined: Fri Dec 02, 2016 8:44 am

Thanks Dallas....will give this a try....trying also with an automation that uses multiple Signals, incrementing and decrementing based on price movements, and then resetting if the price count moves to more than 1, as well as then setting the bet if the count of stable price goes over X seconds.

If I get it working I'll offer it up.
Post Reply

Return to “Bet Angel - Automation”