Hello, I have tried to use barcomplete from time to time over the last few years with only partial success. barcomplete as defined by TJ is barcomplete = BarIndex() < LastValue(BarIndex());
Using barcomplete in a Buy (or Sell) rule such as: Buy = Cross(MACD(), Signal()) and barcomplete; will generate Buy signals and plot them as arrows on the screen at the end of each bar. It will also successfully backtest those Buy and sell signals. Now what it will not do: With this same Buy(or Sell) rule as above, I have never been able to have the Buy rule trigger an order via Interactivebrokers using the ibc interface. Never with all the different versions of AB that I have employed (and enjoyed). I am using AB 5.20.1 RC-1 now. I have also discovered that with the barcomplete statement in the Buy command line, the system will not execute a SAY command to announce the Buy signal, although it does so if the barcomplete is commented out. Has anyone else noticed this problem? Btw, I have the same problem switching to another computer, and with XP or Vista. I would really like to have the barcomplete functionality if anyone has found a work around. Grover
