커뮤니티
수식 부탁합니다
2017-02-22 22:03:32
136
글번호 107152
아래 2개의 수식에서 각각 신호수식 부탁합니다.
#,3분봉 기준에서 직전3개연속 양봉으로 4번째양봉이 polt1을 상향돌파시(거래량증가동반)
매수신호발생(텍스트표시)
#,3분봉 기준에서 직전3개연속 음봉으로 4번째음봉이 plot1를 하향이탈시(거래량증가동반)
매도신호발생(텍스트표시)
1)
var : TF(0),S1(0),S2(0),T(0),TM(0);
if Bdate != Bdate[1] Then{
S1 = TimeToMinutes(stime);
T = 1;
}
if date != date[1] and Bdate == Bdate[1] Then{
S2 = 1440-S1;
T = 2;
}
if T == 1 then
TM = TimeToMinutes(stime)-S1;
if T == 2 Then
TM = TimeToMinutes(stime)+S2;
TF = TM%240;
if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then{
var1 = Open;
}
plot1(var1);
-------------------------------------------------------------------
2)
var : Ov(0),Hv(0),Lv(0);
if (stime == 80000 or (stime > 80000 and stime[1] < 80000)) or
(stime == 103000 or (stime > 103000 and stime[1] < 103000)) or
(stime == 160000 or (stime > 160000 and stime[1] < 160000)) or
(stime == 233000 or (stime > 233000 and stime[1] < 233000)) or
(stime == 40000 or (stime > 40000 and stime[1] < 40000)) Then{
Ov = O;
Hv = H;
Lv = L;
}
if H > Hv Then
Hv = H;
if L < Lv Then
Lv = L;
plot1(Ov);
언제나 늘 감사합니다.
답변 1
예스스탁 예스스탁 답변
2017-02-23 11:43:39
안녕하세요
예스스탁입니다.
1.
var : TF(0),S1(0),S2(0),T(0),TM(0);
if Bdate != Bdate[1] Then{
S1 = TimeToMinutes(stime);
T = 1;
}
if date != date[1] and Bdate == Bdate[1] Then{
S2 = 1440-S1;
T = 2;
}
if T == 1 then
TM = TimeToMinutes(stime)-S1;
if T == 2 Then
TM = TimeToMinutes(stime)+S2;
TF = TM%240;
if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then{
var1 = Open;
}
if countif(C>O,4) == 4 and crossup(c,var1) and V > V[1] Then
buy("매수");
if countif(C<O,4) == 4 and CrossDown(c,var1) and V > V[1] Then
sell("매도");
2
var : Ov(0),Hv(0),Lv(0);
if (stime == 80000 or (stime > 80000 and stime[1] < 80000)) or
(stime == 103000 or (stime > 103000 and stime[1] < 103000)) or
(stime == 160000 or (stime > 160000 and stime[1] < 160000)) or
(stime == 233000 or (stime > 233000 and stime[1] < 233000)) or
(stime == 40000 or (stime > 40000 and stime[1] < 40000)) Then{
Ov = O;
Hv = H;
Lv = L;
}
if H > Hv Then
Hv = H;
if L < Lv Then
Lv = L;
if countif(C>O,4) == 4 and crossup(c,Ov) and V > V[1] Then
buy("매수");
if countif(C<O,4) == 4 and CrossDown(c,Ov) and V > V[1] Then
sell("매도");
즐거운 하루되세요
> 골든키 님이 쓴 글입니다.
> 제목 : 수식 부탁합니다
> 아래 2개의 수식에서 각각 신호수식 부탁합니다.
#,3분봉 기준에서 직전3개연속 양봉으로 4번째양봉이 polt1을 상향돌파시(거래량증가동반)
매수신호발생(텍스트표시)
#,3분봉 기준에서 직전3개연속 음봉으로 4번째음봉이 plot1를 하향이탈시(거래량증가동반)
매도신호발생(텍스트표시)
1)
var : TF(0),S1(0),S2(0),T(0),TM(0);
if Bdate != Bdate[1] Then{
S1 = TimeToMinutes(stime);
T = 1;
}
if date != date[1] and Bdate == Bdate[1] Then{
S2 = 1440-S1;
T = 2;
}
if T == 1 then
TM = TimeToMinutes(stime)-S1;
if T == 2 Then
TM = TimeToMinutes(stime)+S2;
TF = TM%240;
if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then{
var1 = Open;
}
plot1(var1);
-------------------------------------------------------------------
2)
var : Ov(0),Hv(0),Lv(0);
if (stime == 80000 or (stime > 80000 and stime[1] < 80000)) or
(stime == 103000 or (stime > 103000 and stime[1] < 103000)) or
(stime == 160000 or (stime > 160000 and stime[1] < 160000)) or
(stime == 233000 or (stime > 233000 and stime[1] < 233000)) or
(stime == 40000 or (stime > 40000 and stime[1] < 40000)) Then{
Ov = O;
Hv = H;
Lv = L;
}
if H > Hv Then
Hv = H;
if L < Lv Then
Lv = L;
plot1(Ov);
언제나 늘 감사합니다.