Git Product home page Git Product logo

Comments (4)

bitrinjani avatar bitrinjani commented on June 19, 2024

具体的に、coincheckで10個ポジションを持っていたら、
板が反転していなくてもminExitTargetProfitの条件を満たせば、
古いポジションに対して逆方向で指値が入っていってポジション解消されると思っています。
minExitTargetProfit: -1で設定しているので条件の問題ではないのかと思ってご相談させていただきました。

-1 であれば、ほぼ反転しない限りクローズされません。テストとしてminExitTargetProfit: -1000等で実行してみれば、即座にクローズされるはずです。

from r2.

bitrinjani avatar bitrinjani commented on June 19, 2024

以下が minTargetProfit: 1、minExitTargetProfit: -1000での実行例です。即座にクローズされています。

2017-12-30 08:30:52.450 INFO --------------------ARBITRAGER--------------------
2017-12-30 08:30:52.450 INFO 裁定機会をチェック中...
2017-12-30 08:30:52.458 INFO ベストアスク           : Quoine     Ask 1,719,000 0.057
2017-12-30 08:30:52.458 INFO ベストビッド           : Coincheck  Bid 1,726,600 0.03
2017-12-30 08:30:52.458 INFO スプレッド            : -7600
2017-12-30 08:30:52.458 INFO 裁定可能数量           : 0.03
2017-12-30 08:30:52.458 INFO 目標数量             : 0.005
2017-12-30 08:30:52.458 INFO 予想収益             : 38 (0.441%)
2017-12-30 08:30:52.462 INFO >>裁定機会を発見。
2017-12-30 08:30:52.462 INFO >>オーダーを送信中... 目標価格 Quoine     Ask 1,719,000 0.057
2017-12-30 08:30:52.465 INFO >>オーダーを送信中... 目標価格 Coincheck  Bid 1,726,600 0.03
2017-12-30 08:30:55.759 INFO >>オーダーチェック試行1回目。
2017-12-30 08:30:55.759 INFO >>約定確認中...
2017-12-30 08:30:55.926 INFO >>約定済み: Quoine Buy 0.005 BTC 約定価格 1,718,947
2017-12-30 08:30:55.926 INFO >>約定済み: Coincheck Sell 0.005 BTC 約定価格 1,726,751
2017-12-30 08:30:55.927 INFO >>両方のオーダーの約定完了。
2017-12-30 08:30:55.927 INFO >>収益: 39
2017-12-30 08:30:55.927 INFO >>5000 ms スリープ中...
2017-12-30 08:31:00.927 INFO --------------------------------------------------
2017-12-30 08:31:02.440 INFO ---------------------POSITION---------------------
2017-12-30 08:31:02.440 INFO Net Exposure: 0 BTC
2017-12-30 08:31:02.440 INFO Coincheck : -0.015 BTC, 買い試行許可: OK, 売り試行許可: OK
2017-12-30 08:31:02.440 INFO Bitflyer  :     0 BTC, 買い試行許可: OK, 売り試行許可: NG
2017-12-30 08:31:02.440 INFO Quoine    : 0.015 BTC, 買い試行許可: OK, 売り試行許可: OK
2017-12-30 08:31:02.440 INFO --------------------------------------------------
2017-12-30 08:31:02.440 INFO --------------------ARBITRAGER--------------------
2017-12-30 08:31:02.440 INFO 裁定機会をチェック中...
2017-12-30 08:31:02.440 INFO オープン状態のオーダーペア:
2017-12-30 08:31:02.440 INFO [Quoine Buy 0.005 BTC, Coincheck Sell 0.005 BTC]
2017-12-30 08:31:02.448 INFO クローズ可能なオーダーを発見。
2017-12-30 08:31:02.448 INFO >>オーダーを送信中... 目標価格 Coincheck  Ask 1,726,300 0.25
2017-12-30 08:31:02.450 INFO >>オーダーを送信中... 目標価格 Quoine     Bid 1,718,100 0.097
2017-12-30 08:31:05.669 INFO >>オーダーチェック試行1回目。
2017-12-30 08:31:05.669 INFO >>約定確認中...
2017-12-30 08:31:05.847 INFO >>約定済み: Coincheck Buy 0.0050075 BTC 約定価格 1,726,269
2017-12-30 08:31:05.847 INFO >>約定済み: Quoine Sell 0.005 BTC 約定価格 1,718,171
2017-12-30 08:31:05.847 INFO >>両方のオーダーの約定完了。
2017-12-30 08:31:05.848 INFO >>収益: -53

from r2.

kanari7 avatar kanari7 commented on June 19, 2024

勘違いしていたようです、実績も上げていただきよくわかりました。
ありがとうございます!!

minTargetProfit:-1000
損益1000円以内ならクローズする。で合っていますか?

もしそれが合っているなら、
minTargetProfit:150,minTargetProfit:-100,commissionPercent:0.05とした場合、
オープン収益150円-クローズ収益100円=50円の利益だと考えます。

ちなみに、bitrinjaniさんはminTargetProfitとminTargetProfitはどうされていますか?
手数料もあるので1回の収益を取る方がいいと思っていますが、気になったので良ければ教えてください(^^)

from r2.

bitrinjani avatar bitrinjani commented on June 19, 2024

minTargetProfit:-1000
損益1000円以内ならクローズする。で合っていますか?

QiitaやGitHubに書いてある通りです。

from r2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.