I am trying a simple strategy to go long if the current bar becomes higher than the last bar. I have tried these codes as separate conditions and was wondering if my syntax is right for both or not. In both cases method is OnBarUpdate(). Can you please verify this code is right, it compiles fine? Thanks
(CurrentBar > Bars.Count - 1)) //current bar is higher than the last bar.
(CurrentBar > Close[1])) //current bar is higher than the last closed bar.
John
Comment