Maximum price traded over a give time period

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
the4droogs
Posts: 78
Joined: Sun May 10, 2020 11:47 am

Hi everyone,

First off, thanks for everyone's help on my previous posts. I have now got my first bot working exactly as intended and it is online trading as we speak. It's a great feeling.

I'm now working on a new bot with a requirement that I can't figure out how to implement. Basically I need a condition that evaluates to true if the price has not traded above a given value over the last n minutes. Is this possible? Or do I need to set a series of rules with "historical relative odds condition" for 1 minute ago, 2 minutes ago etc.?

I note that there is an option to set a stored value with the high traded price of a selection, but it does not allow me to limit the time, which makes it unuseable in this situation as the markets often move wildly in their early stages.

Thanks in Advance.
the4droogs
Posts: 78
Joined: Sun May 10, 2020 11:47 am

Never mind. I've figured out a way to do this. I have a set signal condition which triggers when the price goes above the given value and sets the value to 1. I can then check if this value is set to check if the price has gone above this value. The only downsides are that my bot has to be active the whole time I am checking for and I have to predefine the price to check against. But it allows me to do what I need to do.

Thanks for reading :)
Post Reply

Return to “Bet Angel - Automation”