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)
Explanation somewhere on creating custom plots with colors etc......
You guys know that function sometimes used near the bottom of scripts, under properties for creating graphics on a chart..... Usually starts like this:
Ninja says they don't support this, so they probably don't have a write up on it anywhere. I guess its about time I figure that out.
But do you guys know of an explanation somewhere on how to create that block, and how it works?
Can you help answer these questions from other members on NexusFi?
I would like to draw a descriptive label for each row of dots in my indicator panel. It is not an issue drawing the text to the right of the plot using DrawText but there is apparently no parameter to draw it to the left of the row (so that the label …
NT doesn't support it, but somewhere on the site they have an example of custom plotting posted. (I don't have it any more, but it's probably called something like "SampleCustomPlotMethod"). Otherwise, your best bet is just to look at some of the indicators others have uploaded.
It provides a context to draw custom drawings through a Graphics object that "tied to" or "points to" the panel on which indicator will be applied. However its uses are certainely wide...but you can start doing simple experiments with drawing some lines and other shapes with function avalibale with graphics object. Just type
"graphics." and intellisence will show available methods for use.
similarly bounds will occupy the rectangular space of panel in which indicator will be applied...and hence mostly represent dimensions in screen pixels....just type "bounds." and get availble methods.
Lastly min and max represnt the minimum and maximum values of vertical scale of indicator panel in which indicator is applied. If none of plot containing dataseries exisit in indicator then these min and max will be nearly 0 and 1.
For your example i hv created a small script, it only draws a rectangle and then draws a string in that
showing scales minimum and maximum values. Just put indicator one by one in price panel and seperate panel and see how it behaves on scrolling chart/changing scale etc.
Now it looks like this prints a string a fixed distance from the left of your rectangle, and a fixed distance from the top of your rectangle.
What if I wanted to be able to plot several variables one next to and under each other, while being able to keep everything in a nice tight box? Is this possible?
Sorta thinking out loud here. But with that picture in the post I have above....... Basically I am wanting to create a text box that will remain organized if the chart is resized or if the bars are expanded or contracted.
In the script example @devdas posted, I was moving that box and text around as he suggested. And I see that he had it lined up with an offset to the left/top borders.
In that pic above, basically I have a text box, with essentially 3 rows at top with one 3 variables in each row. Followed by 4 more rows, each row with one variable. Maybe what I need to do is align everything into each one of these boxes? Since it seems like the offset is and the way you align things is based on the number of pixels. If I could count the number of pixels of a given string, then I could align everything up properly, solving the scaling problem.
Here is a pic of what I mean.
----EDIT-----------
I see scaling isn't really an issue with this method of drawing. Nice! Let me see what I can come up with.