![見出し画像](https://assets.st-note.com/production/uploads/images/115127224/rectangle_large_type_2_e7724290c0b3e77976da53358dbd346f.png?width=1200)
Photo by
h_ar_u
「文系でもわかる!BitcoinのBOT自動売買トレードの始め方」をやってみた
知らない人はいない仮想通貨自動売買の入門サイトです。
今更だけどやってみました。
![](https://assets.st-note.com/img/1693637910066-qoJjwwngqm.png?width=1200)
![](https://assets.st-note.com/img/1693637852234-gVaqOlT9wp.png?width=1200)
動いた!
10行目の設定項目をデフォルトの期間30から期間120にしてみます。
![](https://assets.st-note.com/img/1693637954970-YF0vW1Vga1.png?width=1200)
![](https://assets.st-note.com/img/1693638034502-I14H2BVlQn.png?width=1200)
![](https://assets.st-note.com/img/1693638114161-jJ2v37RX0y.png?width=1200)
聖杯発見!!
同じ設定でチャネルブレイクアウトをTradingViewでも検証してみるよ
![](https://assets.st-note.com/img/1693638308769-ytdgsO9rYA.png?width=1200)
Pine Script コード
え!!
同じコードを数行で!?
//@version=5
strategy("ChannelBreakOutStrategy", overlay=true)
length = input.int(title="Length", minval=1, maxval=1000, defval=120)
upBound = ta.highest(high, length)
downBound = ta.lowest(low, length)
plot(upBound)
plot(downBound)
A = time > timestamp("GMT+6", 2023, 01, 01, 09, 30)
if (not na(close[length])) and A
strategy.entry("ChBrkLE", strategy.long, stop=upBound + syminfo.mintick, comment="ChBrkLE")
if A
strategy.entry("ChBrkSE", strategy.short, stop=downBound - syminfo.mintick, comment="ChBrkSE")
TradingView 15ドル貰えるお友達紹介コードは以下から
取引所のおすすめは消去法でBitgetが一番になったので以下のリンクから申し込もう。
![](https://assets.st-note.com/img/1693638751467-H7Qgz9vctb.png)
https://partner.bitget.com/bg/1c6k55141683268958384
このリンクから申し込むとBitget手数料還元リンクなのでちょっとはお得かも。
![](https://assets.st-note.com/img/1693639013827-vZ41oHSEvH.png?width=1200)
TradingViewなら簡単だった
改めて文系でも~をやってみたんだけど、Pythonで全部やるのは初心者ではちょいと難しいのでTradingViewのPineScriptやMT4・MT5で始めたほうがいいかも。
ここから先は
0字
![](https://assets.st-note.com/production/uploads/images/71149891/profile_b8c50857341c8c1f4490cb8d0c98a074.jpg?fit=bounds&format=jpeg&quality=85&width=330)
このマガジンで読み放題です。
よろしければサポートお願いします! いただいたサポートはクリエイターとしての活動費に使わせていただきます!