# ChatGPT 能不能教我交易赚钱？

By [日拱一卒王小楼](https://paragraph.com/@maskpad) · 2023-06-10

---

最近很多人在群里问ChatGPT能不能教我写量化程序，带我赚钱。能不能我还没有亲自试过，但是我这有几个例子可以告诉你，可行是肯定可行的。

### 第一个例子是孙老板的

孙老板的推特是：[https://twitter.com/sunlc\_crypto，欢迎关注。](https://twitter.com/sunlc_crypto%EF%BC%8C%E6%AC%A2%E8%BF%8E%E5%85%B3%E6%B3%A8%E3%80%82)

他是做高频交易的，是一个非常厉害的技术大佬，下面是他如何调教ChatGPT的过程

![](https://storage.googleapis.com/papyrus_images/238c58d1688592eb4c4abc7243ca00bff9917bafa62963313bb57c7eacd04a55.png)

![](https://storage.googleapis.com/papyrus_images/23c1e777610c5113b1cc67f8b840748a6964ed2d2f1ab49b3e99f00e6cad204b.png)

![](https://storage.googleapis.com/papyrus_images/d538e35906a69e31442b18dd619f3c62c407da329f5648e66bd20805e77644a9.png)

![](https://storage.googleapis.com/papyrus_images/c59fcab453f3aada22d8c61a3256ba7e24433c0b66f39e899ba35bf499e703b3.png)

![](https://storage.googleapis.com/papyrus_images/9b2636f4f33b1bc9266350495b3ff32ecf2a1e82ad422b4750953ea25e8ad197.png)

![](https://storage.googleapis.com/papyrus_images/d5a04bf8794b7f7f3dddf559696eeed966b00d2c6d26f5472c5cb498338643f9.png)

![](https://storage.googleapis.com/papyrus_images/71e05b4021e624727ee2ac81cb2440bab6b2d00c092a33cb385984ef62b1022e.png)

![](https://storage.googleapis.com/papyrus_images/9c5e4ab57c69a4dbf9a654433c98720309275777a2be9304bf64333520274e8e.png)

![](https://storage.googleapis.com/papyrus_images/00a3dc526ccef3bf74885b51d739e07d0a2d63c25dc6ec4372c2e07baf739d64.png)

可以看出ChatGPT给的意见非常好。

### 第二个是林老师的关于写时间锁

一. please act as a professional python senior engineer. you are a master of python ui programming and encryption programming. I need your help to write a python program

二. now write a program with the requirement below:

1.  the program shows a form when running, with a text box an a button, and a time range selection box(user can input the number of seconds).
    
2.  user can input the plain text into the text box, select a time range, then click button, the plain text will be encrypted and save to file, then the encrypted text will be shown in the text box. And the current time(as initial time) and time range is saved too.
    
3.  user can click the button again to decrypt the encrypted text. However, when the current time doesn't exceed the initial time plus the time range, user will get a warning saying that it is not time to decrypt and nothing will be done; otherwise, the encrypted text will be decrypted and shown in the text box.
    

三. fix below bugs:

1.  if user encrypted some text and shutdown the program, when the user run the program again, he should know there is an encrypted text, and when he click the button, the decrypt text logic will run.
    
2.  Draw a black line frame for the text box
    
3.  show the program in the middle of the pc screen

---

*Originally published on [日拱一卒王小楼](https://paragraph.com/@maskpad/chatgpt-8)*
