Ethereum MacD Indicator Disconnect is not binance: Beginner Guidd
ASS Beginner Programming and Python, you enjoy testing technical analysis tools for cryptocurrency markets. One popular score is the changing average convergence deviation (MacD), which gives insight into the market centers and models in the market. Indicate that the MacD indicator is 2 lines crossing.
What is the MacD indicator?
MacD (changing average convergence deviation) is an indicator is a technical analysis that helps trader identity trends, sub -opera and resistance levels and possible speeds. It works compared to changing average: short-term MA (12 period) and long-term MA (26-period). When the signal line crosses above or below the histogram, it does not indicate the difference that can be a bullish or a beary sign.
How to introduce MacD indicator is not binance
You will need: to introduce MacD indicator binance:
1
CoinMarketcap API : This will provide access to historical market data.
- Create a binance account : If you don’t have one yet, sign up for OESE API.
3
Insert Python Library ‘RQUEST’
: SIPLE HTTP Customer Library with Easy Oes.
Here is an EXPE-CODE fragment that shows how to point out the MacD indicator is not binance:
`Python
to import proposals
Def Get_binance_data (Symbol):
URL = F " (Symbol}"
Answer = Request.Get (URL)
Data = reaction.json ()
Remove historical mark data (5 -year average volume)
Hist_volume = 0
Probably the price in the data ['candles']:
If time> = 24 * 365:
5 years history
hist_volume += print
taxi {
'Shhort_MA': Hist_volume / 365,
'Long_MA': Hist_volume / 2520
26-Period short ma
}
Def Get_Macd (data, Short_MA, Long_MA):
Signal_line = Data ['Shhort_MA'] + Data ['Close'] [1]
Histogram = Data ['Close'] [2] [Data ['Close'] [1]
Return (Signal_line - Histogram) / Histogram if Signal_line> 0 Other (Histogram - Signal_line) / Histogram
Def, who ():
Symbol = 'BTC/USDT'
replace with the desired cryptocurrency
API_KEY = 'YOUR_BINANT_API_KEY'
Api_secret = 'Your_binance_api_seret'
Data = Get_Binance_Data (Symbol)
Short_MA = Data ['Short_MA']
Long_MA = Data ['Long_MA']]
Signal_line = Get_Macd (data, Short_MA, Long_MA)
Print (F "Signal Line: {Signal_line}")
Print (F "Histogram: {(Data ['Close'] [2] [2] [1] [1] [1] [1] [1] [1] [2] [2] [Data ['Close'] [ 1)))} ")
If __name__ == "__Whost__":
whom
` Re
How does your MacD indicator work
Here is a step by step explanation of how the MacD indicator works:
- Calculate short and long prices : Historical history (5 -year average volume) feature “Get_binance_data” and calculates the 5 -year print.
- Calculate the signal line : “Get_MACD Short Ma Prize function as closer and accounting indicates the privilege.
3
Determine the convergence compared to the difference : If the signal line crosses above or below the histogram (htogram = 1 / (short ma + spirit ma)) instead of indicating the difference.
Tips for beginners
- Start with smarger time shots (eg 5 minutes, 15 minutes) and gradually move on to a longer period of time.
- Use a reliable API
- Experiment with differentiating parameters (such as short or long term periods, signal line spirits) to find them optimal configuration of your trading strategy.
By doing these steps and tips, you will be able to introduce a MacD indicator that does not form binance and will begin to analyze the marker trends in Ethereum.