Current location - Trademark Inquiry Complete Network - Futures platform - Tongdaxin dkx long and short line indicator source code?
Tongdaxin dkx long and short line indicator source code?

Please refer to the following content for the main chart, stock selection and source code of DKX Long and Short Line Tongdaxin:

Tongdaxin DKX Long and Short Line (system) Tongdaxin system’s own indicators, DKX’s own indicators are sub-charts , to facilitate your understanding, the main picture has been changed and stock selection has been added.

DKX long and short line source code is composed of the following combination;

MID:=(3*closing price+lowest price+opening price+highest price)/6;

< p>DKX: (20*MID+19*forward reference(MID,1)+18*forward reference(MID,2)+17*forward reference(MID,3)+16*forward reference(MID, 4)+15*forward reference(MID,5)+14*forward reference(MID,6) +13*forward reference(MID,7)+12*forward reference(MID,8)+11*forward Forward reference (MID, 9) + 10* Forward reference (MID, 10) + 9* Forward reference (MID, 11) + 8* Forward reference (MID, 12) +7* Forward reference (MID, 13 )+6*forward reference(MID,14)+5*forward reference(MID,15)+4*forward reference(MID,16)+3*forward reference(MID,17)+2*forward Quote (MID, 18) + Forward Quote (MID, 20))/210;

In fact, the DKX indicator is a very accurate indicator in hindsight, because the DKX indicator is not affected by short-term fluctuations , the hysteresis is certain.

The DKX indicator is actually a "beautiful-looking" indicator, but it is an indicator that is difficult to grasp the timing of its use.

Source code of the main picture of long and short lines:

MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;

DKX:=(20 *MID+19*REF(MID, 1)+18*REF(MID, 2)+17*REF(MID, 3)+

16*REF(MID, 4)+15*REF( MID, 5)+14*REF(MID, 6)+

13*REF(MID, 7)+12*REF(MID, 8)+11*REF(MID, 9)+

p>

10*REF(MID, 10)+9*REF(MID, 11)+8*REF(MID, 12)+

7*REF(MID, 13)+6* REF(MID, 14)+5*REF(MID, 15)+

4*REF(MID, 16)+3*REF(MID, 17)+2*REF(MID, 18)+ REF(MID, 20))/210;

MADKX:MA(DKX, 10), DOTLINE;

IF((MADKX>=REF(MADKX, 1)), MADKX , DRAWNULL), LINETHICK2, COLORMAGENTA;

IF((MADKX stock selection:=CLOSE>=DKX AND CROSS(DKX, MADKX);

DRAWICON(stock selection, L*0.96 , 30);

Stock selection source code:

MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;

DKX:=( 20*MID+19*REF(MID, 1)+18*REF(MID, 2)+17*REF(MID, 3)+

16*REF(MID, 4)+15*REF (MID, 5)+14*REF(MID, 6)+

13*REF(MID, 7)+12*REF(MID, 8)+11*REF(MID, 9)+< /p>

10*REF(MID, 10)+9*REF(MID, 11)+8*REF(MID, 12)+

7*REF(MID, 13)+6 *REF(MID, 14)+5*REF(MID, 15)+

4*REF(MID, 16)+3*REF(MID, 17)+2*REF(MID, 18) +REF(MID, 20))/210;

MADKX:=MA(DKX, 10);

Stock selection: CLOSE>=DKX AND CROSS(DKX, MADKX);

The long and short line is a statistical indicator. It is a curve formed by counting active buying and selling transactions according to time intervals. Its coordinates are 0-100. When the buyer and seller have the same wishes, it hovers around 50. When it is close to 100, it means buying. The stronger desire to sell indicates the possibility of a rise in the market outlook. When it is close to 0, it indicates a strong desire to sell the catalog, indicating the possibility of a decline in the market outlook. For the crossing of the 50 line, special attention should be paid to the combination of volume.

There are two lines in the long and short lines, which cross to prompt buying and selling.

The first parameter is the moving average period, which is used to filter out interference. The second parameter is the concept of heavy volume, which is a multiple that indicates the multiple of the trading volume in the current time period and the trading volume in the previous five time periods. When the heavy volume breaks through upward When the 50 line is reached, the long and short lines display a red mark. When a downward breakthrough occurs, a green mark is displayed to attract attention. The long and short lines are suitable for various analysis periods.