Ethereum: Trading view vs Binance DMI calculation?

Here is a design article on the calculation of Ethereum directional movement indicators using the Binance DMI (direct movement display) API:

Calculation of direct movement indicators for Ethereum

As an investor, understanding the trends and patterns of your cryptocurrency portfolio is of crucial importance. A powerful instrument in this arsenal is the direct movement indicator (DMI), with which the direction of the price movement can be identified. In this article we will examine how the DMI is calculated with the Binance -API.

Understanding the 288 values ​​

To create a 5-minute trade view for Ethereum in Binance, you have to use 288 values: high, open, low and close. Here is a brief overview of every value:

* High : The highest price level that is reached during a bar.

* Open : The lowest price level that was reached during a bar.

* Low

: The lowest price level that is reached during a bar.

* Close : The highest price level that is reached during a bar.

Calculate the BSM (a balanced regulatory signal)

Before you immerse yourself in DMI, we start with the basic moving average (BSM). With an average of 12 percent of high and low prices, the BSM can be used. Like: How:

  • Call up the high and low value for each bar with the Binance -API.

  • Calculate the BSM on average the high and low prices over a period of time (e.g. 12 bar).

3 .. Use the BSM as a filter to select only heights, low lows and close.

Calculation of the area

Next we calculate the average actual area (ATR) using the alligator indicators of Alpha Advantage. This will help us identify the volatility of Ethereum’s price movements.

  • Call up all 288 values ​​for each bar.

  • Calculate the average area by taking the average of the highly low areas.

3 .. Use the ATR to use heights, low lows and exclude areas (i.e. high -volatility) with high worn.

Calculation of the BSI (Balance signal display)

Let us create a balance signal indicator (BSI) by calculating the ratio of the high prices.

  • Call up all 288 values ​​for each bar.

  • Calculate the ratio of high prices over a period of time (e.g. 12 bars).

3 .. Use the BSI as an indicator to make potential purchase or sales options based on highs, low lows and close it with high conditions.

Calculation of the RSI

Ethereum: Trading view vs Binance DMI calculation?

Finally, we calculate the relative strength index (RSI) with the high and low value.

  • Call up all 288 values ​​for each bar.

  • Calculate the RSI by taking the average of the ratio of high prices over a period of time (e.g. 14 days).

3 .. Use the RSI as an additional indicator to signal potential purchase or sales options based on highs, low lows and close with low conditions.

put together everything

To create your trading view, use the Binance API to access the calculated indicators for each bar:

`JavaScript

Const Axios = Require ('Axios');

Asynchrical function calculatedmi () {

// Call all 288 values ​​for each beam

Const apiresponse = waiting axios.get ( {ethsymbol} & inval = 5m`);

If (Apiresponse.Status! == 200) return;

Const data = apiresponse.data;

Const Hochvalues ​​= data.highestprecices.map ((value, index) => ({value}));

Const Openvalues ​​= Data.openprices.map ((value, index) => ({value}));

Const lowvalues ​​= data.lowestprecices.map ((value, index) => ({value}));

Const Closevalues ​​= Data.cleseprices.map ((value, index) => ({value}));

// calculate BSM

Const bsmvalues ​​= Hohe Values.Reduce ((a, b) => a + B.Value, 0) / bsmvalues.length;

console.log (bsmvalues);

// calculate areon

Const atrvalues ​​= Closevalues.map ((value, index) => {

If (index % 10 == 9 && value

Else IF (Index % 10!

Otherwise if (index % 10! == 9 && value

metamask make browser extension metamask

Bitcoin: How feasible is a double spend attack?

Dating site for divorcees in india – find love again

Ethereum: What public data sets are available that could used for correlation in bitcoin analytics?

Solana: Buy using TokenAccount with init errors on second call with “Provided owner is not allowed”

Ethereum: How do you get the balance of an address in your wallet using the rpc interface?

Ethereum: API for converting currency such as Euro/USD to BTC