Formula Writing 1000 Questions 39-40

39. Question:
Please make up a formula: Within 30 days, the stock selection formula of daily limit and daily limit (Flying Fox).
Answer (breeze and setting sun):
input: n(30,1,100);
Limit: COUNT(CLOSE-REF(CLOSE,1)*0.9<0.01,n)>0;
COUNT(REF(CLOSE,1)*1.1-CLOSE< 0.01,n)>0;
stock selection: lower limit
Answer (xjqnj ):
a:=(c-ref(c,1))/ref(c,1)*100;
daily limit stock selection: if(COUNT(a>9.9 ,n)>=1,1.5,0);
Daily limit: a>9.9;

  跌停选股:if(COUNT(a>9.9,n)>=1,-1.5,0);
  跌停:if(a<-9.9,-1,0)

Answer (Tang Wenzheng);
Flying Fox Order: Conditional stock selection-------advanced---------historical time period stock selection

  {任一时间段历史涨停选股}
  B:=IF(STKINBLOCK('','ST板块'),0.049,0.099);
  ZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
  涨停:ZF>=B,linethick0;
  STICKLINE(涨停,0,0.6,5,0),Colorred;
     同理,可选出任一历史时间段跌停个股。

CODE:

[Copy to clipboard]

40. Question:
How to write the formula for finding the lowest point of the closing price in the last 20 days and expressing this position on the chart.
Answer (know everything):
INPUT:N(20,0,1000);
LL:=l;
TS:= ubound(LL);
PZ:= SORT(LL, 1, TS-N+1, TS);
MINL :=LL[TS];
t1:=islastbar;
tj:=backset(t1,N);
IF(MINL=L ​​AND TJ,L,0);

Guess you like

Origin blog.csdn.net/qq974416775/article/details/129536257