I am writing a scan in Bullcharts to alert me to possible weakness in a stock.
What the scan does is look for “any” combination of 4 out of a total of 6 “weak indicators”, without repeating a combination
I am aware of the formula n!/(r!*(n-r)!) using factorials !
n = total number to choose from
r = number in combination
Using that formula: for any 4 out of 6, there are 15 possible non repeated combinations
Say the 6 indicators are:
Does anyone know a mathematical way or a website that will give me the actual 15 possible combinations without repeats. There must be an easier way than trial and error.
eg. Here are the first 5…..
....10 more to go
Thanks for your help.