Is there any way to embed JavaScript into CAlgo?

Created at 29 Mar 2021, 10:13
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!
AN

anikaurmi420

Joined 18.10.2020

Is there any way to embed JavaScript into CAlgo?
29 Mar 2021, 10:13


Is there any way to embed JavaScript into CAlgo?

@anikaurmi420
Replies

amusleh
29 Mar 2021, 12:31


Hi,

Why you want to embed JS on your indicators/cBots? technically its possible, but it will be an heavy cBot or indicator.

You can do it with a rich browser control of WPF or WinForms, something like CefSharp, in future when cTrader migrated to .NET 5 you can use the Microsoft Edge based webview control.

If you are looking to use JS for building something for cTrader I recommend you to use Open API.


@amusleh