-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tktk4751
committed
Jan 22, 2024
1 parent
cc675da
commit 0a7434e
Showing
11 changed files
with
223 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.11" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package define_data | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
type Acount struct { | ||
AcountID string | ||
EthereumAddress string | ||
|
||
Blance float64 | ||
Withdrawals float64 | ||
Deposits float64 | ||
TotalBlance float64 | ||
TotalFees float64 | ||
isWinner bool | ||
|
||
MaillAddress string | ||
USername string | ||
} | ||
|
||
type AcountTradeData struct { | ||
AllTradeData []string | ||
TradeID []string | ||
TradeAsset []string | ||
EntryPrice []float64 | ||
ExitPrice []float64 | ||
EntryAmount []float64 | ||
ExitAmount []float64 | ||
EntryDate []time.Time | ||
ExitDate []time.Time | ||
//Entryとエグジットのペアをグループ化する | ||
TradingPea [][]string | ||
|
||
//トレード回数 | ||
Totaltrade int64 | ||
Wintrade int64 | ||
Losstrade int64 | ||
|
||
Timeframe string | ||
isWinner bool | ||
Bankruptcy bool | ||
Strategy []string | ||
|
||
ProfittLoss float64 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package define_data | ||
|
||
type Analytics struct { | ||
AcountBalance float64 | ||
NetProfit float64 | ||
TotalProfit float64 | ||
TotalLoss float64 | ||
TotalFees float64 | ||
MaxBalance float64 | ||
MaxProfit float64 | ||
MaxLoss float64 | ||
MaxDrawdown float64 | ||
MinBalance float64 | ||
ifBuyAndHoldReturn float64 | ||
SharepRatio float64 | ||
SoltinoRatio float64 | ||
PnL float64 | ||
ProfitFactor float64 | ||
WintradeRatio float64 | ||
LosstradeRatio float64 | ||
WintradeUSD float64 | ||
LosstradeUSD float64 | ||
MAXWintradeUSD float64 | ||
MAXLosstradeUSD float64 | ||
|
||
//トレード回数 | ||
TotalTrade int64 | ||
TotalWintrade int64 | ||
TotalLosstrade int64 | ||
|
||
///勝ちトレードの利益(USDと%表記) | ||
BuyWintradeUSD float64 | ||
BuyWintradeRatio float64 | ||
|
||
//負けトレードの利益(USDと%表記) | ||
SellWintradeRatio float64 | ||
SellWintradeUSD float64 | ||
|
||
//平均トレードの利益(USDと%表記) | ||
AverageTradeRatio float64 | ||
AveragProfitRatio float64 | ||
AverageLossRatio float64 | ||
AverageTradeUSD float64 | ||
AveragProfitUSD float64 | ||
AverageLossUSD float64 | ||
|
||
//(平均勝ち / 平均負けの比率) | ||
PayOffRatio float64 | ||
|
||
//最も利益を上げた銘柄、損失を出した銘柄 | ||
MaxProfitAsset string | ||
MaxLossAsset string | ||
|
||
//建玉の保有期間 | ||
TradingBars int64 | ||
AverageTradingBars int64 | ||
AverageWinTradingBars int64 | ||
AverageLossTradingBars int64 | ||
|
||
//タクティ丸F | ||
OriginalRisksizeRatio float64 | ||
OriginalRisksizeUSD int64 | ||
|
||
//バルサラの破産確率 | ||
BalsarRatio float64 | ||
|
||
//調子の良さ | ||
isLucky bool | ||
isUnlucku bool | ||
|
||
//SquareRoot(取引数) * 平均(取引利益) / StdDev(取引利益) | ||
SQN float64 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package define_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package define_data | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
type Candle struct { | ||
AssetName string | ||
Duration time.Duration | ||
Time time.Time | ||
//CSVのデータ用 | ||
Date string | ||
Open float64 | ||
Close float64 | ||
High float64 | ||
Low float64 | ||
Volume float64 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package define_data | ||
|
||
type Signals struct { | ||
Date string | ||
Side string | ||
Price float64 | ||
Amount float64 | ||
RiskPercent float64 | ||
RiskUSD int64 | ||
ProfitManegement bool | ||
} | ||
|
||
type Strategy struct { | ||
Signal Signals | ||
|
||
GordenCross bool | ||
DeadCross bool | ||
Long bool | ||
Short bool | ||
Hoald string | ||
Stay string | ||
LongTrend bool | ||
ShortTrend bool | ||
TrendForow bool | ||
CounterTrend bool | ||
LangeTrading bool | ||
Squeeze bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package define_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters