Converting MQL5 code to CTrader Code using Chatgpt in seconds

avatar
· Views 466

I was working on a MQL5 program to draw lines and arrows on the chart.


But MetaTrader has a limitation of a minimum timeframe of 1 mins. Therefore I cannot get a finer granularity than M1. If you make positions multiple times within one minute, MetaTrader’s visualization is not great.

Converting MQL5 code to CTrader Code using Chatgpt in seconds

But CTrader came with multiple chart types, e.g.


Converting MQL5 code to CTrader Code using Chatgpt in seconds

Also because I need to test some instruments that are only available in CTrader, So  I really would like to also do that on CTrader.


I had no previous experience with CTrader drawing API (actually also little for MQL5), therefore I was asking ChatGPT. 


This “guy” nailed it.


Here is an example of the conversation. The ChatGpt was able to convert MQL5 code from Mql5 to C# in no time

Converting MQL5 code to CTrader Code using Chatgpt in seconds


Although after I pasted code to the VSCode IDE, there seems to be some errors.


Converting MQL5 code to CTrader Code using Chatgpt in seconds


Those error are very apparently and I can fix easily on my own


Converting MQL5 code to CTrader Code using Chatgpt in seconds


Other codes are legit and it works like a charm. I can enjoy the finer granularity chart using CTrader as a graphical frontend.


Converting MQL5 code to CTrader Code using Chatgpt in seconds

Tuyên bố miễn trừ trách nhiệm: Quan điểm được trình bày hoàn toàn là của tác giả và không đại diện cho quan điểm chính thức của Followme. Followme không chịu trách nhiệm về tính chính xác, đầy đủ hoặc độ tin cậy của thông tin được cung cấp và không chịu trách nhiệm cho bất kỳ hành động nào được thực hiện dựa trên nội dung, trừ khi được nêu rõ bằng văn bản.

Website Cộng đồng Giao Dịch FOLLOWME: www.followme.asia

Bạn thích bài viết này? Hãy thể hiện sự cảm kích của bạn bằng cách gửi tiền boa cho tác giả.
avatar
Trả lời 0

Tải thất bại ()

  • tradingContest