I want to compare the 8th count vs the 5th count and the 13th count vs the 8th count.
Problem No.1: My private double values changes.
Problem No.2: Not sure how to code the 8th vs 5th
Can you help answer these questions from other members on futures io?
your codes will get more complicate as you compare more and more variables
the best practice is to save those values into an array, due to Ninja programming (think of it a perm loop for each new bar added it will start back from bar #1 again) the values stored in the array will be shifted but they are in there you just have to know which is which.
// declare an array in #region Variables
private double[] arrayGap = new double[13000];
....
// example to store value into an array
// do gap storing into an array
// use print to debug
// Print(" current open "+Open[0]+ " prior close " + gapLast);
good luck.
The following user says Thank You to cory for this post: