cBot - Initializing a custom indicator

Created at 19 Dec 2023, 04:47
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!
HU

humza.jelani

Joined 21.02.2023

cBot - Initializing a custom indicator
19 Dec 2023, 04:47


Hi.

How can I initialize an indicator in a cBot which has no parameter such as the SSL indicator?

I need to initialize an indicator and reference its calculated values for trade entries and exits in a cBot.

Please advise.

 

Regards 


@humza.jelani
Replies

firemyst
19 Dec 2023, 05:35 ( Updated at: 19 Dec 2023, 06:44 )

Two options:

  1. if you have the code, update the code to accept parameters
  2. does the indicator have a “constructor” you can call? If so, it may have parameters you can initialize through that. 

@firemyst

PanagiotisCharalampous
19 Dec 2023, 06:46

Hi Humza,

There is nothing special to this, just initialize the indicator but do not pass any parameters to it.

Best regards,

Panagiotis


@PanagiotisCharalampous