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)
I would like to ask how to create a check to avoid triple or 5 fold prints due to higher time frame. I collect events that happen on 3,9,27 min. But if it happens on 27 min it prints many times hence higher TF. See code example below.
Thanks in advance // BR Stefan
Can you help answer these questions from other members on NexusFi?
I don't use your platform, but in general "else" clauses are made for your problem.
Instead of running the conditions sequentially, link them with else clauses.
In pseudo code, start with the highest time frame and work down to the lowest like that:
That way your program will only execute the code for the highest time frame that fills
your condition and skip the others.
The following user says Thank You to choke35 for this post:
what @choke35 suggested might work. You can try to only plot and the end of the respective bar (timeframe 1, 2 or 3). I would also suggest not to use the standard value1 and condition1 variables, but create your own ones and tie them to the datastreams (as not they are tied to data1 and you evaluate them with every data1 update).
Regards,
ABCTG
The following user says Thank You to ABCTG for this post: