見出し画像

【AutoGPT】英語解説を日本語で読む【2023年4月22日|@Moon Dev】

AutoGPTの解説です。
公開日:2023年4月22日
※動画を再生してから読むのがオススメです。


I'm using AutoGPT, GitHub Copilot, and ChatGPT in order to build trading algorithms.

私はトレーディングアルゴリズムを構築するために、AutoGPT、GitHub Copilot、ChatGPTを使用しています。

And I've never been able to build this quickly in my life because I have AutoGPT here, building out a market maker for me, researching the best strategy in order to build.

AutoGPTが私のためにマーケットメーカーを構築し、構築するために最適なストラテジーを研究してくれるのですから、私の人生でこれほど素早く構築できたことはありません。

As you can see, it's working, thinking, searching, creating Python files, finding the top 25 trading strategies, looking at order book analysis, improving the code, and so on and so on.

ご覧のように、作業、思考、検索、Pythonファイルの作成、トップ25の取引戦略の発見、オーダーブック分析、コードの改善などなど、いろいろなことをやっています。

And then, I'm using ChatGPT here to write some code for me, and then over here, I'm using GitHub Copilot in order to also write code for me.

そして、ここではChatGPTを使ってコードを書いてもらっています。また、こちらではGitHub Copilotを使ってコードを書いてもらっています。

So, I'm going to move this AutoGPT over to the side, just so it can run during the whole time we're doing this.

このAutoGPTを横に移動して、この作業をしている間ずっと実行できるようにします。

And maybe I can put that, maybe we can put it in the same frame so you can watch it, maybe not though.

そして、これを同じフレームに入れれば、見ることができるようになるかもしれませんね。

So I'm not going to do that.

だから、それはやらない。

So, I'm just going to put it over here, and what we're going to build today is, we're actually building out this somewhat of a market maker.

今日作るのは、マーケットメーカーのようなもので、実際に作っています。

It is, uh, it's just trying to buy and sell a lot, and we're buying in the supply and demand zones, and we have a specific strategy.

これは、需給ゾーンで買ったり、売ったりするもので、具体的な戦略があるんです。

But I've been explaining it in the past videos, and I'm just going to dive right in.

でも、過去のビデオで説明しているので、そのまま飛び込みますね。

Essentially, if you're new here, welcome.

基本的には、初めての方、ようこそ。

My name is Moon Dev, and I help traders like you automate their trading because, like you probably, I got in trouble with emotions a lot with my trading.

私はムーン・デヴと申します。私はあなたのようなトレーダーのトレードを自動化するお手伝いをしています。

So, I thought, hey, why not automate it?

そこで、自動化できないかと考えました。

Why not build algos?

アルゴを作ったらどうだろう?

And then I had to go learn all this information.

そして、これらの情報をすべて学ばなければならなくなりました。

It was really hard to learn, so instead of making it hard for you to learn, let's just show you everything here in these videos.

だから、あなたが学ぶのを難しくする代わりに、このビデオですべてをお見せしましょう。

And I'm actually having a $500 giveaway as well at the end of the month.

そして、今月末には500ドルのプレゼントも用意しています。

So, all you have to do to enter that is subscribe and below, just let me know what you're working on.

応募方法は、購読と、以下から、あなたが取り組んでいることを教えてください。

So, let's go ahead and dive in here.

では、さっそく潜入してみましょう。

Where were we?

どこまで話したでしょうか?

So, we're seeing if it's bullish or bearish.

つまり、強気か弱気かを見ています。

And if it's bullish, then we're going to enter a buy order, enter a buy order at the bid price, and if we are bearish, enter a sell order at the ask price.

そして、強気なら買い注文を入れ、買値で買い注文を入れ、弱気なら売値で売り注文を入れることになります。

So let's go ahead and set up those orders here, and let's say they're going to be create limit order, limit order.

では、ここでそれらの注文を設定して、指値注文、リミット注文を作成することにしましょう。

That should work.

これでうまくいくはずです。

Let's go down to where we were, and let's go ahead and make that limit order.

元の位置まで下がって、指値注文をしましょう。

So we're bullish, we're going to actually do a buy, buy, and then the bid price, we're going to do position size, and does it need to be a, it might, we'll do symbol here.

強気で、実際に買い、買い、そして買値、ポジションサイズ、そしてそれは必要なのか、そうかもしれない、ここでシンボルを設定します。

The ask, we're going to do ask price.

アスク、アスクプライスをやります。

Well, we're buying, so that's right.

まあ、買うわけですから、それはそれでいいのですが。

