Category Other  Published on 25/06/2024

ChatGPT Plugin

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's avatar
acronew

Joined on 15.06.2024

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: ChatGPT.algo
  • Rating: 5
  • Installs: 1163
  • Modified: 25/06/2024 09:57
Comments
Log in to add a comment.
No comments found.