Bollinger Indicator - Normalized
Bollinger Indicator - Normalized
Bollinger Indicator - Normalized
1 of 7 10-10-2020, 10:23 am
The Normalized Bollinger Indicator. Another Way to Trade the Range. B... https://medium.com/@kaabar.sofien/the-normalized-bollinger-indicator-...
# Calculating means
for i in range(len(Data)):
try:
Data[i, where_ma] = (Data[i - boll_lookback + 1:i + 1,
onwhat].mean())
2 of 7 10-10-2020, 10:23 am
The Normalized Bollinger Indicator. Another Way to Trade the Range. B... https://medium.com/@kaabar.sofien/the-normalized-bollinger-indicator-...
except IndexError:
passfor i in range(len(Data)):
Data[i, where_up] = ((Data[i - boll_lookback + 1:i,
onwhat].std()) * volatility) + Data[i, where_ma]
for i in range(len(Data)):
Data[i, where_down] = Data[i, where_ma] - ((Data[i -
boll_lookback + 1:i, onwhat].std()) * volatility)
return Data
3 of 7 10-10-2020, 10:23 am
The Normalized Bollinger Indicator. Another Way to Trade the Range. B... https://medium.com/@kaabar.sofien/the-normalized-bollinger-indicator-...
for i in range(len(Data)):
try:
if Data[i, boll_percentage] <= lower and Data[i - 1,
boll_percentage] > lower:
Data[i, buy] = 1
elif Data[i, boll_percentage] >= upper and Data[i - 1,
boll_percentage] < upper:
Data[i, sell] = -1
else:
continue
except IndexError:
pass
return Data
4 of 7 10-10-2020, 10:23 am
The Normalized Bollinger Indicator. Another Way to Trade the Range. B... https://medium.com/@kaabar.sofien/the-normalized-bollinger-indicator-...
5 of 7 10-10-2020, 10:23 am
The Normalized Bollinger Indicator. Another Way to Trade the Range. B... https://medium.com/@kaabar.sofien/the-normalized-bollinger-indicator-...
6 of 7 10-10-2020, 10:23 am
The Normalized Bollinger Indicator. Another Way to Trade the Range. B... https://medium.com/@kaabar.sofien/the-normalized-bollinger-indicator-...
7 of 7 10-10-2020, 10:23 am