And I believe ask price needs to be in a format of, we need a round it for sure.

そして、アスクプライスは、確かに丸で囲む必要がありますね。

Looks like AutoGPT ran to a little bit of error, so I'm going to reboot AutoGPT here because I don't know what happened.

AutoGPTがちょっとエラーになったみたいなので、ここでAutoGPTを再起動させます。

I've never seen AutoGPT run to a little bit of error, so I'm going to reboot AutoGPT here because I don't know what happened.

AutoGPTがちょっとしたエラーになったのを見たことがないので、何が起こったのかわからないので、ここでAutoGPTをリブートします。

I've never seen this, actually.

実はこれ、見たことないんです。

So, you know, this is all new stuff, so you know, trying to be on the cutting edge always.

これはすべて新しいもので、常に最先端であろうとするものです。

It's where the alpha is, in my opinion, yes.

私の考えでは、そこにアルファがあるのです。

So, as you can see, my goal is to make a market maker with a sharp over three.

それで、見ての通り、私の目標は、3以上のシャープを持つマーケットメーカーを作ることです。

And it's thinking right now, so let's let it think because then I want to say to go for like 50 spins or whatever, if we want to call it.

そして、今考えているところなので、考えさせましょう。

There we go, so now it's back live.

さあ、これでライブに戻りましたね。

And let's just keep working on the side while we work on this, and the size we want is to make sure the position size is correct.

そして、この作業をしながら、サイドで作業を続けましょう。私たちが望むサイズは、ポジションサイズが正しいことを確認することです。

Let's go ahead and see up here, position size.

先に進んで、この上のポジションサイズを見ましょう。

Let's go back down here.

下に戻ってみましょう。

Here and open order.

ここで、オープンオーダーをします。

Perfect, so we're going to do the same thing here, but this should actually be bid price.

完璧です、ではここも同じようにします、しかしこれは実際には買値であるべきです。

This one will be ask price.

こちらはアスクプライスになります。

This will be a cell position size, and this will be ask price.

これはセルポジションサイズで、これはアスクプライスになります。

Perfect, so I'm going to write, "Just place the order."

完璧です。では、"Just place the order. "と書いてみます。

Print, "Just placed a buy order."

買い注文をしました と印刷します。

Just placed a buy order.

買い注文を出したところです。

So we'll do that, that, and here we'll say, "Just place the cell order."

では、そうして、ここでは、"Just place the cell order. "とします。

And I think that we can now run this to see how it does, see if we actually place the orders.

そして、実際に注文を出すかどうかを確認するために、これを実行することができると思います。

And I'm going to actually bring the size down a little bit because I don't have much in this account.

このアカウントにはあまり残高がないので、サイズを少し小さくします。

Just set up a new account last night or this morning, whatever.

昨晩か今朝か、とにかく新しい口座を作ったばかりです。

I don't even know what day it is, the time it is, but who needs a day or time?

今日が何日で、何時なのかさえ知らないが、誰が日や時間を必要とするのか?

Holy smokes, I hit hard off the VWAP, so I like to look at these charts because it helps me come up with new ideas.

私はVWAPで大当たりしました。だから、こういうチャートを見るのが好きです。新しいアイデアを思いつくのに役立ちます。

So this is AutoGPT just popped up on my screen.

これは、AutoGPTが私のスクリーンに現れたものです。

You can see AutoGPT analyzing market making strategies, IOS rating techniques, and more.

AutoGPTがマーケットメイキング戦略やIOSのレーティング技術などを分析しているのがわかりますね。

So that's awesome.

だからすごいんです。

It's doing its work.

仕事してますね。

I'll put it over here so we can keep on working, and let's scroll down to where we were.

このまま作業を続けられるように、ここに置いて、元の場所までスクロールしてみましょう。

Let's try to run this open MM order, and it should open an order.

このMM注文を開いてみると、注文が開くはずです。

I'm not sure if it's going to open long or short, but let's see if I can pull over my account here.

ロングかショートか分かりませんが、私の口座に引き寄せられるかどうか見てみましょう。

And we have no open orders here.

そして、ここには未決済の注文がありません。

We have no open orders here, but can I put 0.05 here?

ここには未決済の注文はありませんが、ここに0.05を入れることができますか?

Yes, okay, so we have no open orders as you can see, and it should change to having an open order.

はい、わかりました、ご覧のように未決済の注文はありません、そして未決済の注文がある状態に変わるはずです。

There's probably going to be an error, let's be honest.

正直なところ、エラーが発生する可能性があります。

Probably didn't format something correctly.

