Allow Developer to do Indicators/cBot Settings Modification
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.