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 need your help with a code that finds the HIGH and LOW between the last 3 bars ( red boxes ) and the next 3 bars without taking into account the previous 3 as shown in the figure. To perform the following calculation.
S = (4*X + 3*X[1] + 2*X[2] + X[3])
I have tried but I have not found a solution. Thank you for your time.
Can you help answer these questions from other members on NexusFi?
Kevin thanks for your time, maybe my explanation was no the better,
Attached new imagen explaining better,
the first imagen (red boxes) was hand draw.
The idea is to find the Highest and Lowest in the 3x bars interval formed, like you can see in the pic.
calculate and storage ‘X’ to get data .....X, X[1], X[2]........ so on.
You can see part of code.
Where: X ‘Variable to store, ” it can be another letter , X= (H+L)/2
H= Highest of 3 bars interval
L= Lowest of 3 bars interval
S = (4*X + 3*X[1] + 2*X[2] + X[3]) / 10; // Calculate S with X[1],.......X[3]
D = (.0962*S + .5769*S[2] - .5769*S[4]- .0962*S[6]); // Calculate D with S[1],.......S[6]
For example, if I have a 5 minutes chart, 3 bars in the that interval are 1 bar in a 15 min chart. Then H and L in 15 min chart, is the same the H and L en 5 min chat ( 3 bars x 5 min).
I want to find the H and L for 15 min bar, but in the 5 min chart. for that the 3 bars interval.