おそらく、何か正しくフォーマットされていないのでしょう。

Okay, perfect, so must be a positive integer integer, so it looks like in the cell position size, create order price must be a positive numeric string.

OK、完璧ですね。だから、正の整数でなければいけないみたいですね。セルの位置の大きさから見ると、注文価格を作成するには正の数値文字列である必要がありますね。

Name price okay, so bid price just needs to be a float, literally not literally opposite of that, it just needs to be a string.

注文価格は正数値の文字列で、入札価格は浮動小数点数で、その逆はありません。

Bid price, and then we'll say the same thing for ask price.

ビッド価格、そしてアスク価格も同じようにします。

Let's run it back.

戻してみましょう。

Okay, it just placed the order, as you can see, for 0.05, but where did it place it?

さて、見ての通り0.05の注文を出しましたが、どこに出したのでしょうか?

It put it right here.

ここに置いたんだ。

Wow, that would be dirty.

うわー、それは汚いですね。

Look at that.

これを見てください。

That would have failed too.

これも失敗だろう。

That would have been a dirty, dirty entry.

それは汚い、汚いエントリーだったでしょう。

Okay, so that works, and I think that that is good to know that our orders are functioning.

よし、これでうまくいった。注文が機能していることが分かってよかった。

That would have been great.

それは素晴らしいことです。

So now that we have that, what else should we do?

さて、これであとは何をすればいいのでしょうか?

Well, if buy signal is bearish, we're gonna only enter as a cell, and then I think we're done because, no, we're not done.

買いシグナルが弱気であれば、セルでエントリーするだけです、それで終わりです。

We're not done.

まだ終わっていません。

We're not done, but what do we need?

まだ終わっていませんが、何が必要でしょうか?

At what price do we exit?

どの価格で撤退するか?

Well, get the percentage move needed, so we'll do that.

さて、必要な移動率を求めましょう。

We have this function here that we built together that is fee calculator, place time percentage move.

この関数は、手数料を計算する関数で、場所と時間の移動率を計算するものです。

Okay, so again, this is going into AutoGPT.

さて、ここでもAutoGPTに入ります。

Interesting, it's trying to sign in to GitHub, but good luck with that.

面白いことに、GitHubにサインインしようとするのですが、頑張ってください。

Fee calculator, percentage needed.

手数料計算機、パーセンテージが必要です。

Let's make this just super apparent and per needed.

これだけで、超わかりやすく、必要なパーセンテージにしましょう。

It's the longest thing ever, but that's okay.

今までで一番長いけど、まあいいや。

Okay, so this will get the percentage move needed, and I think what we can do is actually put that in our P&L. Let's close all this, not close it, but target P&L. We'll just put that on our target P&L. Again, trying to sign in to GitHub, it's kind of weird.

さて、これでパーセンテージムーブが必要になるわけですが、実際にできることは、それをP&Lに入れることだと思います。これをすべてクローズしましょう。クローズするのではなく、ターゲット損益計算書を作成します。目標損益計算書に記載することにしましょう。GitHubにサインインしようとすると、なんだか変な感じになってしまうんだ。

I guess I'll just have to keep moving it, but that's okay.

このまま動かすしかないんだろうけど、まあいいや。

We have, I'm not complaining because I have AI building for us right now, which is awesome.

私たちは、今、AIに作ってもらっているので不満はないのですが、これはすごいことです。

So the P&L we're going to need here is we're going to use this function.

ここで必要な損益計算書は、この関数を使うことになります。

So this is the max.

これが最大値です。

Max, this would be target.

これが最大値で、これが目標値です。

Target P&L equals this, and that number is when a symbol hits that we're going to close it because we have this P&L close that we've been building together.

ターゲットP&Lはこれに等しく、この数字は、シンボルがヒットしたときに、私たちがそれを閉じることになるものです。

So that's dope because we're using code and I love using code.

コードを使うのが好きなので、これはドープなことです。

So that's our P&L target, and then I think our max loss will be the P&L target target P&L, and then let's multiply it by uh point nine.

これが目標損益です。そして、最大損失は目標損益と同じになると思います。

Max loss equals that, and we'll say setting target P&L and max loss here instead of, oh, I think I just killed it.

