Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.