Pretty close. A little undershoot on the second day's low from the
close symbol, but really close on my system's rendering.
Sherlock, Ric wrote:
---Sherlock, Ric wrote:
---Brian Schott wrote:
A slight improvement is suggested below. The pensize 5 makes the
markers visible on my Mac, perhaps the increased pensize is
not needed
on windows.
A bit fat & ugly on my screen. Regardless it would probably
be better to specify it before the "pd x" line so the user
can override if desired using the left argument to the verb.
Sorry, I hadn't seen that you'd changed the plot types as well!
That is cleaner, but I'm not sure you can distinguish the difference between the
opening & closing prices?
The following version using symbols looks quite good on Windows.
plot_ohlc2=: 3 : 0
''plot_ohlc2 y
:
hl=. 1 2{y
oc=. 0 3{y
ntics=. {:$hl
pd 'reset'
pd 'xticpos ',": i.ntics
pd 'pensize 3'
pd x
pd 'type symbol'
pd 'symbolfont Arial 18'
pd 'symbols ',u: 9488 9484
pd oc
pd 'type hilo'
pd hl
pd 'show'
)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm