커뮤니티
문의드립니다.
2014-01-22 15:08:19
124
글번호 71744
아래 2가지 식을 합쳤으면 합니다.
2번에서 나온 값으로 아래 1번 비율식에 적용하였으면 합니다.
예를 들면, 아래 나온 값이 0.5, 2.0이라면, 1번 비율식의 Dayhigh() 자리에 2.0이 표시되고, Daylow() 자리에는 0.5가 표시되면 됩니다.
1. 비율식
Value1 = Dayhigh();
Value2 = Daylow();
Plot1(Value1,"고가");
Plot2(Value2,"저가");
Plot3((Value1+Value2)2/,"평균");
2. 옵션의 최저최고값
var : nday(0),week(0),HH(0),LL(0),PreHH(0),PreLL(0);
nday = date - int(date/100)*100;
week = DayOfWeek(date);
if 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 date != date[1] Then{
PreHH = HH[1];
PreLL = LL[1];
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
plot1(PreHH);
plot2(PreLL);
답변 1
예스스탁 예스스탁 답변
2014-01-22 16:23:28
안녕하세요
예스스탁입니다.
var : nday(0),week(0),HH(0),LL(0),PreHH(0),PreLL(0);
nday = date - int(date/100)*100;
week = DayOfWeek(date);
if 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 date != date[1] Then{
PreHH = HH[1];
PreLL = LL[1];
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
Value1 = PreHH;
Value2 = PreLL;
Plot1(Value1,"고가");
Plot2(Value2,"저가");
Plot3((Value1+Value2)/2,"평균");
즐거운 하루되세요
> 애널박 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 아래 2가지 식을 합쳤으면 합니다.
2번에서 나온 값으로 아래 1번 비율식에 적용하였으면 합니다.
예를 들면, 아래 나온 값이 0.5, 2.0이라면, 1번 비율식의 Dayhigh() 자리에 2.0이 표시되고, Daylow() 자리에는 0.5가 표시되면 됩니다.
1. 비율식
Value1 = Dayhigh();
Value2 = Daylow();
Plot1(Value1,"고가");
Plot2(Value2,"저가");
Plot3((Value1+Value2)2/,"평균");
2. 옵션의 최저최고값
var : nday(0),week(0),HH(0),LL(0),PreHH(0),PreLL(0);
nday = date - int(date/100)*100;
week = DayOfWeek(date);
if 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 date != date[1] Then{
PreHH = HH[1];
PreLL = LL[1];
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
plot1(PreHH);
plot2(PreLL);