커뮤니티
수식 부탁드립니다.
2017-09-01 09:58:48
104
글번호 112423
1. stochastics slow 시스템에 없던데 부탁드립니다.
2. stochastics slow + rsi 과열구간에서 과열이 사라지고 하방으로 내려올때 충족되는 수식
침체구간에서 침체가 사라지고 상방으로 올라갈때 충족되는 수식
3. 일 봉상 차트에서 주봉, 월봉 이평배열이 완성될때 (정배열, 역배열) 신호
부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2017-09-01 15:44:26
안녕하세요
예스스탁입니다.
stochastics slow라고만 하시면 어떤 내용의 수식인지 알수 없습니다.
기본으로 제공되는 시스템 중 stochastics이
슬로우k가 침체돌파시 매수, 과열이탈시 매도하는 식입니다.
기본으로 제공되는 시스템 중 Stochastics K_D가
슬로우k와 슬로우D 크로스 신호입니다.
1-1 stochastics
Input : sto1(12), sto2(5),sto3(5), buyLine(20),SellLine(80);
Var : stok(0);
stok = StochasticsK(sto1,sto2);
# 매수/매도청산
If CrossUP(stok, buyLine) Then
{
Buy("매수");
}
# 매도/매수청산
If CrossDown(stok, SellLine) Then
{
Sell("매도");
}
1-2 Stochastics K_D
Input : sto1(12), sto2(5),sto3(5);
Var : stok(0),stod(0);
stok = StochasticsK(sto1,sto2);
stod = StochasticsD(sto1,sto2,sto3);
if crossup(stok,stod) Then
buy();
if CrossDown(stok,stod) Then
sell();
2
input : Period(14),Period2(10);
var : StoRSI(0);
StoRSI = ((RSI(Period)- lowest(RSI(Period),Period2)) / (highest(RSI(Period),Period2)-(lowest(RSI(Period),Period2))))*-1;
if crossup(StoRSI,20) Then
buy();
if CrossDown(StoRSI,80) Then
sell();
3
input : P1(5),P2(20),P3(60);
var : cnt(0);
var : Wsum1(0),Wsum2(0),Wsum3(0);
var : Wmav1(0),Wmav2(0),Wmav3(0);
var : Msum1(0),Msum2(0),Msum3(0);
var : Mmav1(0),Mmav2(0),Mmav3(0);
Array : C1[99](0),C2[99](0);
if DayOfWeek(sdate) < DayOfWeek(sdate[1]) Then{
for cnt = 1 to 99{
C1[cnt] = C1[cnt-1][1];
}
}
C1[0] = C;
if C1[P3-1] > 0 Then{
Wsum1 = 0;
Wsum2 = 0;
Wsum3 = 0;
for cnt = 0 to P1-1{
if cnt < P1 Then
Wsum1 = Wsum1+C1[cnt];
if cnt < P2 Then
Wsum2 = Wsum2+C1[cnt];
if cnt < P3 Then
Wsum3 = Wsum3+C1[cnt];
}
Wmav1 = Wsum1/P1;
Wmav2 = Wsum2/P2;
Wmav3 = Wsum3/P3;
Condition1 = Wmav1 > Wmav2 and Wmav2 > Wmav3;
Condition2 = Wmav1 < Wmav2 and Wmav2 < Wmav3;
if Condition1 == true and Condition1[1] == false Then
buy();
if Condition2 == true and Condition2[1] == false Then
sell();
}
if sdate > sdate[1]+30 Then{
for cnt = 1 to 99{
C2[cnt] = C2[cnt-1][1];
}
}
C2[0] = C;
if C2[P3-1] > 0 Then{
Msum1 = 0;
Msum2 = 0;
Msum3 = 0;
for cnt = 0 to P1-1{
if cnt < P1 Then
Msum1 = Msum1+C1[cnt];
if cnt < P2 Then
Msum2 = Msum2+C1[cnt];
if cnt < P3 Then
Msum3 = Msum3+C1[cnt];
}
Mmav1 = Msum1/P1;
Mmav2 = Msum2/P2;
Mmav3 = Msum3/P3;
Condition3 = Mmav1 > Mmav2 and Mmav2 > Mmav3;
Condition4 = Mmav1 < Mmav2 and Mmav2 < Mmav3;
if Condition3 == true and Condition3[1] == false Then
buy();
if Condition4 == true and Condition4[1] == false Then
sell();
}
즐거운 하루되세요
> 천용인 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다.
> 1. stochastics slow 시스템에 없던데 부탁드립니다.
2. stochastics slow + rsi 과열구간에서 과열이 사라지고 하방으로 내려올때 충족되는 수식
침체구간에서 침체가 사라지고 상방으로 올라갈때 충족되는 수식
3. 일 봉상 차트에서 주봉, 월봉 이평배열이 완성될때 (정배열, 역배열) 신호
부탁드립니다.
다음글
이전글