Access component values via SDK

xerol

Active member
Joined
Apr 6, 2022
Posts
28
Likes
7
Hi,

I would like to access the values of a component. For example I would like to get the SL/TP and Entry price and time values of the "Profit/Loss" component.

Has anybody tried something like that before?
 

Spin

Well-known member
Joined
May 22, 2019
Posts
480
Likes
192
You mean the 'drawing' of a profit / loss box ?
1700901597572.png
AFAIK there is no way of accessing properties of components, except for the 'custom' Trendline in the study_examples folder of the 'basic SDK starters package'.

So I'm afraid you'll have to code such a box yourself first (it's actually only three lines, a few calculations and 2 fills) or mail MW to ask for the source code of the box included in the platform. I doubt they will provide it though :)
 
Top