how to set the condition: Last traded Price hits 4.0-4.3, 3 times in time period 6 mins - 8 mins?

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

If I wanted to set this following conditions.... how would I do it???:

A) last traded price hits odds 4.0-4.3, 3 or more times in time period 6 mins - 8 mins?

B) Price has never gone below 3.8
User avatar
jamesedwards
Posts: 4366
Joined: Wed Nov 21, 2018 6:16 pm

Fugazi wrote:
Sat Nov 16, 2024 1:17 am
If I wanted to set this following conditions.... how would I do it???:

A) last traded price hits odds 4.0-4.3, 3 or more times in time period 6 mins - 8 mins?

B) Price has never gone below 3.8
You could count every time the price enters the band and leaves the band.
in = 1
out = 2
in = 3
out = 4
in = 5

If count >4 then trigger.
If count <5 after 8 mins then reset count back to 0.
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

jamesedwards wrote:
Sat Nov 16, 2024 8:50 am
Fugazi wrote:
Sat Nov 16, 2024 1:17 am
If I wanted to set this following conditions.... how would I do it???:

A) last traded price hits odds 4.0-4.3, 3 or more times in time period 6 mins - 8 mins?

B) Price has never gone below 3.8
You could count every time the price enters the band and leaves the band.
in = 1
out = 2
in = 3
out = 4
in = 5

If count >4 then trigger.
If count <5 after 8 mins then reset count back to 0.
I guess thats my issue, how I'm counting that. I realise I need to store some values but am getting stumped how i can store that it has entered and then left

I know I can group conditions of stores values i.e: Price was greater than 3.95, less than 4.35 betweeen minutes x and x. AND price was above 4.3 and NOT less than 4.0 in this same time period. But I don't know how to get it to count how many times it has gone in and out of that zone.
User avatar
jamesedwards
Posts: 4366
Joined: Wed Nov 21, 2018 6:16 pm

Fugazi wrote:
Sat Nov 16, 2024 11:04 am
jamesedwards wrote:
Sat Nov 16, 2024 8:50 am
Fugazi wrote:
Sat Nov 16, 2024 1:17 am
If I wanted to set this following conditions.... how would I do it???:

A) last traded price hits odds 4.0-4.3, 3 or more times in time period 6 mins - 8 mins?

B) Price has never gone below 3.8
You could count every time the price enters the band and leaves the band.
in = 1
out = 2
in = 3
out = 4
in = 5

If count >4 then trigger.
If count <5 after 8 mins then reset count back to 0.
I guess thats my issue, how I'm counting that. I realise I need to store some values but am getting stumped how i can store that it has entered and then left

I know I can group conditions of stores values i.e: Price was greater than 3.95, less than 4.35 betweeen minutes x and x. AND price was above 4.3 and NOT less than 4.0 in this same time period. But I don't know how to get it to count how many times it has gone in and out of that zone.
If price <4.0 OR >4.3 then set signal to 0.
If price >3.95 AND <4.4 then set signal to 1.
Count the number of signal changes.
Fugazi
Posts: 935
Joined: Wed Jan 10, 2024 7:20 pm

jamesedwards wrote:
Sat Nov 16, 2024 11:54 am
Fugazi wrote:
Sat Nov 16, 2024 11:04 am
jamesedwards wrote:
Sat Nov 16, 2024 8:50 am


You could count every time the price enters the band and leaves the band.
in = 1
out = 2
in = 3
out = 4
in = 5

If count >4 then trigger.
If count <5 after 8 mins then reset count back to 0.
I guess thats my issue, how I'm counting that. I realise I need to store some values but am getting stumped how i can store that it has entered and then left

I know I can group conditions of stores values i.e: Price was greater than 3.95, less than 4.35 betweeen minutes x and x. AND price was above 4.3 and NOT less than 4.0 in this same time period. But I don't know how to get it to count how many times it has gone in and out of that zone.
If price <4.0 OR >4.3 then set signal to 0.
If price >3.95 AND <4.4 then set signal to 1.
Count the number of signal changes.
Aha, my avoidance of learning signals catching up on me. Will get to that, thank you
Anbell
Posts: 2405
Joined: Fri Apr 05, 2019 2:31 am

You'll be fine, Nothing to be scared of.
Post Reply

Return to “Bet Angel - Automation”