This is my code:
and everything looks good. When I run the code, things are working well except sometimes.
Here is a screenshot of me debugging it. Those functions are suppose to grab the lowest and the highest value from the past 3 bars. Looking at this image, you clearly see that High[1] is actually 1.0927, not 1.0925 as the Output window is suggesting.
Comment