Hi Nicolas
I would appreciate some guidance on coding a strategy that will buy at market on the nth occurrence of a Lower Low (LL). See picture attached for my expectaton of a Lower Low.
In english i’m looking for somthing like this:
Lower Low can be a variation of “low[5] > low[4] and low[4] >= low[3] and low[3] >= low[2] and low[2] < low[1] and low[1] < low[0]”
Start with setting the variables LL1 to LL5 to 0
Next
1st occurence of a LL set LL1 = Price of Low[2] within the Lower Low
In between each lower lower there will be a Lower High (which could be the opposite of the description of the Lower Lower above).
2nd occurence of LL set LL2 = Price of Low[2] within the 2nd Lower Low
3rd occurence of LL set variable LL3 = Price of Low[2] within the 3rd Lower Low
Then buy when LL3 is <> 0
Then when on market set LL variables back to 0 and start again.
Thanks for our support in advance.
Steve