Price making a 30 bar low in the last 5/10 days

I am new here without much coding knowledge. I hope that i will become better at it overtime and be able to help others.
I am trying find stock that made a 30 days low but only in the last 5 or 10 days.
i have the below code for the 30days low, but not sure how to put the condition so it shows the low being made in the last 5 to 10 days. Thanks

//30bar Low
Low30days = LLV(C,30);
Low30days = LLV(C,30);
LLV30bars = LLVBars(C,30);

MinBarsCondition = LLV30bars <= 5;

Filter = MinBarsCondition AND Status("LastBarInRange");

AddColumn( Low30days , "LLV", 1.2 );
AddColumn( LLV30bars, "LLVbars", 1 );

Thanks for your help. There is just one condition missing. The low of the last 30days should be made within the last 5 to 10 days. Appreciate your help.

MinBarsCondition = LLV30bars >= 5 AND LLV30bars <= 10;

More than or equal to 5 and less than or equal to 10

1 Like

@40_Flax It wasn't missing. You just didn't write 5 to 10 days in first post. You wrote 5 or 10 days.

1 Like

Thanks to both.
Yes i have to learn to be much more specific with the systematic approach.