saving a map or list as settings

Custom indicators, trading strategies, data export and recording and more...
fenepet965
Posts: 24
Joined: Wed May 26, 2021 12:13 pm
Has thanked: 2 times

saving a map or list as settings

Post by fenepet965 » Mon Jun 21, 2021 1:16 pm

Hi,

Is there any ways or examples on how to save a map or list to the Settings class?

Thanks,

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: saving a map or list as settings

Post by Andry API support » Mon Jun 21, 2021 1:47 pm

Hi,
Just add your map or list to the settings class. Settings class can be just any class. It does not need to implement any interface. Let us know if you need a more detailed info.
Here are module examples. Just add your map or list to the settings class (Settings in Simplified API example, MarkersDemoSettings in Core API example).
Simplified API example
https://github.com/BookmapAPI/DemoStrat ... iDemo.java
Core API example (see MarkersDemoSettings class)
https://github.com/BookmapAPI/DemoStrat ... mo/markers

Post Reply