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 am working on an indicator for VOlume charts, to return the % complete of the bar. I have it working, BUT its not staying w/ the price bar, I believe that this is due to the bar type is a volume bar vs a time based bar. so I've been playing with the TEXT_NEW field, to get the setting correct, based off the Close of the previous bar, but when I do this it doesn't show.
Any ideas on how to correct this, below is the code.
Can you help answer these questions from other members on NexusFi?
the problem is that you are using Text_New. This uses time information accurate to the minute only. On non time based charts like volume charts, where you can't know the ending time of a bar in advance, this will shift the text too far to the right with your code.
I would suggest using Text_New_Dt for accurate text placement and Text_SetStyle to draw it to the right of the current bar.
Something like this will do it:
You are welcome. This keyword is fairly new and was only introduced with the current MC 8.7.
It will give the most precision possible with charts that have millisecond accuracy.