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.
The following user says Thank You to futuretrader for this post:
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.
Harvest The Moon Nest The Market
The following 3 users say Thank You to devdas for this post:
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.
I see scaling isn't really an issue with this method of drawing. Nice! Let me see what I can come up with.
Last edited by forrestang; September 7th, 2011 at 07:17 PM.