Indicator Parameters

Created at 19 Oct 2023, 08:32
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
RA

RazorTrading

Joined 19.05.2023

Indicator Parameters
19 Oct 2023, 08:32


Hi,

I am writing a custom indicator that needs to show horizontal line segments on the chart. I have tried to use the PlotType.DiscontinuousLine, but I don't like how two values at different y are still connected (I want individual segments), so I ended up drawing horizontal trend lines.

I can get the style of those output lines with reflection through the OutputAttribute class, but I would like to read the enabled checkbox. Where does the indicator's parameters data live and is it possible to reach it through reflection? Also is there any callback that I could use to detect when it's checked/unchecked? I know this API it's not exposed, but it would be really useful, otherwise I will need to add a bool, Color, LinStyle and thickness parameter for each output and the parameters dialogue will become very cluttered.

Thanks

 


@RazorTrading
Replies

firemyst
26 Oct 2023, 01:04

Those properties aren't available, which is a pain.

You have to do it separately, which is even more of a hassle :-/

 


@firemyst