I just created a basic indicator but it is not working for some reason.
In essence, I am just trying to determine if the Open of the current bar is greater or less than the close of the previous bar. But it is not working.
Once I get this to work, I just want to say, "if it is greater than close of previous bar + x Pips, then plot line"
It is working fine when I just do, "Open[0] == Close[0]" but it doesn't when I use "Open[0] > Close[1]"
Here is the code that I am using
protected override void OnBarUpdate() { Plot0.Set(Open[0] > Close[1] ? 1 : 0); }
Comment