답변완료
문의드립니다
지표 중에 Connors RSI라는 지표가 있어 구현해보고 싶은데 감이 잘 오지 않아 문의드립니다.
지표에 대한 설명은 인터넷 원문으로 보면(번역 과정에서 전달이 제대로 안될 수 있어 원문으로 하겠습니다)
https://school.stockcharts.com/doku.php?id=technical_indicators:connorsrsi
The formula given is:
ConnorsRSI(3,2,100) = [ RSI(Close,3) + RSI(Streak,2) + PercentRank(percentMove,100) ] / 3
Relative Strength Index
The first component is a simple 3-period RSI of price. This component measures price momentum on a scale of 0-100.
Up/Down Streak Length
The second component is a 2-period RSI of the up/down streak length. It measures the duration of the trend.
The up/down streak is essentially the number of days in a row that the security's closing price has been higher (up) or lower (down) than the previous day's close. If a stock closes above its previous close three days in a row, then the up/down streak is +3. If it has closed below its previous close for 2 days, then its streak is -2. If it does not change price between one period and the next, then the streak is reset to 0.
Applying the 2-period RSI to this streak value converts it to a bound oscillator where values must be in the range of 0-100.
Magnitude of Price Change
The third component ranks the most recent period's price change against the price change of the other periods in the specified timeframe (100 periods by default).
Essentially you determine the percentage of previous price changes that are lower than the most recent one. For example, if you specify a 20-day timeframe, and 7 of those 20 price change values are lower than today's price change, then 7 / 20 = 0.35 = 35%.
Again, defining this as a percentage restricts the component to a scale of 0-100. If today's price change was large and positive, the value of this component will be closer to 100; large negative price changes will result in a value closer to 0.
인데, 첫번째는 3일짜리 RSI이고(wilder가 아니라 cutler식 rsi 인 것 같습니다)
두번째는 연속 상승일수/하락일수(2일 연속 상승=2, 2일 연속하락=-2 등)에 대한 2일짜리 RSI,
세번째는 지난 100일간 1일 주가변화율(1일 ROC)이 당일 주가변화율보다 낮았던 일의 비율
정도로 볼 수 있을 것 같습니다.(다른 몇몇 시스템트레이딩 프로그램에서는 percentrank 함수로 나타내는 경우가 있는데 제가 못찾은건지 원래 없는건지 예스랭귀지에서는 맞는 함수를 모르겠습니다)
첫번째는 단순한 3일짜리 RSI지만 남은 두 가지가 수식으로 어떻게 표현해야 할지 감이 잘 잡히지 않아 문의를 드립니다.
2021-09-05
1420
글번호 152027
지표
답변완료
수정 의뢰 드립니다1
안녕하세요!
첨부 그림은 아래 수식으로 표출되는 것입니다!
총 4개의 선이 나타나나는데 원래 제가 원했던 챠트표시는 녹색의 원 표시된 부분은
안나타나고 위와 애래 화살표로 표시된 2부분만 나타나길 원했었는데 그게 참 어렵네요!
수식 수정을 부탁드립니다!
감사합니다!
input : 색1(BLACK),색2(BLACK);
input : 굵기1(0),굵기2(0);
Var1 = abs(DayClose(1)-DayOpen(0));
plot1(DayOpen(0)+Var1,"시가대칭+",색1,DEf,굵기1);
plot2((DayOpen(0)+0.05)+Var1,"시가대칭++",색1,DEf,굵기1);
plot3(DayOpen(0)-Var1,"시가대칭-",색2,DEf,굵기2);
plot4((DayOpen(0)-0.05)-Var1,"시가대칭--",색2,DEf,굵기2);
plot5(DayClose(1)+Var1,"시가대칭1+",색1,DEf,굵기1);
plot6((DayClose(1)+0.05)+Var1,"시가대칭1++",색1,DEf,굵기1);
plot7(DayClose(1)-Var1,"시가대칭1-",색2,DEf,굵기2);
plot8((DayClose(1)-0.05)-Var1,"시가대칭1--",색2,DEf,굵기2);
---------------------------------------------------------
당일 장이 시작되고 첫봉이 완성되면 첫봉의 고가와 저가 위 아래에 가격이 표시되고
그 봉의 위와 아래로 가격의 진폭 만큼 짧은 수평선이 표시되는 수식을 만들어 주시길 부탁드립니다! 그리고 가능하다면 봉의 갯수는 제가 임의로 정할 수 있었으면 더 좋겠습니다!
2021-09-06
1320
글번호 152024
지표
답변완료
수식부탁드립니다
70MA 150MA정배열 상태에서
1)주가가 일목균형표 기준선과 70MA사이에서 조정을 받으면서 sto(10,6,6)에서 divergence 나타나면서 상승시 시장가 매수(50%)일목균형표에서 기준선 통과시 추가 매수(50%)
기준선 아래로 내려오면 매수청산
기준선과 70MA에서 Divergence생기고 조정 받으면서 상승하지않고 전저점이하로 하락시 stop
2)주가가 70MA와 150MA사이에서 조정을 받으면서 sto(10,6,6)에서 divergence 나타나면서 상승시 시장가 매수(50%)일목균형표에서 기준선 통과시 추가 매수(50%)
기준선 아래로 내려오면 매수청산
70MA와 150MA에서 Divergence생기고 조정 받으면서 상승하지않고 전저점이하로 하락시 stop
70MA와 150 MA 역배열 상태에서
1)주가가 기준선과 70MA사이에서 조정을 받으면서 sto(10,6,6)에서 divergence 나타나면서 하락시 시장가 매도(50%), 일목균형표에서 기준선 통과 하락시 추가 매도(50%)
기준선 이상으로 올라오면 매도청산
기준선과 70MA에서 Divergence생기고 조정 받으면서 하락하지않고 전고점이상으로 상승시 stop
2)주가가 70MA와 150MA사이에서 조정을 받으면서 sto(10,6,6)에서 divergence 나타나면서 하락시 시장가 매도(50%), 일목균형표에서 기준선 통과시 추가 매도(50%)
기준선 위로 올라오면 매도청산
70MA와 150MA에서 Divergence생기고 조정 받으면서 하락하지않고 전고점이상로 상승시 stop
2021-09-03
709
글번호 152010
시스템