OHLC Data from another chart for Indicator

Created at 06 Jul 2023, 21:06
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!
JA

jacopotrono

Joined 17.06.2022

OHLC Data from another chart for Indicator
06 Jul 2023, 21:06


Hi everyone,

I would like to have an RSI referred to a custom Timeframe and Chart.

What i should write and import in the script to get access to those data?

 


@jacopotrono
Replies

firemyst
07 Jul 2023, 03:15

//just provide the source to the dataseries parameter when creating the RSI in your code:

RelativeStrengthIndex _rsi = Indicators.RelativeStrengthIndex([the data series of the symbol/timeframe you want the rsi to act upon], Periods);

 


@firemyst