Description
This plugin allows you to use ChatGPT directly from within the cTrader platform.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
namespace cAlgo.Plugins
{
[Plugin(AccessRights = AccessRights.None)]
public class ChatGPT : Plugin
{
private WebView _cTraderWebView;
protected override void OnStart()
{
_cTraderWebView = new WebView();
_cTraderWebView.Loaded += DisplayWebsite;
var webViewFrame = ChartManager.AddCustomFrame("ChatGPT");
webViewFrame.Child = _cTraderWebView;
webViewFrame.ChartContainer.Mode = ChartMode.Multi;
webViewFrame.Attach();
}
private void DisplayWebsite(WebViewLoadedEventArgs args)
{
_cTraderWebView.NavigateAsync("https://chatgpt.com/");
}
}
}
acronew
Joined on 15.06.2024
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: ChatGPT.algo
- Rating: 5
- Installs: 944
- Modified: 25/06/2024 09:57
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Comments
Log in to add a comment.
No comments found.