<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Presenting stock data in form of box plot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/511946#M73963</link>
    <description>&lt;P&gt;Thanks Jim for your patient guidance.Your code is great!&lt;BR /&gt;I learned it, too.Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-22_14-23-26.png" style="width: 715px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43446i9ED331764BA4F0E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-22_14-23-26.png" alt="2022-06-22_14-23-26.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-22_15-13-46.png" style="width: 432px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43447iFF281E1236CB9C3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-22_15-13-46.png" alt="2022-06-22_15-13-46.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 07:18:36 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2022-06-22T07:18:36Z</dc:date>
    <item>
      <title>Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322791#M57265</link>
      <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;the data describing stock price movements is created by open/close price and max/min price. Is there any way to create box plot (candlestick chart) in JMP having real body from open and close price and upper and lower shadow having values in max (high) and min (low) prices respectively, like in the picture attached or is there better way to do that? The traditional &lt;SPAN class="command"&gt;Box Plot&lt;/SPAN&gt; element, however, shows outlier or quantile box plots and provides a compact view of a distribution of values. I attached an example data table in which several timestamps and price values (min, open, close and high) are provided. I would appreciate for hints and suggestions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="candlestick_chart.png" style="width: 278px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27452i26E25F3A116DBEB4/image-dimensions/278x278?v=v2" width="278" height="278" role="button" title="candlestick_chart.png" alt="candlestick_chart.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(source: Wikipedia)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:06:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322791#M57265</guid>
      <dc:creator>lukasz</dc:creator>
      <dc:date>2023-06-11T11:06:50Z</dc:date>
    </item>
    <item>
      <title>inkRe: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322836#M57270</link>
      <description>&lt;P&gt;I think this is the best that JMP can do without scripting&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stocks.PNG" style="width: 658px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27460iF9C6C585D00E16A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="stocks.PNG" alt="stocks.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But with a little bit of effort, one could easily write some JSL that would create the Candlestick plots.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 20:14:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322836#M57270</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-16T20:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322842#M57275</link>
      <description>&lt;P&gt;Yes, as Jim points out, Graph Builder can do this easily. &amp;nbsp;As you get more data, though, you might want to consider IR (individual moving range charts) as these will provide insight into consistency/stability of the metrics over time.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 20:33:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322842#M57275</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2020-10-16T20:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322847#M57278</link>
      <description>&lt;P&gt;I had a little more time to look into this, and I think the easy solution below might be a workable solution for you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="candlestick.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27463i6568D7B9AB17293C/image-size/large?v=v2&amp;amp;px=999" role="button" title="candlestick.PNG" alt="candlestick.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Stock Prices.jmp" );

dt:open &amp;lt;&amp;lt; label;
dt:close &amp;lt;&amp;lt; label;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 1289, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :Date ), Y( :High ), Y( :Low, Position( 1 ) ) ),
	Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 10 ), Bar Style( "Interval" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Date",
			ScaleBox,
			{ Interval( "Day" ), Inc( 1 ),
			Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				10,
				Properties( 0, {Line Width( 2 )}, Item ID( "High..Low", 1 ) )
			)}
		)
	)
);

// Add the boxes to the chart
Report( gb )[framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
	halfDayincr = In Days( 1 ) / 2 * .8;
	days = (Col Max( :Date ) - Col Min( :Date )) / In Days( 1 );
	Pen Color( black );
	Pen Size( 2 );
	For( i = 1, i &amp;lt;= N Rows( dt ), i++,
		If( :Open[i] &amp;lt;= :close[i],
			Fill Color( light green );
		,
			Fill Color( light red );
		);
		Rect( :date[i] - halfDayincr, Max( :open[i], :close[i] ), :date[i] + halfDayincr, Min( :open[i], :close[i] ), 1 );
		Rect( :date[i] - halfDayincr, Max( :open[i], :close[i] ), :date[i] + halfDayincr, Min( :open[i], :close[i] ), 0 );
	);
);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Oct 2020 12:30:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322847#M57278</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-17T12:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322941#M57291</link>
      <description>&lt;P&gt;Thank you very much! I tried to use your code on the data from yahoo finance website, however, the data from there is saved as characters with "." decimal points which did not allow to convert values to correct numeric values. The below snippet converts values in columns and allows to plot them correctly. Thank you and best regards.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//open data
