Double the amount of Zuofeng's stock selection formula to find the trigger point

Simply speaking, the left peak is the high point of the band formed by the pull-up in the previous period. After the left peak, there is a callback, forming a notch. Crossing the left peak means breaking through the high point of the previous band. In terms of the quantity of Zuofeng, there have been one peak, two peaks, three peaks, etc.; in terms of volume and price, there have been times of Zuofeng, shrinkage of Zuofeng, etc. This article writes the stock selection formula of Zuofeng with double volume. The volume of Zuofeng with double volume is twice or more than yesterday's trading volume breaking through the previous swing high.

 

1. The index formula of the left peak main graph with double volume

Idea: For the description of Zuofeng’s multiplier, it is somewhat difficult from the perspective of writing indicator formulas, because there are various market conditions, and the length of the callback time is uncertain. This article uses the 30-day new high, based on the highest price on the day when the 30-day new high is broken, plus the multiplier, the range before the breakthrough, and the limit conditions of the K-line breakthrough to send out a signal. How many daily new highs N and how many times the amount of M are made parameters, which can be modified and adjusted according to needs.

N:=30;{parameter, how many daily highs}

M:=2;{parameter, how many times}

CXG:=H=HHV(H,N);{30-day new high}

T:=BARSLAST(CXG);{The number of cycles from the last 30-day new high to the current one}

HH:=REF(H,T);{The highest price on the day of the 30th new high}

HH30:=HHV(H,30);{The highest value of the highest price on the 30th day}

LL30:=LLV(L,30);{The lowest value of the lowest price in 30 days}

HL:=(HH30-LL30)/LL30*100; {30 day high and low point range}

A1:=CROSS(C,REF(HH,1));{Cross the left peak}

A2:=V/REF(V,1)>=M;{multiple amount}

A3:=C/REF(C,1)>1.03 AND (CL)/(HL)>0.6; {Yang line with an increase of more than 3%}

A4:=REF(HL<20,1);{The range of the 30-day high and low point one day ago is less than 20%}

XG:=A1 AND A2 AND A3 AND A4;

STICKLINE(XG,H,L,0,0),COLORYELLOW;

STICKLINE(XG,O,C,3,0),COLORYELLOW;

DRAWICON(XG,L,1);

 

 

2. Zuofeng Stock Selection Formula

N:=30;

M:=2;

CXG:=H=HHV(H,N);

T:=BARSLAST(CXG);

HH:=REF(H,T);

HH30:=HHV(H,30);

LL30:=LLV(L,30);

HL:=(HH30-LL30)/LL30*100;

A1:=CROSS(C,REF(HH,1));

A2:=V/REF(V,1)>=M;

A3:=C/REF(C,1)>1.03 AND (C-L)/(H-L)>0.6;

A4:=REF(HL<20,1);

XG:A1 AND A2 AND A3 AND A4;

3. Points to note

Zuo Feng’s subsequent adjustments have been long or short, and the new high on the 30th cannot completely match all the market conditions, which leads to some signals that are obviously inconsistent, which can be seen at a glance. In addition, everyone may have a different understanding of the market, and can adjust the parameters or modify the code by themselves. Finally, there is the problem of false breakthroughs. I think false breakthroughs cannot be avoided, and can only be improved through stop loss and fund management.

Pay attention to Technical Pie and learn more knowledge about writing Tongdaxin indicator formulas. All rights reserved, please indicate the source.

Friendly reminder: This article is only for learning and exchanging technical indicator formulas, and does not constitute any investment advice. Investment is risky, and you need to be cautious when entering the market.

Guess you like

Origin blog.csdn.net/m0_74754828/article/details/131602725