質問編集履歴

1

2018/05/30 08:41

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -16,90 +16,68 @@
16
16
 
17
17
 
18
18
 
19
-
20
-
21
19
  ```ここに言語を入力
22
20
 
23
21
  if net_profit_price < 0:
24
-
25
- print("STOP-No1:論理矛盾または手数料により買い値段が売りより高いので100%損します。")
26
22
 
27
23
  stop_process_no1 = stop_process_no1 + 1
28
24
 
29
25
  arbitrage_decision = 0
30
26
 
31
-
32
-
33
- if net_ask_price > risk_limit_price: # 50000円で現在設定
27
+ if net_ask_price > risk_limit_price: #
34
-
35
- print("STOP-STOPNo2:ask値段(買いたい人=ask_priceに売りつける金額)がリスク許容値段以上なので購入回避しました。")
36
28
 
37
29
  stop_process_no2 = stop_process_no2 + 1
38
30
 
39
31
  arbitrage_decision = 0
40
32
 
41
-
42
-
43
- if net_bid_price > risk_limit_price: # 50000円で現在設定
33
+ if net_bid_price > risk_limit_price: #
44
-
45
- print("STOP-No3:bid値段(売りたい人=bid_priceから買い付ける金額)がリスク許容値段以上なので購入回避しました。")
46
34
 
47
35
  stop_process_no3 = stop_process_no3 + 1
48
36
 
49
37
  arbitrage_decision = 0
50
38
 
51
-
52
-
53
- if net_profit_price < minimum_profit_price: # 最低利益円を設定
39
+ if net_profit_price < minimum_profit_price:
54
-
55
- print("STOP-No4:利益円が",minimum_profit_price,"円以下の為 購入回避しました。")
56
40
 
57
41
  stop_process_no4 = stop_process_no4 + 1
58
42
 
59
43
  arbitrage_decision = 0
60
44
 
61
-
62
-
63
- if net_profit_rate < minimum_profit_rate: # 最小利益率を設定
45
+ if net_profit_rate < minimum_profit_rate:
64
-
65
- print("STOP-No5:利益率が",minimum_profit_rate,"%以下の為 購入回避しました。")
66
46
 
67
47
  stop_process_no5 = stop_process_no5 + 1
68
48
 
69
49
  arbitrage_decision = 0
70
50
 
71
-
72
-
73
- if (net_profit_price < 0): #判定No1
51
+ if (net_profit_price < 0):
74
52
 
75
53
  pass
76
54
 
77
55
  else:
78
56
 
79
- if (net_ask_price > risk_limit_price): # 判定No2
57
+ if (net_ask_price > risk_limit_price):
80
58
 
81
59
  pass
82
60
 
83
61
  else:
84
62
 
85
- if (net_bid_price > risk_limit_price): # 判定No3
63
+ if (net_bid_price > risk_limit_price):
86
64
 
87
65
  pass
88
66
 
89
67
  else:
90
68
 
91
- if (net_profit_price < minimum_profit_price): # 判定No4
69
+ if (net_profit_price < minimum_profit_price):
92
70
 
93
71
  pass
94
72
 
95
73
  else:
96
74
 
97
- if (net_profit_rate < minimum_profit_rate): # 判定No5
75
+ if (net_profit_rate < minimum_profit_rate):
98
76
 
99
77
  pass
100
78
 
101
79
  else:
102
80
 
103
- arbitrage_decision = 1 # 停止がない為、裁定取引判定処理を実施
81
+ arbitrage_decision = 1
104
82
 
105
83
  ```