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
how to set the condition: Last traded Price hits 4.0-4.3, 3 times in time period 6 mins - 8 mins?
- jamesedwards
- Posts: 4366
- Joined: Wed Nov 21, 2018 6:16 pm
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 leftjamesedwards wrote: ↑Sat Nov 16, 2024 8:50 amYou 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 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.
- jamesedwards
- Posts: 4366
- Joined: Wed Nov 21, 2018 6:16 pm
If price <4.0 OR >4.3 then set signal to 0.Fugazi wrote: ↑Sat Nov 16, 2024 11:04 amI 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 leftjamesedwards wrote: ↑Sat Nov 16, 2024 8:50 amYou 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 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 >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 youjamesedwards wrote: ↑Sat Nov 16, 2024 11:54 amIf price <4.0 OR >4.3 then set signal to 0.Fugazi wrote: ↑Sat Nov 16, 2024 11:04 amI 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 leftjamesedwards 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 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 >3.95 AND <4.4 then set signal to 1.
Count the number of signal changes.