コンテンツにスキップ
ライオットビット

ライオットビット

  • 家
  • ニュース
  • ガイド
  • ビデオガイド
  • パッチノート
  • 不正行為を報告する
  • 検索フォームを切り替え

ビットバーナー – ビットノード 8: ゴースト・オブ・ウォールストリートの脚本

ポストする 05/25/2022 に LorDamned コメントはありません の上 ビットバーナー – ビットノード 8: ゴースト・オブ・ウォールストリートの脚本
  • タイトル: ビットバーナー
  • 発売日:
  • 開発者:
  • 出版社:
Bitburner に関する情報はまだ不完全です. これを使用してゲームの詳細を記入するのにご協力ください。 お問い合わせフォーム.

Basic Script for BN8.1 Advanced Script for BN8.2-3 & BN8+ Achievement in Bitburner.

BN8.1

function round(価値) {
let signs = ["", "k", "メートル", "b", "t"]
let which = 0
その間 (価値 > 999 || 価値 < -999) {
value = Math.round(価値 / 10) / 100
++どれの
}
return value + 兆候[どれの]
}
/** @param {NS} ns */
非同期関数メインのエクスポート(ns) {
ns.disableLog("全て")
let index = ns.args[0] // should be FSIG or FLCM
let history = []
let max_shares = ns.stock.getMaxShares(索引)
let max_history = 40
let fee = 100000
その間 (真実) {
let money = (ns.getServerMoneyAvailable("家") - 手数料) * 0.9
let price = ns.stock.getPrice(索引)
let my_shares = ns.stock.getPosition(索引)[0]
ns.clearLog()
もし (history.length > (max_history - 1)) {
もし (price > Math.max(...history)) {
let buy = Math.floor((お金 / price))
もし ((買う + my_shares) > max_shares) {
buy = max_shares - my_shares
}
もし (買う > 0 && (price * 買う) > 10000000) {
ns.print("買う(Long): " + ns.stock.buy(索引, 買う))
}
} そうでなければ (price < Math.min(...history)) {
もし (my_shares > 0) {
ns.print("売る(Long): " + ns.stock.sell(索引, my_shares))
}
}
}
history.splice(0, 0, price)
もし (history.length > max_history) {
history.pop()
}
let profit = ns.stock.getSaleGain(索引, my_shares, "Long")
ns.print("索引: " + 索引)
ns.print("Max Shares: " + ラウンド(max_shares))
ns.print("My Long Shares: " + ラウンド(ns.stock.getPosition(索引)[0]))
ns.print("価格: $" + ラウンド(price))
ns.print("History saved: " + history.length)
ns.print("Highest Price: $" + ラウンド(Math.max(...history)))
ns.print("Lowest Price: $" + ラウンド(Math.min(...history)))
ns.print("-------------------------")
ns.print("利益: $" + ラウンド(利益))
ns.print("-------------------------")
その間 (price == ns.stock.getPrice(索引)) {
await ns.sleep(100)
}
}
}

BN8.2-3 & BN8 + 成果

function round(価値) {
let signs = ["", "k", "メートル", "b", "t", "Q"]
let which = 0
その間 (価値 > 999 || 価値 < -999) {
value = Math.round(価値 / 10) / 100
++どれの
}
return value + 兆候[どれの]
}
/** @param {NS} ns */
非同期関数メインのエクスポート(ns) {
ns.disableLog("全て")
let index = ns.args[0] // should be FSIG or FLCM
let history = []
let max_shares = ns.stock.getMaxShares(索引)
let max_history = 40
let fee = 100000
その間 (真実) {
let money = (ns.getServerMoneyAvailable("家") - 手数料) * 0.9
let price = ns.stock.getPrice(索引)
let my_shares = ns.stock.getPosition(索引)[0]
let my_shorts = ns.stock.getPosition(索引)[2]
ns.clearLog()
もし (history.length > (max_history - 1)) {
もし (price > Math.max(...history)) {
もし (my_shorts > 0) {
ns.print("売る(Short): " + ns.stock.sellShort(索引, my_shorts))
}
let buy = Math.floor((お金 / price))
もし ((買う + my_shares) > max_shares) {
buy = max_shares - my_shares
}
もし (買う > 0 && (price * 買う) > 10000000) {
ns.print("買う(Long): " + ns.stock.buy(索引, 買う))
}
} そうでなければ (price < Math.min(...history)) {
もし (my_shares > 0) {
ns.print("売る(Long): " + ns.stock.sell(索引, my_shares))
}
もし (my_shorts == 0) {
let buy = Math.floor(((ns.getServerMoneyAvailable("家") - 手数料) / price))
もし (買う > max_shares) {
buy = max_shares
}
ns.print("買う(Short): " + ns.stock.short(索引, 買う))
}
}
}
history.splice(0, 0, price)
もし (history.length > max_history) {
history.pop()
}
let profit
if (my_shares > my_shorts) {
profit = ns.stock.getSaleGain(索引, my_shares, "Long")
} それ以外 {
profit = ns.stock.getSaleGain(索引, my_shorts, "Short")
}
ns.print("索引: " + 索引)
ns.print("Max Shares: " + ラウンド(max_shares))
ns.print("My Long Shares: " + ラウンド(ns.stock.getPosition(索引)[0]))
ns.print("My Short Shares: " + ラウンド(ns.stock.getPosition(索引)[2]))
ns.print("価格: $" + ラウンド(price))
ns.print("History saved: " + history.length)
ns.print("Highest Price: $" + ラウンド(Math.max(...history)))
ns.print("Lowest Price: $" + ラウンド(Math.min(...history)))
ns.print("-------------------------")
ns.print("利益: $" + ラウンド(利益))
ns.print("-------------------------")
その間 (price == ns.stock.getPrice(索引)) {
await ns.sleep(100)
}
}
}

これが今日私たちがこの目的で共有するすべてです ビットバーナー ガイド. このガイドは元々、次の者によって作成および執筆されました。 LorDamned. このガイドを更新できなかった場合, これに従って最新のアップデートを見つけることができます リンク.

このサイトのコンテンツがあなたの権利を侵害していると思われる場合, あなたの知的財産権を含む, お問い合わせフォームを使用してすぐにご連絡ください.
ガイド タグ:ビットバーナー

ポストナビゲーション

前の投稿: ぐらつく人生 – 簡単なヒントとコツ
次の投稿: 怪獣王 100% 実績ガイド

返信を残す 返信をキャンセル

あなたのメールアドレスは公開されません. 必須フィールドにマークが付いています *

  • タイトル: ビットバーナー
  • 発売日:
  • 開発者:
  • 出版社:
Bitburner に関する情報はまだ不完全です. これを使用してゲームの詳細を記入するのにご協力ください。 お問い合わせフォーム.

免責事項

引用されたすべてのコンテンツはそれぞれの情報源から得られています. 当社があなたのコンテンツを許可なく使用したと思われる場合, 必ずご連絡ください。真剣に対応させていただきます.
  • 私たちに関しては
  • お問い合わせ
  • プライバシーポリシー
  • 利用規約

著作権 © 2025 ライオットビット.

搭載 プレスブックニュース ワードプレスのテーマ