Count the number of symbols in DataSet that meets certain criteria?
Author: mikesblack
Creation Date: 11/9/2018 1:13 PM
profile picture

mikesblack

#1
I would like to use cum down indicator to determine the number of symbols that reach or exceed a specific level to determine whether to trade. I’m not sure if Wealth Lab can do this. Is it possible to do this? If so, how can I write code to my system to perform this function? Thanks.
profile picture

Cone

#2
Why do you want to use CumDown "to determine the number of symbols that reach or exceed a specific level".

It would be best to explain what you want to do by specific example and that should clear up any doubts.
profile picture

mikesblack

#3
Thanks Cone. One of my systems uses cum down at or exceeding 3 days to produce a signal to enter long. I am interested in looking at all the symbols in the data set, specifically the S and P 500 to determine the percentage of symbols that meet this criteria. If for example the percentage of symbols that meet this criteria is greater than 60% that would prevent this system from producing any buy signals. The logic is that the signal is not based on the general market but rather based on specific symbols. I hope I’m being clear.
profile picture

Eugene

#4
We just talked about it on the forum yesterday. So to save me some typing:

Close above SMA in a DataSet, post #2

Both approaches (QuickRef code sample or Index-Lab) should apply.
profile picture

mikesblack

#5
Thanks Eugene I’ll work with this example.
profile picture

Eugene

#6
It's the least I can do Mike. Let me know if you need further assistance with this.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).