- ago
I need suggestions to manage the display zoom for the price axis. In WL6, I used Draw-Line on the lines that I did not want to force to be on the display. I then figured the number of bars on the display and made sure that I used Draw-Text to label to place text at least 3 times on the display for the current time axis. This worked OK. I cannot figure out how to do that with WL8. This is an acceptable solution but is far from deluxe. Another solution would be to allow a different version of Plot...Line that allowed a line to not be forced on the display, but otherwise worked exactly line the expected Plot-Line behavior. A third alternative would be to provide a way to zoom the Price-axis so regardless of the lines Plotted, we can zoom closer to the actual price of a security. I am open to your suggestions as I try to implement WL6 behavior in WL8. Thank you for your help.

Bryce
0
76
1 Replies

Reply

Bookmark

Sort
- ago
#1
Honestly, I'm not sure what you're trying to accomplish. There isn't any zoom function for the WL Chart itself, but you can open two separate Charts of different time scales and link them together so when one changes the other one automatically changes. That's what I do.

ScottPlot is installed with WL8 and it will let you zoom at will if you use the finantic.InteractiveGraphics extension to display your ScottPlots. But doing a "financial plot" with ScottPlot is somewhat more cumbersome than doing the same plot with a WL8 Chart. I generally reserve ScottPlot for scatter plots or time series plots that are not financial (i.e. without OHLC bars). https://scottplot.net/cookbook/4.1/#plottable-finance

If you're trying to place text at a specific location (i.e. world coordinates) on the Chart pane, take a look at the DrawBorderText function.
0

Reply

Bookmark

Sort