Erase Indicator Buffer values New comment stamat 2008.11.10 21:11 Hello! My first post here :) I just finished writing my indicator. However, I need to erase the old line which my indicator has drawn (e.g. from bar 50 to the last bar). Here is what i tried: for (int i=LastBufferValue; i<=Bars; i++) { My_Buffer[i] = 0; } The above code does not erase the line from the screen, but just makes it vertical. Why is that? (I also tried with My_Buffer[i] = NULL; - same thing though) I hope you can help me out! Thanks! [ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. Import history doesn't load file Ask! Ray 2008.11.10 21:17 #1 My_Buffer[i] = EMPTY_VALUE; stamat 2008.11.10 21:55 #2 phy: My_Buffer[i] = EMPTY_VALUE; That was a quick reply! :) Thank you phy! New comment
Hello! My first post here :)
I just finished writing my indicator. However, I need to erase the old line which my indicator has drawn (e.g. from bar 50 to the last bar). Here is what i tried:
The above code does not erase the line from the screen, but just makes it vertical. Why is that?
(I also tried with My_Buffer[i] = NULL; - same thing though)
I hope you can help me out!
Thanks!