[ A simple python code snippet ] Cryptocurrency trading indicator of bollinger bands @ Binance exchange

Job ID: 33497244

Budget: $30 – $250 USD

Hi Dev,

I need a code snippet, the function is easily tell me the indicator of BOLL on ETH / USDT pair.

Show the three statements

A. Current price is hitting closely the upper band / B. Hitting closely Lower band. / C. Show the level percentages of whole bands.

That is it.

By the way, I need to switching periods between 5 mins / 15 mins / one hour mins.


If you don’t have a binance account, just click to register:

https://accounts.binance.com/zh-TW/register?ref=ZMRH27Q7


The sample code I have:

[Query prices]

import numpy as np
import pandas as pd
from binance.client import Client

api_key = ''
api_secret = ''
client = Client(api_key, api_secret) #register account get free api key

print(client.ping())

info = client.get_all_tickers()

df=pd.DataFrame(client.get_all_tickers())
df=df.set_index("symbol")
df["price"]=df["price"].astype("float")
df.index=df.index.astype("string")


Reference:
https://python-binance.readthedocs.io/en/latest/


Just give me workable code snippet , no matter the code is copied from other places, I don’t care. Implementation first!

PS: the calculating period is 15 / band width is 2. The parameters are better to adjustable.