Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I wrote an indicator that draws some rectangles based on user selection. The problem I have is that when the chart shifts left or right (either by user input or more data) the objects stay at their original position naturally.
Is there an event I can subscribe for, or any other method, that would fire when the chart moves so that I can also re position my custom drawn objects?
I read somewhere that the only way to do this is to write your own bar type but it sounds a bit overkill.
Thanks for any help,
Popsicle
Can you help answer these questions from other members on NexusFi?
How did you draw that rectangle ?
If you did it correctly, it should move automatically, as it will stick to the candles
Are you by any chance, using low level windows GDI calls ?
Thank you very much for your reply. I am drawing the rectangles in the plot override of the indicator with graphics.FillRectangle. Thanks to your reply I am now using DrawRectangle and it is working beautifully.