커뮤니티
수식 검토 문의 바랍니다
2009-12-28 23:03:53
839
글번호 27031
안녕하세요
아래 수식대로 적용해보니 작동이 안돼서요
혹시 이 기간 적용이 잘못 된거 아닌지요
STOCHRSI 기간:20 20 10
부탁드립니다
감사합니다
=============================================================================
안녕하세요
예스스탁입니다.
아래와 같은 식입니다.
Input : Period(14), Period2(7);
var : stoRSI(0);
stoRSI = ((RSI(Period)- lowest(RSI(Period),Period2)) /
(highest(RSI(Period),Period2)-(lowest(RSI(Period),Period2))))*-1;
if crossup(stoRSI,30) or crossup(stoRSI,50) or crossup(stoRSI,70) Then
var1 = H;
if CrossDown(stoRSI,30) or CrossDown(stoRSI,50) or CrossDown(stoRSI,70) Then
var2 = L;
if MarketPosition == 0 and stoRSI > 30 and stoRSI > stoRSI[1] Then
buy("b",AtStop,var1+ATR(10)*0.5);
if MarketPosition == 1 and stoRSI < 70 and stoRSI < stoRSI[1] Then
ExitLong("bx",AtStop,var2-ATR(10)*0.5);
SetStopLoss(10);
즐거운 하루되세요
> 개포빠가사리 님이 쓴 글입니다.
> 제목 : STOCHRSI
> 안녕하세요
RSI지표를 스토캐스틱 지표의 구현 방법으로 다시한번 계산하여 진동성을 강화시킨 지표
STOCHRSI 기간:20 20 10
과매도 30 과매수 70
셋업 1.STOCHRSI가 30,50,70 상향돌파
2.STOCHRSI가 70,50,30 하향돌파
매수/ 1.STOCHRSI>30
2.STOCHRSI>전일STOCHRSI
3.최근에 셋업 1.발생/ 셋업1.발생시의 고가 ATR(10)*0.5이상일 때 진입.
매도 1.STOCHRSI<70
2.STOCHRSI<전일STOCHRSI
3.최근 셋업 2.발생/셋업 2.발생시의 저가 ATR(10)*0.5이하일 때 청산
손절매 진입가에서 5% 손실
재진입 제한 손절매 청산이후에는 3개봉 경과 후 진입
감사합니다
답변 1
예스스탁 예스스탁 답변
2009-12-29 09:02:46
안녕하세요
예스스탁입니다.
storsi식은 기간값이 2개 필요합니다.
10의 정확한 용도를 모르겠습니다.
Input : Period(20), Period2(20);
var : stoRSI(0);
stoRSI = ((RSI(Period)- lowest(RSI(Period),Period2)) /
(highest(RSI(Period),Period2)-(lowest(RSI(Period),Period2))))*-1;
if crossup(stoRSI,30) or crossup(stoRSI,50) or crossup(stoRSI,70) Then
var1 = H;
if CrossDown(stoRSI,30) or CrossDown(stoRSI,50) or CrossDown(stoRSI,70) Then
var2 = L;
if MarketPosition == 0 and stoRSI > 30 and stoRSI > stoRSI[1] Then
buy("b",AtStop,var1+ATR(10)*0.5);
if MarketPosition == 1 and stoRSI < 70 and stoRSI < stoRSI[1] Then
ExitLong("bx",AtStop,var2-ATR(10)*0.5);
SetStopLoss(10);
즐거운 하루되세요
> 개포빠가사리 님이 쓴 글입니다.
> 제목 : 수식 검토 문의 바랍니다
> 안녕하세요
아래 수식대로 적용해보니 작동이 안돼서요
혹시 이 기간 적용이 잘못 된거 아닌지요
STOCHRSI 기간:20 20 10
부탁드립니다
감사합니다
=============================================================================
안녕하세요
예스스탁입니다.
아래와 같은 식입니다.
Input : Period(14), Period2(7);
var : stoRSI(0);
stoRSI = ((RSI(Period)- lowest(RSI(Period),Period2)) /
(highest(RSI(Period),Period2)-(lowest(RSI(Period),Period2))))*-1;
if crossup(stoRSI,30) or crossup(stoRSI,50) or crossup(stoRSI,70) Then
var1 = H;
if CrossDown(stoRSI,30) or CrossDown(stoRSI,50) or CrossDown(stoRSI,70) Then
var2 = L;
if MarketPosition == 0 and stoRSI > 30 and stoRSI > stoRSI[1] Then
buy("b",AtStop,var1+ATR(10)*0.5);
if MarketPosition == 1 and stoRSI < 70 and stoRSI < stoRSI[1] Then
ExitLong("bx",AtStop,var2-ATR(10)*0.5);
SetStopLoss(10);
즐거운 하루되세요
> 개포빠가사리 님이 쓴 글입니다.
> 제목 : STOCHRSI
> 안녕하세요
RSI지표를 스토캐스틱 지표의 구현 방법으로 다시한번 계산하여 진동성을 강화시킨 지표
STOCHRSI 기간:20 20 10
과매도 30 과매수 70
셋업 1.STOCHRSI가 30,50,70 상향돌파
2.STOCHRSI가 70,50,30 하향돌파
매수/ 1.STOCHRSI>30
2.STOCHRSI>전일STOCHRSI
3.최근에 셋업 1.발생/ 셋업1.발생시의 고가 ATR(10)*0.5이상일 때 진입.
매도 1.STOCHRSI<70
2.STOCHRSI<전일STOCHRSI
3.최근 셋업 2.발생/셋업 2.발생시의 저가 ATR(10)*0.5이하일 때 청산
손절매 진입가에서 5% 손실
재진입 제한 손절매 청산이후에는 3개봉 경과 후 진입
감사합니다
다음글