커뮤니티

문의드립니다.

프로필 이미지
as8282
2021-12-25 15:23:12
774
글번호 154844
답변완료
smoothK = input(3, minval=1) smoothD = input(3, minval=1) lengthRSI = input(14, minval=1) lengthStoch = input(14, minval=1, title="Stoch (RSI) length") src2 = input(close, title="RSI Source") rsi1 = rsi(src2, lengthRSI) k = sma(stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK) d = sma(k, smoothD) 상기수식을 1) 예스지표로부탁합니다.( 기준선 20,80 도 부탁합니다.) 2) k가 기준선 20을 상향돌파하면 매수 80을 하향돌파하면 매도 k 가 d 를 데드크로스되면 매수청산 k 가 d 를 골든크로스하면 매도청산 이되는 시스템식도 같이 부탁드립니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-12-27 10:06:11

안녕하세요 예스스탁입니다. 1 input : smoothK(3),smoothD(3),lengthRSI(14),lengthStoch(14); var : src2(0),RSIv(0),hh(0),ll(0),fk(0),sk(0),sd(0); src2 = C; RSIv = rsi(lengthRSI); HH = highest(RSIv,lengthStoch); LL = lowest(RSIv,lengthStoch); fk = (RSIv-LL) / (HH-LL)*100; sk = ma(fk, smoothK); sd = ma(sk, smoothD); plot1(sk); plot2(sd); PlotBaseLine1(20); PlotBaseLine2(60); 2 input : smoothK(3),smoothD(3),lengthRSI(14),lengthStoch(14); var : src2(0),RSIv(0),hh(0),ll(0),fk(0),sk(0),sd(0); src2 = C; RSIv = rsi(lengthRSI); HH = highest(RSIv,lengthStoch); LL = lowest(RSIv,lengthStoch); fk = (RSIv-LL) / (HH-LL)*100; sk = ma(fk, smoothK); sd = ma(sk, smoothD); if MarketPosition <= 0 and CrossUp(sk,20) Then Buy(); if MarketPosition == 1 and CrossDown(sk,sd) Then ExitLong(); if MarketPosition >= 0 and CrossDown(sk,80) Then Sell(); if MarketPosition == -1 and CrossUp(sk,sd) Then ExitShort(); 즐거운 하루되세요 > as8282 님이 쓴 글입니다. > 제목 : 문의드립니다. > smoothK = input(3, minval=1) smoothD = input(3, minval=1) lengthRSI = input(14, minval=1) lengthStoch = input(14, minval=1, title="Stoch (RSI) length") src2 = input(close, title="RSI Source") rsi1 = rsi(src2, lengthRSI) k = sma(stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK) d = sma(k, smoothD) 상기수식을 1) 예스지표로부탁합니다.( 기준선 20,80 도 부탁합니다.) 2) k가 기준선 20을 상향돌파하면 매수 80을 하향돌파하면 매도 k 가 d 를 데드크로스되면 매수청산 k 가 d 를 골든크로스하면 매도청산 이되는 시스템식도 같이 부탁드립니다.