This file contains hidden or 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
https://justdomains.github.io/blocklists/lists/easylist-justdomains.txt | |
https://justdomains.github.io/blocklists/lists/easyprivacy-justdomains.txt | |
https://justdomains.github.io/blocklists/lists/adguarddns-justdomains.txt | |
https://justdomains.github.io/blocklists/lists/nocoin-justdomains.txt | |
https://raw.githubusercontent.com/BlackJack8/iOSAdblockList/master/Regular%20Hosts.txt | |
https://blocklistproject.github.io/Lists/abuse.txt | |
https://blocklistproject.github.io/Lists/crypto.txt | |
https://blocklistproject.github.io/Lists/drugs.txt | |
https://blocklistproject.github.io/Lists/fraud.txt | |
https://blocklistproject.github.io/Lists/gambling.txt |
This file contains hidden or 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
PriceList = [] | |
N = eval(input("請輸入計算次數:")) | |
for i in range(1,N+1): | |
PriceNum = "請輸入第"+str(i)+"次的近期價格:" | |
Price = eval(input(PriceNum)) | |
PriceList.append(Price) | |
SMA = (sum(PriceList) / N) | |
print("SMA = ",SMA) |
This file contains hidden or 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
EMAU = [] | |
EMAD = [] | |
N = eval(input("請輸入計算數量:")) | |
Weight = (2 / (N + 1)) | |
YesterdayPrice = 0 | |
TodayPrice = 0 | |
for i in range(1,N+1): | |
PriceInter = "請輸入第"+str(i)+"次的近期價格:" |
This file contains hidden or 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
PriceList = [] | |
N = eval(input("請輸入計算次數:")) | |
Weight = (2 / (N + 1)) | |
for i in range(1,N+1): | |
PriceNum = "請輸入第"+str(i)+"次的近期價格:" | |
Price = eval(input(PriceNum)) | |
EMAPrice = (Price * ((1 - Weight) ** (i - 1))) | |
PriceList.append(EMAPrice) | |
EMA = (Weight * sum(PriceList)) | |
print("EMA = ",EMA) |