Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
How do I count signals, like a crossover on an indicator, while also filtering out the ones I do and do not want count be bar distances.
Like MA cross, count 1, then if it crosses again within 20 bars don't count it, count if above and set as condition for the next part??? Just to get rid of jittery indicator action...
Thx & appreciate any help
Can you help answer these questions from other members on NexusFi?
Can you elaborate somewhat on your question? Perhaps show your code so far?
I don't think I follow you completely - when do you want to count it, and exactly when doesn't it count? And: "count if above and set as condition for the next part" - count what (crossovers, bars)? Which condition (cross over condition, bar count < 20 condition)? And which "part"?
For example:
1 Price crosses above the MA, I want MC to count one signal.
2 Price crosses below MA and above again within, say within 30 bars. I don't want MC to count this, too close.
3 Price crosses above MA a third time after 50 bars, which I want to count.
4 Count should be 2 now.
5 Now Stochastic cross above 50 and count = 2, I want to go Long.
So how to count signals and filter counts by bar distances in-between them.
Hi thx for taking the time for the code...
somewhat cant get it to work though.
I dojt want two MAs two cross, but just filter several consecutive price over MA crosses. Don't count the ones two close together, e.g. two quick whipsaws. Then go long after the third cross if another indicator crosses a certain spot/value.
One of the best MultiCharts programmer of this forum took time to code exactly what you specified, and your answer is the one above.
Apparently, the answer does not satisfy you. But I personally have understood your question the same as Jura did.
If you want a solution to your problem, you will probably find it on futures.io (formerly BMT). But, please, explain clearly what you want. And "clearly" means "not as in messages #1 and #6".