예스스탁
예스스탁 답변
2024-04-11 16:07:58
안녕하세요
예스스탁입니다.
input : 기준시간(091500);
var : sum(0),hh(0),ll(0);
if (sdate != sdate[1] and stime >= 기준시간) or
(sdate == sdate[1] and stime >= 기준시간 and stime[1] < 기준시간) Then
{
sum = 0;
Condition1 = False;
if CurrentTime >= 70000 and CurrentDate == Bdate Then
Condition1 = true;
if CurrentTime <= 70000 and DateToJulian(CurrentDate)-1 == DateToJulian(Bdate) Then
Condition1 = true;
}
if C > O Then
sum = sum+v;
if C < O Then
sum = sum-v;
if (sdate != sdate[1] and stime >= 기준시간) or
(sdate == sdate[1] and stime >= 기준시간 and stime[1] < 기준시간) Then
{
hh = sum;
ll = sum;
}
if sum > hh Then
hh = sum;
if sum < ll Then
ll = sum;
if Condition1 == true Then
{
Plot1(sum,"누적",IFf(sum > 0,RGB(0,0,0),RGB(0,0,0)));
PlotBaseLine1(0);
PlotBaseLine2((50),"PlotBaseLine0+50");
PlotBaseLine3((-50),"PlotBaseLine0-50");
plot2(hh,"당일고점");
plot3(ll,"당일저점");
plot4(hh-(hh-ll)*0.20,"20%");
plot5(hh-(hh-ll)*0.25,"25%");
plot6(hh-(hh-ll)*0.382,"38.2%");
plot7(hh-(hh-ll)*0.500,"50.0%");
plot8(hh-(hh-ll)*0.618,"61.8%");
plot9(hh-(hh-ll)*0.75,"75%");
plot10(hh-(hh-ll)*0.80,"80%");
plot11(hh-(hh-ll)*0.500+50,"+50");
plot12(hh-(hh-ll)*0.500-50,"-50");
plot13(hh-(hh-ll)*0.500+4.5,"50+4.5");
plot14(hh-(hh-ll)*0.500-4.5,"50-4.5");
}
즐거운 하루되세요
> 포보스 님이 쓴 글입니다.
> 제목 : 도움을 요청합니다.
> 안녕하세요?
아래 내용은 항생에 적용하는 수식입니다.
이 수식역시 본장 시작시간부터(09:15) 데이터가 수식에 카운터되고 적용되었으면합니다.
도움주심에 감사드리며 오늘도 좋은시간 되시길 바랍니다.
===================================
var : sum(0),hh(0),ll(0);
if Bdate != Bdate[1] Then
{
sum = 0;
Condition1 = False;
if CurrentTime >= 70000 and CurrentDate == Bdate Then
Condition1 = true;
if CurrentTime <= 70000 and DateToJulian(CurrentDate)-1 == DateToJulian(Bdate) Then
Condition1 = true;
}
if C > O Then
sum = sum+v;
if C < O Then
sum = sum-v;
if Bdate != Bdate[1] Then
{
hh = sum;
ll = sum;
}
if sum > hh Then
hh = sum;
if sum < ll Then
ll = sum;
if Condition1 == true Then
{
Plot1(sum,"누적",IFf(sum > 0,RGB(0,0,0),RGB(0,0,0)));
PlotBaseLine1(0);
PlotBaseLine2((50),"PlotBaseLine0+50");
PlotBaseLine3((-50),"PlotBaseLine0-50");
plot2(hh,"당일고점");
plot3(ll,"당일저점");
plot4(hh-(hh-ll)*0.20,"20%");
plot5(hh-(hh-ll)*0.25,"25%");
plot6(hh-(hh-ll)*0.382,"38.2%");
plot7(hh-(hh-ll)*0.500,"50.0%");
plot8(hh-(hh-ll)*0.618,"61.8%");
plot9(hh-(hh-ll)*0.75,"75%");
plot10(hh-(hh-ll)*0.80,"80%");
plot11(hh-(hh-ll)*0.500+50,"+50");
plot12(hh-(hh-ll)*0.500-50,"-50");
plot13(hh-(hh-ll)*0.500+4.5,"50+4.5");
plot14(hh-(hh-ll)*0.500-4.5,"50-4.5");
}