dt = open( "https://query1.finance.yahoo.com/v7/finance/download/URA?period1=1571303176&amp;amp;period2=1602925576&amp;amp;interval=1d&amp;amp;events=history&amp;amp;includeAdjustedClose=true" );

//change decimal point from "." to ",", otherwise later conversion to numeric format produces wrong results
nr = nrows(dt);
for (k = 1, k &amp;lt;= nr, k++,
	dt:Open[k] = substitute(dt:Open[k], ".", ",");  
	dt:Close[k] = substitute(dt:Close[k], ".", ","); 
	dt:High[k] = substitute(dt:High[k], ".", ","); 
	dt:Low[k] = substitute(dt:Low[k], ".", ","); 
	dt:name("Adj Close")[k] = substitute(dt:name("Adj Close")[k], ".", ","); 
);

//change format to numeric
dt:Open &amp;lt;&amp;lt; Data Type( numeric ) &amp;lt;&amp;lt; Modeling Type( continuous );
dt:Close &amp;lt;&amp;lt; Data Type( numeric ) &amp;lt;&amp;lt; Modeling Type( continuous );
dt:High &amp;lt;&amp;lt; Data Type( numeric ) &amp;lt;&amp;lt; Modeling Type( continuous );
dt:Low &amp;lt;&amp;lt; Data Type( numeric ) &amp;lt;&amp;lt; Modeling Type( continuous );
dt:name("Adj Close") &amp;lt;&amp;lt; Data Type( numeric ) &amp;lt;&amp;lt; Modeling Type( continuous );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Oct 2020 11:14:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322941#M57291</guid>
      <dc:creator>lukasz</dc:creator>
      <dc:date>2020-10-17T11:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322942#M57292</link>
      <description>What you found with the data returned from the Yahoo Finance data must be Country settings specific.  The data that was returned to me in the U.S. did not have to be converted.</description>
      <pubDate>Sat, 17 Oct 2020 12:36:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322942#M57292</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-17T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322943#M57293</link>
      <description>&lt;P&gt;OK, thank you, I will notice that. Best regards&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 13:58:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/322943#M57293</guid>
      <dc:creator>lukasz</dc:creator>
      <dc:date>2020-10-17T13:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/433811#M68364</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/18506"&gt;@lukasz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with respect to decimal points using "." or "," perhaps you can fix this from the preferences as in the picture below. Yet, i would assume that all other data sets that you are using will change for the wrong...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_0-1636282933172.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37341i86C38CF4F214C59B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_0-1636282933172.png" alt="ron_horne_0-1636282933172.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this case, in order to just amend the format of a specific column in one file you can use the following command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="ww595820" class="code"&gt;Format( x, "Currency", 20, &amp;lt;&amp;lt;Use Locale(0) );&lt;/PRE&gt;
