I only want my trading system to make trades on current data not old data so I added a condition:
if(getCurrentBarIndex() == 0) {
This stopped my system from working. I switched the value to -1 and it started working again. What's going on? Have I just built a delay into my system? Why wouldn't it work with 0? Any ideas?
Thanks.
if(getCurrentBarIndex() == 0) {
This stopped my system from working. I switched the value to -1 and it started working again. What's going on? Have I just built a delay into my system? Why wouldn't it work with 0? Any ideas?
Thanks.
Comment