Allow Developer to do Indicators/cBot Settings Modification

Created at 03 May 2020, 11:42
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!
afhacker's avatar

afhacker

Joined 15.10.2015

Allow Developer to do Indicators/cBot Settings Modification
03 May 2020, 11:42


When a user attaches or add new indicator/cBot on a chart cTrader opens the indicator/cBot parameters window, what we need is allowing the developer to cancel or handle this on the code, suppose I want to show my own window for the user to get some inputs from the user, I don't want to use cTrader built-in Modify Parameters window, so I will subscribe to an event like "OnConfigure" or "OnModifySettings/Parameters" and when the user attaches the indictors/cBot on the chart the event will be triggered, I would be able to cancel it and execute my own code and if I canceled it then cTrader will not show its modify parameter window otherwise it will show its built-in modify parameters window.


cTrader Automate
@afhacker