&lt;P&gt;Full description in this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/zh-cn/15.2/index.shtml#page/jmp/formatting-numbers.shtml" target="_blank"&gt;https://www.jmp.com/support/help/zh-cn/15.2/index.shtml#page/jmp/formatting-numbers.shtml&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let us know if it works.&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 11:15:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/433811#M68364</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-11-07T11:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/500241#M73521</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;How can remove the gaps in the graph that are not trading days?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Thank Jim!&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-06_14-19-03.png" style="width: 594px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42977i2D59450D77873378/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-06_14-19-03.png" alt="2022-06-06_14-19-03.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 06 Jun 2022 06:26:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/500241#M73521</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-06-06T06:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/500267#M73522</link>
      <description>&lt;P&gt;You will most likely have to change X-axis to nominal and then possibly modify the graphics script to accommodate for that change.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 08:27:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/500267#M73522</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-06-06T08:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/500270#M73523</link>
      <description>&lt;P&gt;Yes, the X-axis can display content other than the date.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But it is better to show the original date label when the mouse points over the graph.&lt;BR /&gt;That's what I was thinking.But I don't know how to change the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 08:49:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/500270#M73523</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-06-06T08:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/500285#M73524</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-06_17-02-21.png" style="width: 837px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42980i32BB2573A4C4BB0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-06_17-02-21.png" alt="2022-06-06_17-02-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 09:10:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/500285#M73524</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-06-06T09:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/506724#M73660</link>
      <description>&lt;P&gt;The columns that are displayed when you click on a data point, are columns that have the "Label" column property set.&amp;nbsp; In my original code, the open and close columns have their Label values set.&amp;nbsp; All you should have to do is to add a line for each of the columns you want to add the Label column property to.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 07:22:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/506724#M73660</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-11T07:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/507056#M73673</link>
      <description>&lt;P&gt;I tried not to use date-spec data, but ended up not modifying JSL.It didn't work.&lt;BR /&gt;As in JSL below, how to draw box diagram with new data?Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-12_16-02-10.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43185i85552725DDE49536/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-12_16-02-10.png" alt="2022-06-12_16-02-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Stock Prices.jmp" );
dt &amp;lt;&amp;lt; New Column( "tip", formula( Format( :Date, "yyyymmdd" ) ) );
dt &amp;lt;&amp;lt; run formulas;
Column( "tip" ) &amp;lt;&amp;lt; deleteFormula;
dt &amp;lt;&amp;lt; delete columns( "Date" );
dt &amp;lt;&amp;lt; New Column( "new", set each value( Row() ) );
dt:open &amp;lt;&amp;lt; label;
dt:close &amp;lt;&amp;lt; label;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 1289, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :new ), Y( :High ), Y( :Low, Position( 1 ) ) ),
	Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 10 ), Bar Style( "Interval" ) ) ),
	SendToReport(
		Dispatch( {}, "new", ScaleBox, {Interval( "Day" ), Inc( 1 ), Minor Ticks( 0 )} ),
		Dispatch( {}, "400", ScaleBox, {Legend Model( 10, Properties( 0, {Line Width( 2 )}, Item ID( "High..Low", 1 ) ) )} )
	)
);

Report( gb )[framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
	halfDayincr = In Days( 1 ) / 2 * .8;
	days = (Col Max( :new ) - Col Min( :new )) / In Days( 1 );
	Pen Color( black );
	Pen Size( 2 );
	For( i = 1, i &amp;lt;= N Rows( dt ), i++,
		If( :Open[i] &amp;lt;= :close[i],
			Fill Color( light green ),
			Fill Color( light red )
		);
		Rect( :new[i] - halfDayincr, Max( :open[i], :close[i] ), :new[i] + halfDayincr, Min( :open[i], :close[i] ), 1 );
		Rect( :new[i] - halfDayincr, Max( :open[i], :close[i] ), :new[i] + halfDayincr, Min( :open[i], :close[i] ), 0 );
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Jun 2022 14:11:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/507056#M73673</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-06-12T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/507145#M73675</link>
      <description>&lt;P&gt;When you changed from using column Date, which is a JMP date column(the number of seconds since January 1, 1904), to the column New, which is just an integer where each row is just 1 more than it's previous value, you needed to change the calculation of the variables, "days" and "halfDayincr".&amp;nbsp; The number of days is just the number of rows, and the halfDayincr, which is half the width of the rectangle to draw, is simply .4.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1655092381462.png" style="width: 969px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43186iAC6BE33DFA93A4E0/image-dimensions/969x402?v=v2" width="969" height="402" role="button" title="txnelson_0-1655092381462.png" alt="txnelson_0-1655092381462.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 1289, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :new ), Y( :High ), Y( :Low, Position( 1 ) ) ),
	Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 10 ), Bar Style( "Interval" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"new",
			ScaleBox,
			{ Interval( "new" ), Inc( 1 ),
			Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				10,
				Properties( 0, {Line Width( 2 )}, Item ID( "High..Low", 1 ) )
			)}
		)
	)
);

