Mike Winfrey
09-13-2007, 08:28 AM
I have a custom indicator that colors bars either red, green, or gray. I have calculate on barclose set to false so I can see what's going on just prior to barclose. These bars may change color several times during the life of the bar. However, many times upon barclose the bar is the wrong color. I can reload the script and the bar is correct. Can you offer any assistance why this might happen. The code is pretty simple. It is contained in the OnBarUpdate() method and checks that other CCIs that are superimposed are pointing are either rising or falling. This occurs at line 246.
Can you please offer any suggestions as to why they don't paint properly. I have other custom indicators that do the same thing. Quite frustrating because I can't depend on the entry being correct.
Thank you,
Mike Winfrey
Can you please offer any suggestions as to why they don't paint properly. I have other custom indicators that do the same thing. Quite frustrating because I can't depend on the entry being correct.
Thank you,
Mike Winfrey