The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This

2025/07/0914:55:37 finance 1467
The merger and overlay display of the output content of the

algorithm, the merger or overlay display of the secondary graph indicators and the main graph K-line not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators.

This article discusses the merging and overlay display algorithm of deviation rate algorithm (BIAS) and the main picture. The content of

deviation rate algorithm (BIAS) is related to:

  • deviation rate (BIAS), also known as deviation degree and deviation rate, is abbreviated as Y value, and is an algorithm technology derived from the moving average principle. The idea of ​​the algorithm is to calculate the degree of deviation between the stock price and the moving average during operation, so as to obtain a possible pullback or rebound caused by deviation from the moving average when the stock price fluctuates violently. The trend significance of
  • deviation rate (BIAS) is based on the principle that the stock price deviates too far from the moving average (regardless of whether the stock price is above or below the moving average).

Calculation formula

Y value = (the closing price of on the day -N daily moving average closing price) ÷ N daily moving average closing price × 100%

Where, N day is the calculation parameters of the moving average, the calculation parameters of the moving average can be selected as needed, usually set to 6th, 12th, 24th, etc.

1. How to merge with K-line charts, just do vertical connection and matching of vertical coordinates

Ideas Steps

  1. introduces the system's own algorithm BIAS indicator, change the value name and assign values;
  2. calculates the highest price and lowest price of the current screen data (most value);
  3. calculates the highest value of BIAS under N1 parameters (most value);
  4. calculates the multiple value between the K-line data and BIAS data;
  5. calculates the new matching BIAS line;
  6. needs to translate the spatial value of the matching;
  7. translates the new BIAS line vertically to achieve the perfect merger with the K-line.

algorithm creates

1. Introduce the system's own algorithm BIAS indicator, change the variable name and assign value

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

Five parameters 1~4

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

Five parameters 5

BIAS1The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews:=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;

BIAS2The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews:=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;

BIAS3The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews:=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;

2. Calculate the highest and lowest prices of the current screen data (most value)

HH:=CONST(HHV(H,M));

LL:=CONST(LLV(L,M));

3. Calculate the highest value of BIAS under N1 parameter (most value)

CONST(HHV(BIAS10,M));

4. Find the multiple value between the K-line data and the BIAS data

BS:=(HH-LL)/CONST(HHV(BIAS10,M));{digit number}

5. Calculate the new matching BIAS line

BIAS11:=BIAS10*BS/N;

BIAS21:=BIAS20*BS/N;

BIAS31:=BIAS30*BS/N;

BIAS31:=BIAS30*BS/N;

6. The spatial value that needs to be translated and matched

PY:=LL-CONST(HHV(BIAS11,M));

7. Perform vertical translation of the new BIAS line to achieve a perfect merging with the K line

BIAS1:BIAS11+PY;

BIAS2:BIAS21+PY;

BIAS3:BIAS31+PY;

Parameters and complete code

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

5 parameters: 1~4

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

5 parameters: 5html ml1

BIAS10:=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;

BIAS20:=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;

BIAS30:=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;

HH: =CONST(HHV(H,M));

LL:=CONST(LLV(L,M));

BS:=(HH-LL)/CONST(HHV(BIAS10,M));

BIAS11:=BIAS10*BS/N;

BIAS21:=BIAS20*BS/N;

BIAS21:=BIAS20*BS/N;

BIAS31:=BIAS30*BS/N;

PY:=LL-CONST(HHV(BIAS11,M));

BIAS1:BIAS11+PY;

BIAS2:BIAS21+PY;

BIAS3:BIAS31+PY;

BIAS3:BIAS31+PY;

Note: Parameter N is used for matching fine tuning.

effect schematic

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

effect schematic

2. How to achieve superposition with K-line chart, just perform vertical coordinates to superimpose and match

ideas steps

  1. introduces the system's own algorithm BIAS indicator, change the number name And assign values;
  2. calculates the highest price and lowest price of the current screen data (most value);
  3. calculates the highest value of BIAS under N1 parameter (most value);
  4. calculates the multiple value between the K-line data and the BIAS data;
  5. calculates the new matching BIAS line;
  6. needs to be translated and matched spatial value;
  7. translates the new BIAS line vertically to achieve perfect superposition with the K-line.

algorithm creates

1. Introduce the system's own algorithm BIAS indicator, change the variable name and assign the value

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

5 parameters 1~4

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

5 parameters 5

BIAS10:=(CLOSE-MA(CLOSE,N1))/MA(CL OSE,N1)*100;

BIAS20:=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;

BIAS30:=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;

2. Calculate the highest and lowest prices of the current screen data (most value)

HH:=CONST(HHV(H,M));

LL:=CONST(LLV(L,M));

3. Calculate the highest value of BIAS under N1 parameter (most value)

CONST(HHV(BIAS10,M));

4. Find the multiple value between the K-line data and the BIAS data

BS:=(HH-LL)/CONST(HHV(BIAS10,M));{multiple}

5. Calculate the new matching BIAS line

BIAS11:=BIAS10*BS/N;

BIAS21:=BIAS20*BS/N;

BIAS31:=BIAS30*BS/N;

6. The spatial value that needs to be translated and matched is

0. The lowest value in the current latest price L;

7. Perform vertical translation of the new BIAS line to achieve perfect superposition with the K-line

BIAS1:BIAS11+L;

BIAS2:BIAS21+L;

BIAS3:BIAS31+L;

Parameters and complete code

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

5 parameters: 1~4

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

5 parameters: 5

BIAS10:=(C LOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100;

BIAS20:=(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;

BIAS30:=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100;

HH:=C ONST(HHV(H,M));

LL:=CONST(LLV(L,M));

BS:=(HH-LL)/CONST(HHV(BIAS10,M));

BIAS11:=BIAS10*BS/N;

BIAS21:=BIAS20* BS/N;

BIAS31:=BIAS30*BS/N;

BIAS1:BIAS11+L;

BIAS2:BIAS21+L;

BIAS2:BIAS21+L;

BIAS3:BIAS31+L;

Note: Parameter N is used for matching fine tuning.

effect schematic

The merger and overlay display of the algorithm output content, the merger or overlay display of sub-picture indicators and main image K-lines not only improves the screen display efficiency, but also provides convenience for the spatial comparison of prices and indicators. This  - DayDayNews

effect schematic

finance Category Latest News