// Add the boxes to the chart
Report( gb )[framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
	//halfDayincr = In Days( 1 ) / 2 * .8;
	//days = (Col Max( :Date ) - Col Min( :Date )) / In Days( 1 );
	halfDayincr = .4;
	days = Col Max( :new ) - Col Min( :new );
	Pen Color( black );
	Pen Size( 2 );
	For( i = 1, i &amp;lt;= N Rows( dt ), i++,
		If( :Open[i] &amp;lt;= :close[i],
			Fill Color( light green );
		,
			Fill Color( light red );
		);
		Rect( :new[i] - halfDayincr, Max( :open[i], :close[i] ), :new[i] + halfDayincr, Min( :open[i], :close[i] ), 1 );
		Rect( :new[i] - halfDayincr, Max( :open[i], :close[i] ), :new[i] + halfDayincr, Min( :open[i], :close[i] ), 0 );
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is my strong suggestion that you start studying the code provided by the Community, so you are not limited to only being able to cut and paste it.&amp;nbsp; Please take the time to read the Scripting Guide, and to also take the time to study the community provided code, until you understand how it works.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 03:57:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/507145#M73675</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-13T03:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/507166#M73676</link>
      <description>&lt;P&gt;Thank Jim!&lt;/P&gt;&lt;P&gt;I want to strengthen the basic functions and grammar study.Now it's straight to the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 06:15:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/507166#M73676</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-06-13T06:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/511859#M73955</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Thanks again Jim for creating such an innovative image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I tried to create the diagram manually myself, but still couldn't.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I'm going to take Jim's time again and ask if I can explain the process of making this diagram manually.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I mainly want to add a smooth moving average to this graph.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;In addition, can the black frame of each box diagram be removed?&lt;/SPAN&gt;&lt;SPAN class=""&gt;Because I've seen other posts that have boxes without black borders.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-22_09-35-59.png" style="width: 647px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43442i2AB3DF326B5CFBD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-22_09-35-59.png" alt="2022-06-22_09-35-59.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thank Jim!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 01:52:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/511859#M73955</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2022-06-22T01:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/511914#M73962</link>
      <description>&lt;P&gt;Here is a modification that handles the elimination of the black outline&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1655874740671.png" style="width: 877px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43445i40646E8108CBAC30/image-dimensions/877x366?v=v2" width="877" height="366" role="button" title="txnelson_0-1655874740671.png" alt="txnelson_0-1655874740671.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Stock Prices.jmp" );
dt &amp;lt;&amp;lt; New Column( "tip", formula( Format( :Date, "yyyymmdd" ) ) );
dt &amp;lt;&amp;lt; delete columns( "Date" );
dt &amp;lt;&amp;lt; New Column( "new", set each value( Row() ) );
dt &amp;lt;&amp;lt; New Column( "Direction", character, set each value( If( :Open &amp;lt;= :Close, "Increasing", "Decreasing" ) ) );
dt &amp;lt;&amp;lt; run formulas;
Column( "tip" ) &amp;lt;&amp;lt; deleteFormula;
dt:open &amp;lt;&amp;lt; label;
dt:close &amp;lt;&amp;lt; label;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 1289, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :new ), Y( :High ), Y( :Low, Position( 1 ) ), Color( :Direction ) ),
	Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 10 ), Bar Style( "Interval" ) ) ),
	SendToReport(
		Dispatch( {}, "new", ScaleBox, {Interval( "new" ), Inc( 1 ), Minor Ticks( 0 )} ),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				10,
				Properties( 0, {Fill Color( light red )}, Item ID( "Decreasing", 1 ) ),
				Properties( 1, {Fill Color( light green )}, Item ID( "Increasing", 1 ) ),
				Properties( 0, {Line Color( 19 ), Line Width( 2 )}, Item ID( "High..Low", 1 ) )
			)}
		)
	)
);

