安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
 
											 
													

 此主题已被锁定
 此主题已被锁定	 
					




 举报此帖
 举报此帖


Here's a guide to reading the algorithm:
[*}"Not hold" is treated as a single word and is true if none of the stock is owned.
And here's the algorithm itself. Note that this is just a subset of the full trading algorithm; it replaces steps 8 through 10 in the post above. Steps 1 through 7 remain, and they take precedence if there are any conflicts.
0 -> 1 Stay.
0 -> 2 Stay if hold and mode >=3 and rising >=3 and previous mode != 1 and previous mode != 3; otherwise sell.
0 -> 3 Always buy.
0 -> 4 Always sell.
0 -> 5 Buy if falling >= 4.
1 -> 0 Buy if not hold and price < bank ceiling and sell price > bank ceiling.
1 -> 2 Buy if not hold; stay if mode >= 4 and (rising >= 3 or price < resting + 20); otherwise sell.
1 -> 3 Always buy.
1 -> 4 Stay if hold < 6, otherwise sell.
1 -> 5 Sell if mode < 6 or rise >= 3 or price > resting + 10.
2 -> 0 Buy if mode >= 5 and falling >= 4 or mode < 5 and previous mode == 4; sell if hold >= 4 and rising < 4.
2 -> 1 Buy or hold if mode >= 4 and (hold or not hold >= 4) and (price < resting – 20 or falling < 4) or if mode < 4 and (previous mode == 5 or falling >= 5); otherwise sell if hold.
2 -> 3 Always buy.
2 -> 4 Always sell.
2 -> 5 Buy if (not hold >= 4 and rising < 4 or price < resting + 10) and price < ceiling; sell if hold >= 4 and price > resting + 10.
3 -> 0 Stay if rising >=4; otherwise sell.
3 -> 1 Sell if hold.
3 -> 2 Sell if mode < 30.
3 -> 4 Always sell.
3 -> 5 Stay if mode < 20 and (rising < 4 or price < resting + 20), otherwise sell.
4 -> 0 Buy if price < rising - 10.
4 -> 1 Buy.
4 -> 2 Sell if hold.
4 -> 3 Always buy.
4 -> 5 Buy if not hold >= 8 and (falling < 4 or price < resting) and (previous mode != 2 or mode < 14) and previous mode != 3.
5 -> 0 Stay.
5 -> 1 Buy if not hold and mode < 22 and (rising >= 4 (limited) or price < resting + 20 or previous mode == 4); sell if hold and mode >= 4 and rising < 4 and price > resting - 20.
5 -> 2 Buy or stay if (not hold >= 3 or mode >= 3) and (falling >= 3 (limited) or rising >= 3 (limited) or price < resting – 10 or (previous mode == 4 or previous mode == 2) and price < ceiling); sell if (rising >= 4 (limited) or mode < 12 and previous mode == 3 or price > resting + 10.
5 -> 3 Buy if not hold >= 3; stay if hold.
5 -> 4 Always sell.
Note that with the first two posts in this thread, you have a complete algorithm that you can trade on, and it's not even in any automated system yet.
If people would like to see occasional updates of this algorithm, please let me know.