커뮤니티
수정~~
2012-10-08 20:33:35
235
글번호 55427
#############################
if date > date[1]+30 Then{
value1 = H;
value2 = L;
value11 = value1[1];
value12 = value2[1];
value21 = value11[1];
value22 = value12[1];
value31 = value21[1];
value32 = value22[1];
value41 = value31[1];
value42 = value32[1];
}
if H > value1 Then
value1 = h;
if L < value2 Then
value2 = L;
plot1(value11,"1개월전h");
plot2(value12,"1개월전l");
plot3(value21,"2개월전h");
plot4(value22,"2개월전l");
plot5(value31,"3개월전h");
plot6(value32,"3개월전l");
plot7(value41,"4개월전h");
plot8(value42,"4개월전l");
###########################
수정 감사드립니다~~
근데 현재 공식은 전체에 다 그려져서 보기가 어려운데
당월에만 선그리기 공식으로 부탁드립니다...
예)일봉공식
if CurrentDate == sdate Then{
plot1(dayhigh(2));
plot2(daylow(2));
plot3(dayhigh(3));
plot4(daylow(3));
plot5(dayhigh(4));
plot6(DayLow(4));
}
일봉에 적용한 CurrentDate == sdate 공식처럼 당해년도에만 선그리기로 해주세요
수고하세요~~~~
답변 1
예스스탁 예스스탁 답변
2012-10-09 14:10:43
안녕하세요
예스스탁입니다.
1. 당월에만 그리기
var1 = round(sdate/100,0);
var2 = round(currentdate/100,0);
if date > date[1]+30 Then{
value1 = H;
value2 = L;
value11 = value1[1];
value12 = value2[1];
value21 = value11[1];
value22 = value12[1];
value31 = value21[1];
value32 = value22[1];
value41 = value31[1];
value42 = value32[1];
}
if H > value1 Then
value1 = h;
if L < value2 Then
value2 = L;
if var1 >= var2 Then{
plot1(value11,"1개월전h");
plot2(value12,"1개월전l");
plot3(value21,"2개월전h");
plot4(value22,"2개월전l");
plot5(value31,"3개월전h");
plot6(value32,"3개월전l");
plot7(value41,"4개월전h");
plot8(value42,"4개월전l");
}
2, 당해년도만 그리기
var1 = round(sdate/10000,0);
var2 = round(currentdate/10000,0);
if date > date[1]+30 Then{
value1 = H;
value2 = L;
value11 = value1[1];
value12 = value2[1];
value21 = value11[1];
value22 = value12[1];
value31 = value21[1];
value32 = value22[1];
value41 = value31[1];
value42 = value32[1];
}
if H > value1 Then
value1 = h;
if L < value2 Then
value2 = L;
if var1 >= var2 Then{
plot1(value11,"1개월전h");
plot2(value12,"1개월전l");
plot3(value21,"2개월전h");
plot4(value22,"2개월전l");
plot5(value31,"3개월전h");
plot6(value32,"3개월전l");
plot7(value41,"4개월전h");
plot8(value42,"4개월전l");
}
즐거운 하루되세요
> 공기단축 님이 쓴 글입니다.
> 제목 : 수정~~
> #############################
if date > date[1]+30 Then{
value1 = H;
value2 = L;
value11 = value1[1];
value12 = value2[1];
value21 = value11[1];
value22 = value12[1];
value31 = value21[1];
value32 = value22[1];
value41 = value31[1];
value42 = value32[1];
}
if H > value1 Then
value1 = h;
if L < value2 Then
value2 = L;
plot1(value11,"1개월전h");
plot2(value12,"1개월전l");
plot3(value21,"2개월전h");
plot4(value22,"2개월전l");
plot5(value31,"3개월전h");
plot6(value32,"3개월전l");
plot7(value41,"4개월전h");
plot8(value42,"4개월전l");
###########################
수정 감사드립니다~~
근데 현재 공식은 전체에 다 그려져서 보기가 어려운데
당월에만 선그리기 공식으로 부탁드립니다...
예)일봉공식
if CurrentDate == sdate Then{
plot1(dayhigh(2));
plot2(daylow(2));
plot3(dayhigh(3));
plot4(daylow(3));
plot5(dayhigh(4));
plot6(DayLow(4));
}
일봉에 적용한 CurrentDate == sdate 공식처럼 당해년도에만 선그리기로 해주세요
수고하세요~~~~