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)
Hi,
Anyone that could help me to add volume cut off high and low for this working cumulative indicator.
I have checked other posts but this is the one that seem to work best for me (multicharts.
There is no logic to the cutoff I have just inserted it in inputs.
Thanks in advance.
BR Stefan
Can you help answer these questions from other members on NexusFi?
I am sure there are more things to think of than I have sofar.
I try to accomplish a CD that can filter tick size orders e.g. >1 and <=40 and then insert the same indi but with other settins e.g. >=41 and < 9999. This to be able to see what retail traders are doing and larger players are doing.
the "problem" is that your code simply uses the the raw values for UpTicks and DownTicks.
Your filtering has to be applied before that. You basically need two additional intrabarpersist variables for the up volume and update them each tick (some of the other variables like UpVolume might need to be intrabarpersist, too).
Then you can store the current and previous code computation's UpTicks value like this:
With these two variables you can compute the UpTicks value for each tick that came in and check if it matches your inputs - if it does, add it to UpVolume.
At the beginning of a bar you would have to set prevUpVolume to 0 and reset UpVolume. You would have to do the same for the DownTicks, too.