커뮤니티
문의 드립니다.
2019-09-05 15:36:02
222
글번호 131750
안녕하세요.
아래 지표식을 수정 부탁드립니다.
지표 주기가 1년으로 차트에 표현되도록 수정 부탁드립니다.
개장일 그리고 폐장일을 한 주기로요..
=========ㅡㅡㅡㅡㅡㅡ=========ㅡㅡㅡㅡㅡㅡㅡ========ㅡㅡㅡㅡㅡㅡ
input: p(1);
var: HH(0),LL(0),RR(0);
var : month(0),nday(0),week(0);
month = int(date/100)-int(date/10000)*100;
nday = date - int(date/100)*100;
week = DayOfWeek(date);
if month%12 == 0 and nday >= 8 and nday <= 14 and week == 4 then
Condition1 = True;
Else
Condition1 = false;
if index == 0 or (Condition1 == false and Condition1[1] == true) Then{
HH=H;
LL=L;
}
if H > HH Then
HH = H;
if L < Ll Then
LL = L;
RR=HH-LL;
if P ==1 Then{
plot1(HH,"근월물최고가");
plot19(HH,"근월물최저가");
}
항상 노고와 도움에 감사드립니다.
답변 1
예스스탁 예스스탁 답변
2019-09-05 15:35:17
안녕하세요
예스스탁입니다.
input: p(1);
var: HH(0),LL(0),RR(0);
if bdate > bdate[1]+1000 Then
{
HH=H;
LL=L;
}
if H > HH Then
HH = H;
if L < Ll Then
LL = L;
RR=HH-LL;
if P ==1 Then
{
plot1(HH,"최고가");
plot2(LL,"최저가");
}
즐거운 하루되세요
> 태양같이 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 안녕하세요.
아래 지표식을 수정 부탁드립니다.
지표 주기가 1년으로 차트에 표현되도록 수정 부탁드립니다.
=========ㅡㅡㅡㅡㅡㅡ=========ㅡㅡㅡㅡㅡㅡㅡ========ㅡㅡㅡㅡㅡㅡ
input: p(1);
var: HH(0),LL(0),RR(0);
var : month(0),nday(0),week(0);
month = int(date/100)-int(date/10000)*100;
nday = date - int(date/100)*100;
week = DayOfWeek(date);
if month%12 == 0 and nday >= 8 and nday <= 14 and week == 4 then
Condition1 = True;
Else
Condition1 = false;
if index == 0 or (Condition1 == false and Condition1[1] == true) Then{
HH=H;
LL=L;
}
if H > HH Then
HH = H;
if L < Ll Then
LL = L;
RR=HH-LL;
if P ==1 Then{
plot1(HH,"근월물최고가");
plot19(HH,"근월물최저가");
}
항상 노고와 도움에 감사드립니다.
이전글