Access to Display All Support/Resistances values in code

Created at 19 Apr 2017, 20:11
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!
CT

ctid320188

Joined 19.04.2017

Access to Display All Support/Resistances values in code
19 Apr 2017, 20:11


Hi,

I was wondering if some clever bod could help me. I have turned on the Support & Resistance lines by clicking on the green "Target" icon on the right hand side, then Settings then ticking the box Display All Supprort/Resistances. This then draws 3 green lines, 1 blue line and 2 red lines.

These lines update automatically as the markets change etc.

All fine.

However, how in my Indicator C# code do I have access these values? I would like to "do my event" if the current Bid/Ask for a currency pair gets close or crosses over a S&R line. But I can't see in the API code how I can access these S&R values or I am just missing it.

Is this possible?

I have seen others write code to calculate the S&R lines but they never seem to be the same as the ones I can "turn on" through the app and they don't re-calculate in realtime i.e. they seem to be based on previous close values.

Can this be done?

Thank you

Ro


@ctid320188