커뮤니티
부탁 드립니다.
2017-06-07 19:49:53
144
글번호 110231
도움 주심에 경배의 인사 올립니다.
아래 53525번의 답변하신 수식을
질문1)
해선 분봉에서 당일 계산이 아닌
지정한일자 및 지정한 시간 이후에
계산하는 수식과
질문2)
아래수식을
예를 들어 100봉전에서 현재 까지
계산하는 수식으로 수정 부탁 드리고자 합니다.
53525에서 답변된수식)
var : HV1(0),HV2(0),HV3(0);
var : HH1(0),HH2(0),HH3(0);
var : LL1(0),LL2(0),LL3(0);
if Bdate != Bdate[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition2 = false;
Condition3 = false;
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
Else{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];
}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];
}
if V < HV1 and V < HV2 and V > HV3 Then
HV3 = V;
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if H < HH1 and H < HH2 and H > HH3 Then
HH3 = H;
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1];
}
if L > LL1 and L < LL2 Then{
LL2 = L;
LL3 = LL2[1];
}
if L > LL1 and L > LL2 and L < LL3 Then
LL3 = L;
}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition1 = true;
var11 = H;
}
if Condition1 == true and var11 != HH1 Then
Condition1 = false;
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition2 = true;
var12 = H;
}
if Condition2 == true and var12 != HH2 Then
Condition2 = false;
if HH3 > 0 and H == HH3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition3 = true;
var13 = H;
}
if Condition3 == true and var13 != HH3 Then
Condition3 = false;
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition4 = true;
var21 = L;
}
if Condition4 == true and var21 != LL1 Then
Condition4 = false;
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition5 = true;
var22 = L;
}
if Condition5 == true and var22 != LL2 Then
Condition5 = false;
if LL3 > 0 and L == LL3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition6 = true;
var23 = L;
}
if Condition6 == true and var23 != LL3 Then
Condition6 = false;
if Condition1 == true then{
plot1(var11);
}
if Condition2 == true then{
plot2(var12);
}
if Condition3 == true then{
plot3(var13);
}
if Condition4 == true then{
plot4(var21);
}
if Condition5 == true then{
plot5(var22);
}
if Condition6 == true then{
plot6(var23);
}
답변 3
예스스탁 예스스탁 답변
2017-06-08 10:58:45
안녕하세요
예스스탁입니다.
1.
input : 일자(20170601),시간(120000);
var : HV1(0),HV2(0),HV3(0);
var : HH1(0),HH2(0),HH3(0);
var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition2 = false;
Condition3 = false;
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];
}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];
}
if V < HV1 and V < HV2 and V > HV3 Then
HV3 = V;
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if H < HH1 and H < HH2 and H > HH3 Then
HH3 = H;
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1];
}
if L > LL1 and L < LL2 Then{
LL2 = L;
LL3 = LL2[1];
}
if L > LL1 and L > LL2 and L < LL3 Then
LL3 = L;
}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition1 = true;
var11 = H;
}
if Condition1 == true and var11 != HH1 Then
Condition1 = false;
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition2 = true;
var12 = H;
}
if Condition2 == true and var12 != HH2 Then
Condition2 = false;
if HH3 > 0 and H == HH3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition3 = true;
var13 = H;
}
if Condition3 == true and var13 != HH3 Then
Condition3 = false;
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition4 = true;
var21 = L;
}
if Condition4 == true and var21 != LL1 Then
Condition4 = false;
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition5 = true;
var22 = L;
}
if Condition5 == true and var22 != LL2 Then
Condition5 = false;
if LL3 > 0 and L == LL3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition6 = true;
var23 = L;
}
if Condition6 == true and var23 != LL3 Then
Condition6 = false;
if Condition1 == true then{
plot1(var11);
}
if Condition2 == true then{
plot2(var12);
}
if Condition3 == true then{
plot3(var13);
}
if Condition4 == true then{
plot4(var21);
}
if Condition5 == true then{
plot5(var22);
}
if Condition6 == true then{
plot6(var23);
}
2
문의하신 내용은 해당 내용을 어떻게 변경해 드려야 할지 모르겠습니다.
도움을 드리지 못해 죄송합니다.
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 도움 주심에 경배의 인사 올립니다.
아래 53525번의 답변하신 수식을
질문1)
해선 분봉에서 당일 계산이 아닌
지정한일자 및 지정한 시간 이후에
계산하는 수식과
질문2)
아래수식을
예를 들어 100봉전에서 현재 까지
계산하는 수식으로 수정 부탁 드리고자 합니다.
53525에서 답변된수식)
var : HV1(0),HV2(0),HV3(0);
var : HH1(0),HH2(0),HH3(0);
var : LL1(0),LL2(0),LL3(0);
if Bdate != Bdate[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition2 = false;
Condition3 = false;
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
Else{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];
}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];
}
if V < HV1 and V < HV2 and V > HV3 Then
HV3 = V;
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if H < HH1 and H < HH2 and H > HH3 Then
HH3 = H;
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1];
}
if L > LL1 and L < LL2 Then{
LL2 = L;
LL3 = LL2[1];
}
if L > LL1 and L > LL2 and L < LL3 Then
LL3 = L;
}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition1 = true;
var11 = H;
}
if Condition1 == true and var11 != HH1 Then
Condition1 = false;
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition2 = true;
var12 = H;
}
if Condition2 == true and var12 != HH2 Then
Condition2 = false;
if HH3 > 0 and H == HH3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition3 = true;
var13 = H;
}
if Condition3 == true and var13 != HH3 Then
Condition3 = false;
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition4 = true;
var21 = L;
}
if Condition4 == true and var21 != LL1 Then
Condition4 = false;
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition5 = true;
var22 = L;
}
if Condition5 == true and var22 != LL2 Then
Condition5 = false;
if LL3 > 0 and L == LL3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition6 = true;
var23 = L;
}
if Condition6 == true and var23 != LL3 Then
Condition6 = false;
if Condition1 == true then{
plot1(var11);
}
if Condition2 == true then{
plot2(var12);
}
if Condition3 == true then{
plot3(var13);
}
if Condition4 == true then{
plot4(var21);
}
if Condition5 == true then{
plot5(var22);
}
if Condition6 == true then{
plot6(var23);
}
yes
2017-06-08 13:29:19
노고에 경배로 감사 드립니다.
질문2를 다음과 같이 조건을 하면 될듯싶어
다시 문의 드립니다.
input:p100(100);
var1=highest(v[1],p100);
var2=nthhighest(2,v[1],p100);
var3=nthhighest(3,v[1],p100);
var11=highest(h[1],p100);
var12=nthhighest(2,h[1],p100);
var13=nthhighest(3,h[1],p100);
var21=lowest(L[1],P100);
VAR22=NTHLOWEST(2,L[1],P100);
VAR23=NTHLOWEST(3,L[1],P100);
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 부탁 드립니다.
> 안녕하세요
예스스탁입니다.
1.
input : 일자(20170601),시간(120000);
var : HV1(0),HV2(0),HV3(0);
var : HH1(0),HH2(0),HH3(0);
var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition2 = false;
Condition3 = false;
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];
}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];
}
if V < HV1 and V < HV2 and V > HV3 Then
HV3 = V;
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if H < HH1 and H < HH2 and H > HH3 Then
HH3 = H;
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1];
}
if L > LL1 and L < LL2 Then{
LL2 = L;
LL3 = LL2[1];
}
if L > LL1 and L > LL2 and L < LL3 Then
LL3 = L;
}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition1 = true;
var11 = H;
}
if Condition1 == true and var11 != HH1 Then
Condition1 = false;
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition2 = true;
var12 = H;
}
if Condition2 == true and var12 != HH2 Then
Condition2 = false;
if HH3 > 0 and H == HH3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition3 = true;
var13 = H;
}
if Condition3 == true and var13 != HH3 Then
Condition3 = false;
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition4 = true;
var21 = L;
}
if Condition4 == true and var21 != LL1 Then
Condition4 = false;
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition5 = true;
var22 = L;
}
if Condition5 == true and var22 != LL2 Then
Condition5 = false;
if LL3 > 0 and L == LL3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition6 = true;
var23 = L;
}
if Condition6 == true and var23 != LL3 Then
Condition6 = false;
if Condition1 == true then{
plot1(var11);
}
if Condition2 == true then{
plot2(var12);
}
if Condition3 == true then{
plot3(var13);
}
if Condition4 == true then{
plot4(var21);
}
if Condition5 == true then{
plot5(var22);
}
if Condition6 == true then{
plot6(var23);
}
2
문의하신 내용은 해당 내용을 어떻게 변경해 드려야 할지 모르겠습니다.
도움을 드리지 못해 죄송합니다.
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 도움 주심에 경배의 인사 올립니다.
아래 53525번의 답변하신 수식을
질문1)
해선 분봉에서 당일 계산이 아닌
지정한일자 및 지정한 시간 이후에
계산하는 수식과
질문2)
아래수식을
예를 들어 100봉전에서 현재 까지
계산하는 수식으로 수정 부탁 드리고자 합니다.
53525에서 답변된수식)
var : HV1(0),HV2(0),HV3(0);
var : HH1(0),HH2(0),HH3(0);
var : LL1(0),LL2(0),LL3(0);
if Bdate != Bdate[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition2 = false;
Condition3 = false;
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
Else{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];
}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];
}
if V < HV1 and V < HV2 and V > HV3 Then
HV3 = V;
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if H < HH1 and H < HH2 and H > HH3 Then
HH3 = H;
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1];
}
if L > LL1 and L < LL2 Then{
LL2 = L;
LL3 = LL2[1];
}
if L > LL1 and L > LL2 and L < LL3 Then
LL3 = L;
}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition1 = true;
var11 = H;
}
if Condition1 == true and var11 != HH1 Then
Condition1 = false;
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition2 = true;
var12 = H;
}
if Condition2 == true and var12 != HH2 Then
Condition2 = false;
if HH3 > 0 and H == HH3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition3 = true;
var13 = H;
}
if Condition3 == true and var13 != HH3 Then
Condition3 = false;
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition4 = true;
var21 = L;
}
if Condition4 == true and var21 != LL1 Then
Condition4 = false;
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition5 = true;
var22 = L;
}
if Condition5 == true and var22 != LL2 Then
Condition5 = false;
if LL3 > 0 and L == LL3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition6 = true;
var23 = L;
}
if Condition6 == true and var23 != LL3 Then
Condition6 = false;
if Condition1 == true then{
plot1(var11);
}
if Condition2 == true then{
plot2(var12);
}
if Condition3 == true then{
plot3(var13);
}
if Condition4 == true then{
plot4(var21);
}
if Condition5 == true then{
plot5(var22);
}
if Condition6 == true then{
plot6(var23);
}
예스스탁 예스스탁 답변
2017-06-08 16:27:53
안녕하세요
예스스탁입니다.
input : p100(100);
var : HV1(0),HV2(0),HV3(0);
var : HH1(0),HH2(0),HH3(0);
var : LL1(0),LL2(0),LL3(0);
HV1 = NthHighest(1,v,p100);
HV2 = nthhighest(2,v,p100);
HV3 = nthhighest(3,v,p100);
HH1=NthHighest(1,h,p100);
HH2=nthhighest(2,h,p100);
HH3=nthhighest(3,h,p100);
LL1=NthLowest(1,L,P100);
LL2=NTHLOWEST(2,L,P100);
LL3=NTHLOWEST(3,L,P100);
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition1 = true;
var11 = H;
}
if Condition1 == true and var11 != HH1 Then
Condition1 = false;
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition2 = true;
var12 = H;
}
if Condition2 == true and var12 != HH2 Then
Condition2 = false;
if HH3 > 0 and H == HH3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition3 = true;
var13 = H;
}
if Condition3 == true and var13 != HH3 Then
Condition3 = false;
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition4 = true;
var21 = L;
}
if Condition4 == true and var21 != LL1 Then
Condition4 = false;
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition5 = true;
var22 = L;
}
if Condition5 == true and var22 != LL2 Then
Condition5 = false;
if LL3 > 0 and L == LL3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition6 = true;
var23 = L;
}
if Condition6 == true and var23 != LL3 Then
Condition6 = false;
if Condition1 == true then{
plot1(var11);
}
if Condition2 == true then{
plot2(var12);
}
if Condition3 == true then{
plot3(var13);
}
if Condition4 == true then{
plot4(var21);
}
if Condition5 == true then{
plot5(var22);
}
if Condition6 == true then{
plot6(var23);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : Re : Re : 부탁 드립니다.
> 노고에 경배로 감사 드립니다.
질문2를 다음과 같이 조건을 하면 될듯싶어
다시 문의 드립니다.
input:p100(100);
var1=highest(v[1],p100);
var2=nthhighest(2,v[1],p100);
var3=nthhighest(3,v[1],p100);
var11=highest(h[1],p100);
var12=nthhighest(2,h[1],p100);
var13=nthhighest(3,h[1],p100);
var21=lowest(L[1],P100);
VAR22=NTHLOWEST(2,L[1],P100);
VAR23=NTHLOWEST(3,L[1],P100);
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 부탁 드립니다.
> 안녕하세요
예스스탁입니다.
1.
input : 일자(20170601),시간(120000);
var : HV1(0),HV2(0),HV3(0);
var : HH1(0),HH2(0),HH3(0);
var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition2 = false;
Condition3 = false;
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];
}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];
}
if V < HV1 and V < HV2 and V > HV3 Then
HV3 = V;
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if H < HH1 and H < HH2 and H > HH3 Then
HH3 = H;
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1];
}
if L > LL1 and L < LL2 Then{
LL2 = L;
LL3 = LL2[1];
}
if L > LL1 and L > LL2 and L < LL3 Then
LL3 = L;
}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition1 = true;
var11 = H;
}
if Condition1 == true and var11 != HH1 Then
Condition1 = false;
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition2 = true;
var12 = H;
}
if Condition2 == true and var12 != HH2 Then
Condition2 = false;
if HH3 > 0 and H == HH3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition3 = true;
var13 = H;
}
if Condition3 == true and var13 != HH3 Then
Condition3 = false;
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition4 = true;
var21 = L;
}
if Condition4 == true and var21 != LL1 Then
Condition4 = false;
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition5 = true;
var22 = L;
}
if Condition5 == true and var22 != LL2 Then
Condition5 = false;
if LL3 > 0 and L == LL3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition6 = true;
var23 = L;
}
if Condition6 == true and var23 != LL3 Then
Condition6 = false;
if Condition1 == true then{
plot1(var11);
}
if Condition2 == true then{
plot2(var12);
}
if Condition3 == true then{
plot3(var13);
}
if Condition4 == true then{
plot4(var21);
}
if Condition5 == true then{
plot5(var22);
}
if Condition6 == true then{
plot6(var23);
}
2
문의하신 내용은 해당 내용을 어떻게 변경해 드려야 할지 모르겠습니다.
도움을 드리지 못해 죄송합니다.
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 도움 주심에 경배의 인사 올립니다.
아래 53525번의 답변하신 수식을
질문1)
해선 분봉에서 당일 계산이 아닌
지정한일자 및 지정한 시간 이후에
계산하는 수식과
질문2)
아래수식을
예를 들어 100봉전에서 현재 까지
계산하는 수식으로 수정 부탁 드리고자 합니다.
53525에서 답변된수식)
var : HV1(0),HV2(0),HV3(0);
var : HH1(0),HH2(0),HH3(0);
var : LL1(0),LL2(0),LL3(0);
if Bdate != Bdate[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition2 = false;
Condition3 = false;
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
Else{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];
}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];
}
if V < HV1 and V < HV2 and V > HV3 Then
HV3 = V;
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if H < HH1 and H < HH2 and H > HH3 Then
HH3 = H;
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1];
}
if L > LL1 and L < LL2 Then{
LL2 = L;
LL3 = LL2[1];
}
if L > LL1 and L > LL2 and L < LL3 Then
LL3 = L;
}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition1 = true;
var11 = H;
}
if Condition1 == true and var11 != HH1 Then
Condition1 = false;
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition2 = true;
var12 = H;
}
if Condition2 == true and var12 != HH2 Then
Condition2 = false;
if HH3 > 0 and H == HH3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition3 = true;
var13 = H;
}
if Condition3 == true and var13 != HH3 Then
Condition3 = false;
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition4 = true;
var21 = L;
}
if Condition4 == true and var21 != LL1 Then
Condition4 = false;
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition5 = true;
var22 = L;
}
if Condition5 == true and var22 != LL2 Then
Condition5 = false;
if LL3 > 0 and L == LL3 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
Condition6 = true;
var23 = L;
}
if Condition6 == true and var23 != LL3 Then
Condition6 = false;
if Condition1 == true then{
plot1(var11);
}
if Condition2 == true then{
plot2(var12);
}
if Condition3 == true then{
plot3(var13);
}
if Condition4 == true then{
plot4(var21);
}
if Condition5 == true then{
plot5(var22);
}
if Condition6 == true then{
plot6(var23);
}
다음글
이전글