커뮤니티
피보나치 자동시간설정
2019-01-11 09:48:50
267
글번호 125158
input : 시작날짜(2019010),시작시간(090000);
input : 끝날짜(20190111),끝시간(154500);
이것으로 피보나치선을 자동으로 그리고 싶습니다
1.고가에서 저가 피보나치
2.저가에서 고가 피보나치
둘다 부탁드립니다
답변 1
예스스탁 예스스탁 답변
2019-01-11 14:37:13
안녕하세요
예스스탁입니다.
1
input : 시작날짜(20190110),시작시간(090000);
input : 끝날짜(20190111),끝시간(154500);
input : per1(23.6),per2(38.2),per3(50.0),per4(61.8),per5(76.4),per6(100.0),per7(138.2),per8(150.0),per9(161.8);
var : Tcond(false),HH(0),LL(0);
if sdate == 시작날짜 and
((sdate != sdate[1] and stime >= 시작시간) or
(sdate == sdate[1] and stime >= 시작시간 and stime[1] < 시작시간)) Then
{
Tcond = true;
HH = h;
LL = L;
}
if sdate == 끝날짜 and
((sdate != sdate[1] and stime >= 끝시간) or
(sdate == sdate[1] and stime >= 끝시간 and stime[1] < 끝시간)) Then
{
Tcond = false;
}
if Tcond == true then
{
if H > HH Then
HH = h;
if L < LL Then
LL = L;
}
if HH > 0 and LL > 0 then
{
plot1(HH);
plot2(HH-(HH-LL)*(per1/100));
plot3(HH-(HH-LL)*(per2/100));
plot4(HH-(HH-LL)*(per3/100));
plot5(HH-(HH-LL)*(per4/100));
plot6(HH-(HH-LL)*(per5/100));
plot7(HH-(HH-LL)*(per6/100));
plot8(HH-(HH-LL)*(per7/100));
plot9(HH-(HH-LL)*(per8/100));
plot10(HH-(HH-LL)*(per9/100));
}
2
input : 시작날짜(20190110),시작시간(090000);
input : 끝날짜(20190111),끝시간(154500);
input : per1(23.6),per2(38.2),per3(50.0),per4(61.8),per5(76.4),per6(100.0),per7(138.2),per8(150.0),per9(161.8);
var : Tcond(false),HH(0),LL(0);
if sdate == 시작날짜 and
((sdate != sdate[1] and stime >= 시작시간) or
(sdate == sdate[1] and stime >= 시작시간 and stime[1] < 시작시간)) Then
{
Tcond = true;
HH = h;
LL = L;
}
if sdate == 끝날짜 and
((sdate != sdate[1] and stime >= 끝시간) or
(sdate == sdate[1] and stime >= 끝시간 and stime[1] < 끝시간)) Then
{
Tcond = false;
}
if Tcond == true then
{
if H > HH Then
HH = h;
if L < LL Then
LL = L;
}
if HH > 0 and LL > 0 then
{
plot1(LL);
plot2(LL+(HH-LL)*(per1/100));
plot3(LL+(HH-LL)*(per2/100));
plot4(LL+(HH-LL)*(per3/100));
plot5(LL+(HH-LL)*(per4/100));
plot6(LL+(HH-LL)*(per5/100));
plot7(LL+(HH-LL)*(per6/100));
plot8(LL+(HH-LL)*(per7/100));
plot9(LL+(HH-LL)*(per8/100));
plot10(LL+(HH-LL)*(per9/100));
}
즐거운 하루되세요
> 마르뚝 님이 쓴 글입니다.
> 제목 : 피보나치 자동시간설정
> input : 시작날짜(2019010),시작시간(090000);
input : 끝날짜(20190111),끝시간(154500);
이것으로 피보나치선을 자동으로 그리고 싶습니다
1.고가에서 저가 피보나치
2.저가에서 고가 피보나치
둘다 부탁드립니다
다음글
이전글