brafaar
November 23, 2022, 3:51pm
1
Hi,
Would it be possible to add/configure SMA 1000 (in addition to the already existing SMA 5, 20, 30, 38, 50, 90, 100, 200 days in the graph views? I pretty much use it to assess whether a stock in my watchlist is in price or not. Right now I use it in a Google Sheets but it would be nice to have all info condensed in Portfolio Performance.
Thanks!
1 Like
brafaar:
add/configure SMA 1000 (in addition to the already existing SMA 5, 20, 30, 38, 50, 90, 100, 200 days in the graph views?
maybe an additional free-to-set value SMA
1 Like
Similar request of configurable SMA intervals/periods where requested in German section:
Hi zusammen! Soviel ich weiß, lässt es sich nicht einstellen.
Oder doch? Wäre toll und (unabhängig meines Wunsches von 10 Tagen in diesem Fall) bestimmt allg. auch sinnvoll für den einen oder anderen, der keine Lust hat, jeden Tag auf einer Website “seinen” GD einzustellen, weil der eben dort nicht in den Settings gespeichert wird
Danke und schönen Tag!
Fortsetzung der Diskussion von Neues & Nennenswertes :
Vielen Dank für die neue Funktion, die ich als sinnvolle Erweiterung der Kursdiagramme sehe.
Zwei Anregungen möchte ich dazu noch los werden:
Da ja fast alle Techniker ihr eigenes Lieblings-MA haben, wäre doch eine Möglichkeit, die Beobachtungszeiträume flexibel z.B. in den Einstellungen zu hinterlegen eine tolle Sache.
Evtl. könnte man dort auch noch zwischen simple, weighted, exponential … auswählen.
Oft dient das Volumen als …
2 Likes
brafaar
November 24, 2022, 4:51pm
4
Thank you both for the reply. I see the other post is quite old, from 2017. Just hope this feature will get prioritized at some point
Anyway, I mark the last post as the solution.
Many thanks!
Please keep in mind that PP is an open source project and every person who is pushing this project forward piece by piece is doing it in their free time. And all of the small and big changes must be checked by PP owner @AndreasB , also in his free time.
But I can tell you that about one year ago I worked on these configurable intervals:
portfolio-performance:master
← OnkelDok:SMAx
opened 07:49PM - 05 Nov 21 UTC
Currently, fixed intervals are available for SMA and EMA.
[Here](https://forum.… portfolio-performance.info/t/gleitender-durchschnitt-sma-gd-fur-10-tage-oder-frei-wahlbaren-zeitraum/18419) and [here](https://forum.portfolio-performance.info/t/erweiterung-kursdiagramm-um-sma-weitere-ma-und-volumen/1159) freely configurable intervals were requested.
**EDIT: Change of the coloring of the SMA/EMA lines was requested in the forum [here](https://forum.portfolio-performance.info/t/farbaenderung-im-performance-diagramm/6115) and [here](https://forum.portfolio-performance.info/t/farbliche-anderung-100-und-200-tages-linie-bei-kursdiagrammen/15646)**
I took a look at how this could be changed. The first commit (c817fb7b0c0a24f6726a569fc5fa7c78e2e092c9) includes everything that is necessary (from my point of view) to bring the fixed intervals into a dynamically expandable list. This would make everything look the same for the operators. Only in the background the data handling changes.
I am a bit unsure about the way the dynamic intervals are stored. With the commit this is done via a 2D map (Map<Integer, TypedMap>). Dimension 1 = interval size in days (e.g. 200 days). Dimension 2 = settings necessary for each interval (isActive + color).
So there is quite a lot of overhead in the xml file. But the advantage is that the single values can be changed easily (e.g. when showing/hiding an interval or changing the color).
A lighter storage would be possible in a 1D-Map by using the interval size as key and a self constructed string as value, which contains isActive and the color.
Maybe you, @buchen have an idea (if the 2D map is not convenient).
However, the new dynamic list cannot yet be extended with this commit. A corresponding interface is still missing.
My current idea would be to offer a "Manage..." button in the context menu, which then opens a dialog in which you can insert/delete intervals and change their color in the chart:

I'll see if I can implement the dialog soon.
Greetz
OnkelDok
**EDIT: so far only the data/settings of the SMA charts have been adjusted. For EMA, however, this should then go in the same way. I just wanted to go through the whole thing with one type for now.**
I had to pause this because of other (in my opinion more important) changes. Once my current proposed changes are through, I may move forward with the configurable SMA intervals.
So fingers crossed that everyone has enough free time.
6 Likes