最大損失はこれに等しいので、目標損益と最大損失をここで設定することにします(代わりに、「ああ、殺しちゃったみたい。

The bot popped up on me.

ボットが立ち上がりました。

Okay, it's just thinking.

よし、今考えているところだ。

You can see returning error.

エラーを返しているのがわかりますね。

It was looking at a website, and I chopped it off, so not doing that anymore.

ウェブサイトを見ていたのですが、それを切り落としたので、もうやってません。

I love this.

これ好きなんだ

Look at this.

これを見てください。

In order to build a market making strategy with a three plus sharp, very low to no drawdown, and 100% or better return on the year, we need to focus on a few key areas.

マーケットメイク戦略を構築するためには、3回以上のシャープ、非常に低いドローダウン、年間100%以上のリターンを実現するために、いくつかの重要な部分に焦点を当てる必要があります。

First, we need to identify a market with sufficient liquidity and volatility to make market making profitable.

まず、マーケット・メイキングで利益を上げるために、十分な流動性とボラティリティを持つ市場を特定する必要があります。

Second, we need to develop a pricing model that accurately reflects the market and allows us to make profitable trades.

次に、市場を正確に反映し、収益性の高い取引を可能にするプライシング・モデルを開発する必要があります。

Third, we need to implement a risk management strategy that minimizes drawdowns and ensures that we can continue to make profitable trades over the long run.

3つ目は、ドローダウンを最小限に抑え、長期的に利益を生む取引を継続できるようなリスク管理戦略を導入することです。

So it's doing work, and you can see pulling up this website now.

今、このウェブサイトが表示されているのがおわかりいただけると思います。

So what we're going to do now is I think this will be our max loss, and this will be our target P&L. So I'm just going to change this to uh, that.

これから行うのは、これが最大損失で、これが目標損益になると思います。だから、これをこう変更するんだ。

Oh, there's an error now where.

あ、今エラーが出ました。

Oh, there's an error now where.

ああ、今どこにエラーがあるんだ。

How does this thing work?

これはどう動くんだろう?

Okay, maybe there's not an error from our main function of this bot, and it's calculated based on the dollar amount we want to earn per trade.

このボットのメイン関数では、1回の取引で獲得したいドル額に基づいて計算されているので、エラーはないのかもしれません。

It looks like we ran into another error here with OpenAI, actually, so I'm gonna boot that up again.

OpenAIで別のエラーが発生したようなので、もう一度起動してみます。

I'll do it off-screen just because I'm here, and I'll just say yes to do the same thing so you can see I'm using GPT-3, so maybe that's the problem, but it runs into some errors here and there, and I just wanted to show you how it actually works, but we'll see.

せっかくなので画面の外でやってみますが、GPT-3を使っているのがわかるように、同じことをやるようにイエスと答えてください、 それが問題なのかもしれませんが、あちこちでエラーが発生するので、実際の動作をお見せしたかったのですが、どうなることやら。

See if it can figure it out.

でも見てみましょう。

Let's go down here to our target P&L and profit target.

ここで、目標損益と利益目標に降りてみましょう。

I'm going to delete that from there and then put it up here.

そこからそれを削除して、ここに載せます。

Profit target is five, and I'm gonna keep it at five for now.

利益目標は5、今のところ5を維持するつもりです。

That's fine.

それでいいんです。

I need to say yes to this bot here.

このボットにイエスと言う必要があります。

Let's give it 50 runs and see what it can do.

50回走らせて、その実力を見てみましょう。

As you can see, it's going back in here, and then down here, let's get back to here.

見ての通り、ここに戻って、そして下に降りて、ここに戻ろう。

We should have the P&L, then the max loss.

損益計算書を作成し、次に最大損失額を表示する必要があります。

The max loss is going to be 90% of what the target P&L is, so this should open the order right here.

最大損失は目標損益の90%になりますから、ここで注文を出すことになります。

Okay, this opens the order, and then we want to say if we are not in position, if not in position, is that what I want to do?

さて、これで注文が開始されました。そして、もしポジションがなかったら、ポジションがなかったら、と言いたいのですが、どうすればいいのでしょうか?

Let's think about this for a second.

ちょっと考えてみましょう。

So, I'm just thinking in my head, sorry.

というわけで、頭の中で考えているだけです、すみません。

So if we go ahead and make the order there, there...

じゃあ、このまま、あそこで、あそこで......と注文をつけると。

Dang, this keeps running into an error on the AutoGPT.

くっ、このままではAutoGPTでエラーになる。

"The server had an error.
Sorry about that.
You can try the request."

"サーバーにエラーが発生しました。

申し訳ありません。
リクエストを試してみてください"
All right, well, AutoGPT, I'm gonna have to tweak with that a little bit, see if we can fix it later.

よし、じゃあAutoGPT、ちょっといじってみよう、後で直せるかどうか。

It's like we're reverting to the mean a little bit here, which is cool.

平均値に戻ってるみたいでカッコイイね

I wonder what would happen to our market maker, though.

でも、マーケットメーカーはどうなるんだろう。

So we're at one.

というわけで、1枚になりました。

We would still be under on the one hour.

1時間足ではまだ下回るだろう。

Sorry, I'm getting distracted.

すみません、気が散りますね。

Um, this opens the order, and let's make it updated to only open if the order isn't already placed.

この注文をオープンして、注文がまだ出ていないときだけオープンするように更新しましょう。

I'm trying to think, though.

でも、考え中なんです。

Should I have it trade both ways or just one way?

両方取引させるべきか、片方だけ取引させるべきか。

So if we look at the five-minute supply and demand zones, it might change here.

そこで、5分足の需給ゾーンを見ると、ここが変わるかもしれませんね。

Maybe I should do a tight five minutes, one, two, three, four, five, six, seven, nine, ten.

5分足で1、2、3、4、5、6、7、9、10ときっちりやったほうがいいのかもしれない。

I have so many ideas I want to test.

試したいアイデアがたくさんあるんです。

Maybe do a tight five-minute like 10 bars for SDZ.

SDZの10本バーのようなタイトな5分足をやってみたらどうだろう。

What if we look at the 15 minute?

15分足で見てみるとどうだろう?

What would that look like?

どのように見えるだろうか?

20 SMA is here.

20SMAがここにある。

Test with the 15 minute, the 15 minute, uh, not supply and demand zone, but SMA.

15分足でテストしてみましょう。15分足は、需給ゾーンではなく、SMAです。

So I'm gonna start with that.

では、そこから始めてみます。

Start here because the way I set it up now is we're only going to enter the order on one side, so it's not really a true market maker, but let's look at us.

なぜなら、今私が設定した方法は、片側にしか注文を入れないので、本当のマーケットメーカーとは言えませんが、見てみましょう。

Let's look at us.

では、見てみましょう。

So test with the 15 minutes, test with the five minutes, do a tight one.

15分足でテストして、5分足でテストして、タイトなものをやってみる。

I think for now, I don't care if it puts in a bunch of orders, so I'm just going to tighten up the SMAs and the 15 minutes or the supply and demand zone, so let's do that.

とりあえず、注文を大量に入れられたって構わないから、SMAと15分足、あるいは需給ゾーンをタイトにしようかな、と思って、そうしてみよう。

Um, oh, it's already on 15 minutes, so let's go down to supply demand zones here or get SMA, and it would be timeframe, so it's on the 15 minute timeframe already, and maybe I should just quote both sides so it is more of a market maker here.

えーと、あ、もう15分足で出てるから、ここで需給ゾーンに降りるか、SMAを取得するか、時間枠だろうから、もう15分足で出てるし、両建てすればいいのかな、ここのマーケットメーカーらしくなるしね。

So I'm always quoting this and this.

だから、いつもこれとこれを引用しているんだ。

Ah, so many different things to try.

ああ、いろいろなことを試してみたいものです。

This is where it gets hard for me.

ここが私にとって難しいところなんです。

Too many ideas.

アイデアが多すぎるんです。

My whiteboard behind me is like full of ideas as well, so I got ideas for days.

後ろのホワイトボードもアイデアでいっぱいで、何日もアイデアが尽きないんです。

Ideas for days.

何日分ものアイディアがある。

So let's try to get this going and looping, how about that?

では、このままループさせてみましょうか、どうでしょう?

So SMA 20, let's do the 15 minute.

SMA 20、15分足でやってみよう。

Is that right?

これでいい?

Yes, I think it is.

そうですね、そうだと思います。

So that's what I'm gonna do.

だから、そうしよう。

All right, cool, cool, cool.

よし、いいぞ、いいぞ、いいぞ。

I'm just gonna skew it out so I'm always going to be quoting both sides, but I'm going to skew it to 80% of size.

ただ、いつも両者を引用することになるのですが、サイズの80%になるように歪ませるつもりです。

That's what we decided on, so we're going to do that, and then the sell signal will be position size.

そう決めたので、そうして、売りシグナルはポジションサイズにします。

We're going to put a sell since it's bullish.

強気なので売りを入れることにしています。

We are doing a smaller order, 80%, and then we're gonna say here, position size times 0.8, and then we want to make sure it's rounded, so I think that should work.

80%という小さい注文をするのですが、ここでポジションサイズ×0.8と言い、それが丸くなるようにしたいので、それでうまくいくと思います。

I'm not sure about that actually, so I'm gonna be safe here.

実際にはよく分からないので、ここでは安全策をとります。

Here, okay, so position size rounded and we'll do the cell limit order here, and that will be the position size equals true, and then we'll make this if not in position, then we'll do all this.

ここで、ポジションサイズが丸められ、ここでセル指値注文をします。これは、ポジションサイズイコールtrueとなります。

Else, else if we are in position, I want to cancel all orders, right?

そうでなければ、ポジションがある場合、すべての注文をキャンセルしたいですよね?

Because if we, yeah, because we're going to be using the liquidity graph.

なぜなら、そう、流動性グラフを使うことになるからです。

I know I haven't said it yet, but we are.

まだ言ってませんけど、そうなんです。

That's what we're going to do, that's what we're gonna do here, so we're going to scroll back up here and put in cancel orders here.

そのために、ここに戻ってスクロールして、ここにキャンセル注文を入れるんだ。

Already in position, print already in position, canceling all open orders because the close will be like grab.

すでにポジションを持っている、すでにポジションをプリントしている、すべてのオープンオーダーをキャンセルする、なぜならクローズはグラブのようになるからです。

Now we built a liquidity grab earlier on this channel somewhere, so have fun, go ahead and find that video.

このチャンネルで以前、流動性グラブを作ったので、そのビデオを探してみてください。

I know I make a lot of videos, but hey, if you watch them all, you're gonna be as good as me, and if you want me to hold your hand through things and teach you more of like a training style, that's where I put these actual training videos that are short and concise.

でも、全部見れば、私と同じように上達します。もし、私があなたの手を握って、もっとトレーニングのようなスタイルで教えてほしいなら、そこに、短くて簡潔な実際のトレーニングビデオを置いています。

These videos I make right now are really kind of long because I am actually just coding what I need to do today, but there we go.

今作っているビデオは、今日やるべきことをコーディングしているだけなので、本当にちょっと長いですが、どうぞ。

So that we're gonna do the same thing here, but we're gonna make a buy limit order.

ここで同じことをしますが、買い指値注文を出します。

I'm also print, just place a sell order at 80% at 80%, at 80% of value.

さらに、80%の値で80%の売り注文を出します。

Why does that make that weird thing?

なんでそんな変なことになるんだろう?

I don't know, we'll never know.

わからない、わからないままだ。

And then here, let's do that.

で、ここで、それをやってみましょう。

Position size equals position size times point eight rounded to the two decimal place, and then this should be bid price so I skewed it, perfect.

ポジションサイズ=ポジションサイズ×ポイント8を小数点以下2桁に丸めたもの、それからこれは買値のはずだから、歪ませた、完璧だ。

Okay, I want to write that this quotes orders on both sides but skews towards the SMA signal.

さて、この注文は両建てされているが、SMAシグナルに偏っている、と書きたいのですが。

I know what that means so I'm gonna put it up here and we'll go ahead and say right there notes and we'll keep on moving so you can see I'm using GitHub Copilot to suggest a lot of stuff for me which is pretty cool.

その意味はわかっているので、ここに書いて、このまま「right there notes」と書いて、どんどん進んでいきます。このように、GitHub Copilotを使って、いろいろなことを提案してくれるのはとてもクールです。

Now we want to say in position and I think I have like a position info function here, and it returns pretty much everything I need.

さて、次はin positionと言いたいところですが、ここには位置情報関数のようなものがあって、これが必要なものをほぼすべて返してくれます。

In position is in position, so let's scroll down here.

位置情報は位置情報です。

I love this stuff so much because now that we're through the hard stuff, like a lot of this other stuff is already built, so we'll go ahead and say position info.

私はこのようなものがとても好きです。なぜなら、難しいことはもう終わったので、他の多くのことはすでに構築されているからです。だから、先に進んでポジション情報と言いましょう。

I'll just say in position, look at that AI, GitHub Copilot right there, thank you.

このAIを見てください、GitHub Copilotです、ありがとうございます。

Print, so if not in position and then if we are, then we're gonna cancel all orders.

プリントして、もしポジションがなければ、そしてポジションがあれば、すべての注文をキャンセルすることになります。

I think it's time to run this and see what it does.

そろそろ実行し、どうなるか見てみましょう。

Should put two orders, but it's probably gonna be error, let's be honest.

2つの注文を入れるべきですが、正直なところエラーになるでしょうね。

So we have zero orders right there, and the size should be fine, let's run it.

注文はゼロで、サイズも問題ないはずです、実行してみましょう。

What's the worst that could happen?

最悪の事態は何だ?

I blow up my account?

私のアカウントが吹っ飛ぶ?

Okay, perfect.

よし、完璧だ。

So position size referenced before assignment 132, we are bullish 1338-1332, so right around here.

ポジションサイズは132の前に参照され、我々は強気です 1338-1332、つまりこの辺りです。

This should be an easy one to fix.

これは簡単に修正できるはずです。

Position size, I don't get why that's the thing, but we'll fix it.

ポジション・サイズ、なぜそれが問題なのか理解できませんが、修正しましょう。

So 1332, position size is referenced before position size, but I don't get why because it's assigned at the top.

1332、ポジションサイズはポジションサイズより先に参照されるのですが、なぜか一番上に割り当てられるからです。

Position size is right here, right?

ポジションサイズはここにありますよね?

So in 1332, let's go back down there, 1332, 1332.

だから1332で、下に戻ってみよう、1332、1332。

5 signals true, all right, whatever.

5シグナル真、わかったよ、なんでもいいんだ。

I'm just gonna say position side, all right, entry.

ポジションサイドってことで、よし、エントリーだ。

Maybe it has something to do with this, so I'm just gonna say two, and I'm gonna take that out of there.

多分、これと関係があるのでしょう。だから、私はただ2と言い、そこからそれを取り除きます。

I'm also gonna remove it from here, and we're gonna say it up here.

ここからも削除して、ここで言うことにします。

I just run it, I don't understand why that would fix it, but hey, some things you don't have to understand.

なぜそれで直るのか理解できないが、まあ、理解できなくてもいいこともある。

There, perfect.

そこ、完璧。

So the price is too big, all right, it's too many numbers, so what we want to do is we want to round that bid price, so let's do that.

では、価格が大きすぎますね。数字が多すぎるので、入札価格を丸めましょう。

Let's round bid and ask price and watch the GitHub Copilot do its work.

買値と売値を丸めて、GitHub Copilotが仕事をするのを見守りましょう。

Love it, I love it, love it.

気に入った、気に入った、気に入った。

This is Godmode, baby, Godmode.

これぞゴッドモード、ベイビー、ゴッドモード。

Must be divisible by 0.1, okay, so that's fine, just change this to one.

Must be divisible by 0.1, OK, so that's fine, just change this to one.

You're having trouble with this too, just, I know you can do this because I can do it, and I'm an idiot.

あなたも悩んでいるんですね、ただ、私ができるんだからできるんでしょうけど、私はバカですから。

Okay, perfect.

よし、完璧だ。

So you can see here, close this, close that, that's pretty nice, I like that.

それで、ここを見て、これを閉じて、あれを閉じて、なかなかいいね、気に入ったよ。

So we're quoted here and here now, could it be tighter?

というわけで、今こことここを引用していますが、もっとタイトにできないでしょうか?

For sure, but how do we make it tighter?

確かにそうですが、どうすればもっとタイトになるのでしょうか?

Well, oh, but look at this, this didn't change, I didn't change it.

そうですね、でもこれを見てください、これは変わりません、変えてません。

We need to say position size two, and I want it to be tighter, I wanted to be tighter than this, but okay, let's first start with position size two.

ポジションサイズ2と言うのが必要で、もっとタイトにしたい、これよりタイトにしたかった、でもいいや、まずはポジションサイズ2から始めよう。

Also, let's put cancel open orders here.

あと、ここにキャンセルオープンオーダーを入れましょう。

I should update that later though, I'm just going to be lazy for now and cancel open orders.

あとで更新したほうがいいけどね、今はダラダラしてオープンオーダーをキャンセルしておくよ。

I just don't want to ping the server too much.

サーバーにあまりpingを打ちたくないからです。

Okay, so we fix those two things, and now we want to make the supply and demand zones a little tighter.

さて、この2つを修正したら、今度は需給ゾーンをもう少しタイトにしたいと思います。

So how do we do that?

では、どうすればいいのでしょうか?

We look at the supply and demand zone symbol time frame limit.

需給ゾーンのシンボル時間枠の制限を見ます。

This limit right now is 30.

今、この限界は30です。

Let's call this SDZ limit.

これをSDZリミットと呼ぶことにしましょう。

Wait, wait, wait, wait, is that the right one?

ちょっと待って、ちょっと待って、これでいいの?

No, that's not.

いや、それは違う。

Yeah, it is.

そうだ、そうだ。

Let's call it that.

そう呼ぶことにしよう。

And up here, I know this is a little messy.

そしてこの上、ちょっと面倒なんだけどね。

I actually don't know what the proper way will be to do it.

実際、どうやるのが正しいのかわからないんだ。

Equals 10.

10に等しい。

This is how I make the SDZ zones tighter or looser.

これでSDZゾーンをきつくしたり緩くしたりすることができます。

And then I probably want to just do the same thing here for the time as well.

そして、おそらく同じことを時間についても行いたいのです。

Get funding rate time frame.

資金調達のタイムフレームを取得します。

Time frame, oh, but I passed it in down here, Dave.

時間軸は......ここにも入れたよ、デイブ

This is confusing.

これは紛らわしい。

Apologize if you're trying to follow along, but I'll put all the code once it's done inside the boot camp.

でも、ブートキャンプの中で、このコードが完成したら、全部載せますね。

Okay, let's just run this because I pass in the supply and demand zone time frame right here, and we're doing five minutes.

では、需給ゾーンの時間枠をここに入れて、5分間だけ実行しましょう。

I'm not just gonna run it, I'm gonna get it done, and this also will control the spread.

ただ実行するだけでなく、スプレッドをコントロールすることもできます。

Okay, so now we have five minutes and we're doing a 10 limit, so it's the last 50 minutes, I believe.

さて、5分足で10本指値をしているので、最後の50分足だと思います。

But let's see if it cancels the orders.

でも、注文がキャンセルされるかどうか見てみましょう。

Should cancel them.

キャンセルされるはずです。

First off, there you go, canceled and put new ones in.

まず、そこで、キャンセルして、新しいのを入れてください。

And you can see 0.04, 0.05, perfect.

で、0.04、0.05、バッチリ見えてますね。

So the buy is less than this, which is great.

ということは、買いはこれより少ないんですね、すごいですね。

Now I believe this is more of a proper market maker, and now essentially we need to look at our P&L loss and make sure that is working well.

これは、マーケットメーカーとしては正しいやり方だと思います。

Our P&L closed, so I'm gonna actually write that up top, P&L closed to do today.

損益計算書が閉じましたので、これを上に書いておきます。

Update this P&L closed to be a lit grab only.

このP&Lクローズを更新して、ライトグラブだけにします。

I'll show you what that means here in a bit, but this is gonna be so dope, I can't wait.

その意味は後で説明しますが、これはとても素晴らしいことで、待ちきれません。

Holy smokes, this is gonna be unreal.

すげえ、すげえよ。

And I'll put all the code inside the boot camp when I'm done, so you can join that with the link below, and yeah, let's go ahead and make sure this lit grab is working down here.

ブートキャンプが終わったら、すべてのコードをブートキャンプの中に入れておくから、下のリンクから参加できるね。

So let's say bought, and then this opens the order, perfect, and this gets the target P&L, perfect, and then this gets the open symbols, which is great, and then for symbol and open symbols, we'll pass in the symbol and the target P&L and the max loss, and then it will go into the P&L close and close it.

では、買ったとしましょう。そして、これは注文を開きます。完璧です。そして、これは目標損益を取得します。完璧です。そして、これはオープンシンボルを取得します。素晴らしいです。そして、シンボルとオープンシンボルには、シンボルと目標損益と最大損失を渡します。そして、それは損益クローズに入り、それを閉じます。

Now our target P&L and max loss is set up programmatically, and we set that up in an earlier video, but I'll make sure to put all this inside the boot camp so you can have access to it, and you can get linked to that below.

目標損益と最大損失はプログラムで設定します。以前のビデオで設定しましたが、ブートキャンプの中にこれをすべて入れて、あなたがアクセスできるようにしますから、下にリンクがあります。

And I do want to remind you, $500 giveaway on April 30th is going to one lucky person who subscribed, and also just explain what you're working on.

そして、4月30日の500ドルプレゼントは、購読した人の中から幸運な1名に贈られることをお伝えしておきますが、あなたが取り組んでいることを説明してください。

Just let me know what you're working on below in the comment section, and you're entered to win that $500.

下のコメント欄で、あなたが取り組んでいることを教えてください。

And if you want me to teach you all this stuff, give you a few algos, well, join the boot camp.

もし、このようなことをすべて教えてほしい、いくつかのアルゴリズムを教えてほしいというのであれば、ブートキャンプに参加することです。

But other than that, this was how I use AutoGPT Copilot and ChatGPT to be an algo trading god.

それ以外は、私がAutoGPT CopilotとChatGPTを使って、アルゴ取引の神様になる方法でした。

I'll see you in the next one.

次回もお楽しみに。


この記事が気に入ったらサポートをしてみませんか?