I'm trying to setup FrameTicks for TradingChart, but it dosn't work.

(*take data*)
data = FinancialData["NASDAQ:AAPL", "OHLCV", {{2017, 1, 1}, {2017, 4, 16}}];

(*def. of ticks*)
maxh = Max[#[[2]]&/@Last/@data];
minl = Min[#[[3]]&/@Last/@data];
lstYTicks = Table[i,{i,minl,maxh,(maxh-minl)/6}];

(*draw chart*)
 Frame -> True,
 FrameTicks -> {{Automatic, lstYTicks}, {Automatic, Automatic}},
 GridLines -> {Automatic, lstYTicks},
 GridLinesStyle -> Directive[Gray, Dotted],
 ImageSize -> Large]

enter image description here

It seems that FrameTicks -> {{Automatic, lstYTicks}, {Automatic, Automatic}} option pattern is invalid here. How to solve this case. Thanks!

  • $\begingroup$ Assumed GridLines and Ticks are set up as the trading reference lines of the share prices. $\endgroup$ – Jerry Apr 16 '17 at 3:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.