I'm working on an indicator which should work in following way:
When Low of the current bar break below Low of the previous bar. Indicator should point at the high of the previous bar.
Unfortunatelly what happens it doesn't seem to work this way and an indicator is pointing above the high of the current bar instead of previous one.
Could you explain why is that?
Here is the code:
double high1 = High[1]; double low1 = Low[1]; if (low1 > Low[0]) Values[0][0] = high1;
Comment