// Add the boxes to the chart
Report( gb )[framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
	//halfDayincr = In Days( 1 ) / 2 * .8;
	//days = (Col Max( :Date ) - Col Min( :Date )) / In Days( 1 );
	halfDayincr = .4;
	days = Col Max( :new ) - Col Min( :new );
	Pen Size( 1 );
	For( i = 1, i &amp;lt;= N Rows( dt ), i++,
		If( :Open[i] &amp;lt;= :close[i],
			Pen Color( light green );
			Fill Color( light green );
		,
			Pen Color( light red );
			Fill Color( light red );
		);
		Rect( :new[i] - halfDayincr, Max( :open[i], :close[i] ), :new[i] + halfDayincr, Min( :open[i], :close[i] ), 1 );
		Rect( :new[i] - halfDayincr, Max( :open[i], :close[i] ), :new[i] + halfDayincr, Min( :open[i], :close[i] ), 0 );
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Concerning how to manually/interactively&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Drag the high and low columns to the Y axis drop area&lt;/LI&gt;
&lt;LI&gt;Drag the new column to the X axis drop area&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Right click on the chart and select&amp;nbsp; &amp;nbsp; &amp;nbsp; Smoother=&amp;gt;Remove&lt;/LI&gt;
&lt;LI&gt;Right click on the chart and select&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Points=&amp;gt;Change=&amp;gt;Bar&lt;/LI&gt;
&lt;LI&gt;Right click on the chart and select&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bar=&amp;gt;Bar Style=&amp;gt;Interval&lt;/LI&gt;
&lt;LI&gt;Drag the Direction column to the Color drop area&lt;/LI&gt;
&lt;LI&gt;In the legend, right click on the color box for Increasing and select&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fill Color=&amp;gt;select a light green color&lt;/LI&gt;
&lt;LI&gt;In the legend right click on the color box for decreasing and select&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fill Color=&amp;gt;select a light red color&lt;/LI&gt;
&lt;LI&gt;Now the boxes for each high and low need to be added.&amp;nbsp; This is done by adding a graphic script to Graph Builder
&lt;OL&gt;
&lt;LI&gt;Right click on the chart and select&amp;nbsp; &amp;nbsp; &amp;nbsp; Customize&lt;/LI&gt;
&lt;LI&gt;Click on the + box to add a new script&lt;/LI&gt;
&lt;LI&gt;In the script editor area, add the following script (the script is developed by the individual user.&amp;nbsp; In this case, I wrote the script)
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;halfDayincr = 0.4;
days = Col Max( :new ) - Col Min( :new );
Pen Size( 1 );
For( i = 1, i &amp;lt;= N Rows( dt ), i++,
	If( :Open[i] &amp;lt;= :Close[i],
		Pen Color( light green );
		Fill Color( light green );
	,
		Pen Color( light red );
		Fill Color( light red );
	);
	Rect(
		:new[i] - halfDayincr,
		Max( :Open[i], :Close[i] ),
		:new[i] + halfDayincr,
		Min( :Open[i], :Close[i] ),
		1
	);
	Rect(
		:new[i] - halfDayincr,
		Max( :Open[i], :Close[i] ),
		:new[i] + halfDayincr,
		Min( :Open[i], :Close[i] ),
		0
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Click on OK&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 05:28:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/511914#M73962</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-22T05:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Presenting stock data in form of box plot</title>
      <link>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/511946#M73963</link>
      <description>&lt;P&gt;Thanks Jim for your patient guidance.Your code is great!&lt;BR /&gt;I learned it, too.Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-22_14-23-26.png" style="width: 715px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43446i9ED331764BA4F0E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-22_14-23-26.png" alt="2022-06-22_14-23-26.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-06-22_15-13-46.png" style="width: 432px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43447iFF281E1236CB9C3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-06-22_15-13-46.png" alt="2022-06-22_15-13-46.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 07:18:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Presenting-stock-data-in-form-of-box-plot/m-p/511946#M73963</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2022-06-22T07:18:36Z</dc:date>
    </item>
  </channel>
</rss>

