[SDK] Get the list of studies that have been added to an instrument as overlay?

jibanes

Member
Joined
Jul 16, 2019
Posts
23
Likes
0
I would like to create a study (with the sdk) that returns the list of studies that have been added to the instrument, as overlay. Is this something the sdk can provide?

I.e my study (call it mystudy) would return an array of studies that have been overlayed on top of the instrument where mystudy is running.

Thank you!
 

Spin

Well-known member
Joined
May 22, 2019
Posts
478
Likes
191
Well, @jibanes, that would mean a method needs to exist that allows you to poll the JVM to see what other Studies are present on the chart / context.

I don't see such an option in the SDK:
https://www.motivewave.com/sdk/javadoc/index.html
🤷‍♂️

A workaround that I use from time to time is to have a Study that is added to a chart print some text in a corner of the chart. You would need to have 'access' to the source-code of all said Studies, obviously (so either you wrote them, or they are available in the MW-Studies.zip)

I will admit this is shaky when you use this Study on multiple charts (see also THIS thread). YMMV :)
 
Top