Converting MQL5 code to CTrader Code using Chatgpt in seconds

avatar
· 阅读量 442

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

风险提示:以上内容仅代表作者或嘉宾的观点,不代表 FOLLOWME 的任何观点及立场,且不代表 FOLLOWME 同意其说法或描述,也不构成任何投资建议。对于访问者根据 FOLLOWME 社区提供的信息所做出的一切行为,除非另有明确的书面承诺文件,否则本社区不承担任何形式的责任。

FOLLOWME 交易社区网址: www.followme.asia

喜欢的话,赞赏支持一下
avatar
回复 0

加载失败()

  • tradingContest