답변완료
지표
항상감사합니다
당일표시입니다
전일추가수식부탁드립니다
input : S1(805000),E1(900000);
input : S2(104000),E2(1050000);
input : S3(122000),E3(123000);
input : S4(145000),E4(150000);
input : S5(131000),E5(132000);
input : S6(151000),E6(153000);
var : T1(false),H1(0),L1(0);
var : T2(false),H2(0),L2(0);
var : T3(false),H3(0),L3(0);
var : T4(false),H4(0),L4(0);
var : T5(false),H5(0),L5(0);
var : T6(false),H6(0),L6(0);
if (sdate != sdate[1] and stime >= S1) or
(sdate == sdate[1] and stime >= S1 and stime[1] < S1) Then
{
T1 = true;
H1 = H;
L1 = L;
}
if (sdate != sdate[1] and stime >= E1) or
(sdate == sdate[1] and stime >= E1 and stime[1] < E1) Then
T1 = False;
if T1 == true then
{
if H > H1 Then
H1 = H;
if L < L1 Then
L1 = L;
}
if H1 > 0 and L1 > 0 Then
{
plot1(H1);
plot2(L1);
plot3((H1+L1)/2);
}
if (sdate != sdate[1] and stime >= S2) or
(sdate == sdate[1] and stime >= S2 and stime[1] < S2) Then
{
T2 = true;
H2 = H;
L2 = L;
}
if (sdate != sdate[1] and stime >= E2) or
(sdate == sdate[1] and stime >= E2 and stime[1] < E2) Then
T2 = False;
if T2 == true then
{
if H > H2 Then
H2 = H;
if L < L2 Then
L2 = L;
}
if H2 > 0 and L2 > 0 Then
{
plot4(H2);
plot5(L2);
plot6((H2+L2)/2);
}
if (sdate != sdate[1] and stime >= S3) or
(sdate == sdate[1] and stime >= S3 and stime[1] < S3) Then
{
T3 = true;
H3 = H;
L3 = L;
}
if (sdate != sdate[1] and stime >= E3) or
(sdate == sdate[1] and stime >= E3 and stime[1] < E3) Then
T3 = False;
if T3 == true then
{
if H > H3 Then
H3 = H;
if L < L3 Then
L3 = L;
}
if H3 > 0 and L3 > 0 Then
{
plot7(H3);
plot8(L3);
plot9((H3+L3)/2);
}
if (sdate != sdate[1] and stime >= S4) or
(sdate == sdate[1] and stime >= S4 and stime[1] < S4) Then
{
T4 = true;
H4 = H;
L4 = L;
}
if (sdate != sdate[1] and stime >= E4) or
(sdate == sdate[1] and stime >= E4 and stime[1] < E4) Then
T4 = False;
if T4 == true then
{
if H > H4 Then
H4 = H;
if L < L4 Then
L4 = L;
}
if H4 > 0 and L4 > 0 Then
{
plot10(H4);
plot11(L4);
plot12((H4+L4)/2);
}
if (sdate != sdate[1] and stime >= S5) or
(sdate == sdate[1] and stime >= S5 and stime[1] < S5) Then
{
T5 = true;
H5 = H;
L5 = L;
}
if (sdate != sdate[1] and stime >= E5) or
(sdate == sdate[1] and stime >= E5 and stime[1] < E5) Then
T5 = False;
if T5 == true then
{
if H > H5 Then
H5 = H;
if L < L5 Then
L5 = L;
}
if H5 > 0 and L5 > 0 Then
{
plot13(H5);
plot14(L5);
plot15((H5+L5)/2);
}
if (sdate != sdate[1] and stime >= S6) or
(sdate == sdate[1] and stime >= S6 and stime[1] < S6) Then
{
T6 = true;
H6 = H;
L6 = L;
}
if (sdate != sdate[1] and stime >= E6) or
(sdate == sdate[1] and stime >= E6 and stime[1] < E6) Then
T6 = False;
if T6 == true then
{
if H > H6 Then
H6 = H;
if L < L6 Then
L6 = L;
}
if H6 > 0 and L6 > 0 Then
{
plot16(H6);
plot17(L6);
plot18((H6+L6)/2);
}
2020-07-20
1531
글번호 140802
지표
답변완료
질문 올립니다.
안녕하세요. 늘 감사드립니다.
MACD를 이용한 매매식 질문 올리고자 합니다.
1.
어제 MACD의 최고값, 최저값의 절대치의 평균을 오늘의 MACD 과매수 과매도 기준으로 해서,
과매수 이탈시 매도, 과매도 돌파시 매수 하는 식 부탁 드립니다.
가령, 어제 MACD 최고값이 30이었고, 최저값이 -25였다면, 최고 최저치의 각각의 절대값의 평균은 27.5이므로,
오늘 MACD가 27.5를 하향 이탈할 때 매도,
오늘 MACD가 -27.5를 상향 돌파할 때 매수.
2.
위와 비슷한 로직입니다만,
현재 시점을 기준으로, 과거 10(외부변수)시간 내(즉, 10간 전 ~ 현재)의 MACD 최고 최저값들의 절대치의 평균을 오늘의 MACD 과매수 과매도 기준선들로 삼아서,
역시
과매수 기준선 하향 이탈시 매도,
과매도 기준선 상향 돌파시 매수
하는 식 부탁드립니다.
감사합니다!
2020-07-20
1442
글번호 140790
시스템