You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice, in the above chart, there are gaps along the x-coordinate corresponding to days on which there was no trading.
229
-
- Many people like to see these gaps so that they can tell, with a quick glance, where the weekends and holidays fall.
230
-
- For example, in the above chart you can see a gap at Thursday, November 28th for the U.S. Thanksgiving holiday.
231
-
- Gaps along the x-axis can be eliminated with the `no_xgaps` keyword
240
+
Notice, in the above chart, there are no gaps along the x-coordinate, even though there are days on which there was no trading. ***Non-trading days are simply not shown*** (since there are no prices for those days).
241
+
242
+
- However, sometimes people like to see these gaps, so that they can tell, with a quick glance, where the weekends and holidays fall.
243
+
244
+
- Non-trading days can be displayed with the `show_nontrading` keyword.
245
+
- For example, in the chart below, you can easily see weekends, as well as a gap at Thursday, November 28th for the U.S. Thanksgiving holiday.
The above dataframe contains Open,High,Low,Close data at 1 minute intervervals for the S&P 500 stock index for November 5, 6, 7 and 8, 2019. Let's look at the last hour of trading on November 6th, with a 7 minute and 12 minute moving average.
The "time-interpretation" of the `mav` integers depends on the frequency of the data, because the mav integers are number of data points used in the Moving Average. Notice above that for intraday data the x-axis automatically displays TIME *instead of* date. Below we see that if the intraday data spans two (or more) trading days then two things happen:
356
-
- The x-axis displays *BOTH* TIME and DATE
357
-
-`no-xgaps` defaults to `True` FOR INTRADAY DATA INVOLVING TWO OR MORE TRADING DAYS
372
+
373
+
The "time-interpretation" of the `mav` integers depends on the frequency of the data, because the mav integers are the *number of data points* used in the Moving Average (not the number of days or minutes, etc). Notice above that for intraday data the x-axis automatically displays TIME *instead of* date. Below we see that if the intraday data spans into two (or more) trading days the x-axis automatically displays *BOTH* TIME and DATE
In the plot below, we see **what would happen if ` no_xgaps ` did NOT** default to `True` for intraday data involving two or more days.
386
+
In the plot below, we see what an intraday plot looks like when we **display non-trading time periods** with **`show_nontrading=True`** for intraday data spanning into two or more days.
For more examples of using mplfinance, please see the jupyter notebooks in the `examples` directory.
550
+
For more examples of using mplfinance, please see the jupyter notebooks in the **[`examples`](https://github.com/matplotlib/mplfinance/blob/master/examples/)** directory.
532
551
533
552
---
534
553
535
554
# <aname="release"></a>Release Notes
536
555
537
556
| Version | Description | Release Date |
538
-
|----------|--------------|----------------|
557
+
|:---------|:-------------|:---------------|
558
+
| 0.12.3a0 | - kwarg `block=False` for non-blocking call to `mpf.plot()`<br> - customize aspect ratio, figure title, y-labels<br> - customize colors and other `style` aspects of plot<br> - `no_xgaps` now defaults to True: use `show_nontrading=True` to set no_xgaps to false<br> - secondary y-axis available to `make_addplot()`<br> - bug fix for volume widths | 2020-02-12 |
539
559
| 0.12.0a3 | Increase mav limit from 3 to 7 different mavs | 2020-01-16 |
540
560
| 0.12.0a2 | Ability to save plot to a file (pdf, svg, png, jpg, ...) | 2020-01-14 |
541
561
| 0.12.0a1 | Ability to plot arbitrary user data (in addition to basic OHLCV data).<br> - both line and scatter plots available.<br> - optionally plot on either the "main" or "lower" (aka "volume") axis. | 2020-01-09 |
@@ -565,10 +585,18 @@ With this new ` mplfinance ` package installed, in addition to the new API, user
565
585
from mplfinance.original_flavor import<method>
566
586
```
567
587
588
+
568
589
where `<method>` indicates the method you want to import, for example:
569
590
591
+
592
+
570
593
```python
571
594
from mplfinance.original_flavor import candlestick_ohlc
0 commit comments