커뮤니티
please check
2016-01-27 12:59:27
109
글번호 94828
please check attaschment.
always thank you.
답변 1
예스스탁 예스스탁 답변
2016-01-27 11:02:23
안녕하세요
예스스탁입니다.
1.
var : a1(0,data1),a2(0,data1),a3(0,data1),a4(0,data1),a5(0,data1);
var : b1(0,data1),b2(0,data1),b3(0,data1),b4(0,data1),b5(0,data1);
var : V1(0,data1),V2(0,data1),V3(0,data1),v4(0,data1);
a1 = data2(H)+data3(L);
a2 = data4(H)+data5(L);
a3 = data6(H)+data7(L);
a4 = data8(H)+data9(L);
a5 = data10(H)+data11(L);
if a1 == min(a1,a2,a3,a4,a5) Then{
V1 = data2(H);
V2 = data3(L);
}
if a2 == min(a1,a2,a3,a4,a5) Then{
V1 = data4(H);
V2 = data5(L);
}
if a3 == min(a1,a2,a3,a4,a5) Then{
V1 = data6(H);
V2 = data7(L);
}
if a4 == min(a1,a2,a3,a4,a5) Then{
V1 = data8(H);
V2 = data9(L);
}
if a5 == min(a1,a2,a3,a4,a5) Then{
V1 = data10(H);
V2 = data11(L);
}
b1 = data2(LowD(0))+data3(highD(0));
b2 = data4(LowD(0))+data5(highD(0));
b3 = data6(LowD(0))+data7(highD(0));
b4 = data8(LowD(0))+data9(highD(0));
b5 = data10(LowD(0))+data11(highD(0));
if b1 == min(b1,b2,b3,b4,b5) Then{
V3 = data2(LowD(0));
V4 = data3(highD(0));
}
if b2 == min(b1,b2,b3,b4,b5) Then{
V3 = data4(LowD(0));
V4 = data5(highD(0));
}
if b3 == min(b1,b2,b3,b4,b5) Then{
V3 = data6(LowD(0));
V4 = data7(highD(0));
}
if b4 == min(b1,b2,b3,b4,b5) Then{
V3 = data8(LowD(0));
V4 = data9(highD(0));
}
if b5 == min(b1,b2,b3,b4,b5) Then{
V3 = data10(LowD(0));
V4 = data11(highD(0));
}
plot1(v1);
plot2(v2);
plot3(v3);
plot4(v4);
2
input : N(3);
var : a1(0,data1),a2(0,data1),a3(0,data1),a4(0,data1),a5(0,data1);
var : b1(0,data1),b2(0,data1),b3(0,data1),b4(0,data1),b5(0,data1);
var : V1(0,data1),V2(0,data1),V3(0,data1),v4(0,data1);
a1 = data2(H)+data3(L);
a2 = data4(H)+data5(L);
a3 = data6(H)+data7(L);
a4 = data8(H)+data9(L);
a5 = data10(H)+data11(L);
if a1 == min(a1,a2,a3,a4,a5) Then{
V1 = data2(H);
V2 = data3(L);
}
if a2 == min(a1,a2,a3,a4,a5) Then{
V1 = data4(H);
V2 = data5(L);
}
if a3 == min(a1,a2,a3,a4,a5) Then{
V1 = data6(H);
V2 = data7(L);
}
if a4 == min(a1,a2,a3,a4,a5) Then{
V1 = data8(H);
V2 = data9(L);
}
if a5 == min(a1,a2,a3,a4,a5) Then{
V1 = data10(H);
V2 = data11(L);
}
b1 = data2(LowD(0))+data3(highD(0));
b2 = data4(LowD(0))+data5(highD(0));
b3 = data6(LowD(0))+data7(highD(0));
b4 = data8(LowD(0))+data9(highD(0));
b5 = data10(LowD(0))+data11(highD(0));
if b1 == min(b1,b2,b3,b4,b5) Then{
V3 = data2(LowD(0));
V4 = data3(highD(0));
}
if b2 == min(b1,b2,b3,b4,b5) Then{
V3 = data4(LowD(0));
V4 = data5(highD(0));
}
if b3 == min(b1,b2,b3,b4,b5) Then{
V3 = data6(LowD(0));
V4 = data7(highD(0));
}
if b4 == min(b1,b2,b3,b4,b5) Then{
V3 = data8(LowD(0));
V4 = data9(highD(0));
}
if b5 == min(b1,b2,b3,b4,b5) Then{
V3 = data10(LowD(0));
V4 = data11(highD(0));
}
if (data2(H) >= V1-data2(PriceScale*N) and data2(H[1]) < V1[1]-data2(PriceScale*N)) Or
(data2(H) >= V2-data2(PriceScale*N) and data2(H[1]) < V2[1]-data2(PriceScale*N)) Or
(data2(H) >= V3-data2(PriceScale*N) and data2(H[1]) < V3[1]-data2(PriceScale*N)) Or
(data2(H) >= V4-data2(PriceScale*N) and data2(H[1]) < V4[1]-data2(PriceScale*N)) Or
(data4(H) >= V1-data4(PriceScale*N) and data4(H[1]) < V1[1]-data4(PriceScale*N)) Or
(data4(H) >= V2-data4(PriceScale*N) and data4(H[1]) < V2[1]-data4(PriceScale*N)) Or
(data4(H) >= V3-data4(PriceScale*N) and data4(H[1]) < V3[1]-data4(PriceScale*N)) Or
(data4(H) >= V4-data4(PriceScale*N) and data4(H[1]) < V4[1]-data4(PriceScale*N)) Or
(data6(H) >= V1-data6(PriceScale*N) and data6(H[1]) < V1[1]-data6(PriceScale*N)) Or
(data6(H) >= V2-data6(PriceScale*N) and data6(H[1]) < V2[1]-data6(PriceScale*N)) Or
(data6(H) >= V3-data6(PriceScale*N) and data6(H[1]) < V3[1]-data6(PriceScale*N)) Or
(data6(H) >= V4-data6(PriceScale*N) and data6(H[1]) < V4[1]-data6(PriceScale*N)) Or
(data8(H) >= V1-data8(PriceScale*N) and data8(H[1]) < V1[1]-data8(PriceScale*N)) Or
(data8(H) >= V2-data8(PriceScale*N) and data8(H[1]) < V2[1]-data8(PriceScale*N)) Or
(data8(H) >= V3-data8(PriceScale*N) and data8(H[1]) < V3[1]-data8(PriceScale*N)) Or
(data8(H) >= V4-data8(PriceScale*N) and data8(H[1]) < V4[1]-data8(PriceScale*N)) Or
(data10(H) >= V1-data10(PriceScale*N) and data10(H[1]) < V1[1]-data10(PriceScale*N)) or
(data10(H) >= V2-data10(PriceScale*N) and data10(H[1]) < V2[1]-data10(PriceScale*N)) or
(data10(H) >= V3-data10(PriceScale*N) and data10(H[1]) < V3[1]-data10(PriceScale*N)) or
(data10(H) >= V4-data10(PriceScale*N) and data10(H[1]) < V4[1]-data10(PriceScale*N))
Then
buy();
if (data2(L) <= V1+data2(PriceScale*N) and data2(L[1]) > V1[1]+data2(PriceScale*N)) Or
(data2(L) <= V2+data2(PriceScale*N) and data2(L[1]) > V2[1]+data2(PriceScale*N)) Or
(data2(L) <= V3+data2(PriceScale*N) and data2(L[1]) > V3[1]+data2(PriceScale*N)) Or
(data2(L) <= V4+data2(PriceScale*N) and data2(L[1]) > V4[1]+data2(PriceScale*N)) Or
(data4(L) <= V1+data4(PriceScale*N) and data4(L[1]) > V1[1]+data4(PriceScale*N)) Or
(data4(L) <= V2+data4(PriceScale*N) and data4(L[1]) > V2[1]+data4(PriceScale*N)) Or
(data4(L) <= V3+data4(PriceScale*N) and data4(L[1]) > V3[1]+data4(PriceScale*N)) Or
(data4(L) <= V4+data4(PriceScale*N) and data4(L[1]) > V4[1]+data4(PriceScale*N)) Or
(data6(L) <= V1+data6(PriceScale*N) and data6(L[1]) > V1[1]+data6(PriceScale*N)) Or
(data6(L) <= V2+data6(PriceScale*N) and data6(L[1]) > V2[1]+data6(PriceScale*N)) Or
(data6(L) <= V3+data6(PriceScale*N) and data6(L[1]) > V3[1]+data6(PriceScale*N)) Or
(data6(L) <= V4+data6(PriceScale*N) and data6(L[1]) > V4[1]+data6(PriceScale*N)) Or
(data8(L) <= V1+data8(PriceScale*N) and data8(L[1]) > V1[1]+data8(PriceScale*N)) Or
(data8(L) <= V2+data8(PriceScale*N) and data8(L[1]) > V2[1]+data8(PriceScale*N)) Or
(data8(L) <= V3+data8(PriceScale*N) and data8(L[1]) > V3[1]+data8(PriceScale*N)) Or
(data8(L) <= V4+data8(PriceScale*N) and data8(L[1]) > V4[1]+data8(PriceScale*N)) Or
(data10(L) <= V1+data10(PriceScale*N) and data10(L[1]) > V1[1]+data10(PriceScale*N)) or
(data10(L) <= V2+data10(PriceScale*N) and data10(L[1]) > V2[1]+data10(PriceScale*N)) or
(data10(L) <= V3+data10(PriceScale*N) and data10(L[1]) > V3[1]+data10(PriceScale*N)) or
(data10(L) <= V4+data10(PriceScale*N) and data10(L[1]) > V4[1]+data10(PriceScale*N))
Then
sell();
if (data2(H) > v1 and data2(c) > v1) or
(data2(H) > v2 and data2(c) > v2) or
(data2(H) > v3 and data2(c) > v3) or
(data2(H) > v4 and data2(c) > v4) or
(data4(H) > v1 and data4(c) > v1) or
(data4(H) > v2 and data4(c) > v2) or
(data4(H) > v3 and data4(c) > v3) or
(data4(H) > v4 and data4(c) > v4) or
(data6(H) > v1 and data6(c) > v1) or
(data6(H) > v2 and data6(c) > v2) or
(data6(H) > v3 and data6(c) > v3) or
(data6(H) > v4 and data6(c) > v4) or
(data8(H) > v1 and data8(c) > v1) or
(data8(H) > v2 and data8(c) > v2) or
(data8(H) > v3 and data8(c) > v3) or
(data8(H) > v4 and data8(c) > v4) or
(data10(H) > v1 and data10(c) > v1) or
(data10(H) > v2 and data10(c) > v2) or
(data10(H) > v3 and data10(c) > v3) or
(data10(H) > v4 and data10(c) > v4)
Then
sell();
if (data2(L) < v1 and data2(c) < v1) or
(data2(L) < v2 and data2(c) < v2) or
(data2(L) < v3 and data2(c) < v3) or
(data2(L) < v4 and data2(c) < v4) or
(data4(L) < v1 and data4(c) < v1) or
(data4(L) < v2 and data4(c) < v2) or
(data4(L) < v3 and data4(c) < v3) or
(data4(L) < v4 and data4(c) < v4) or
(data6(L) < v1 and data6(c) < v1) or
(data6(L) < v2 and data6(c) < v2) or
(data6(L) < v3 and data6(c) < v3) or
(data6(L) < v4 and data6(c) < v4) or
(data8(L) < v1 and data8(c) < v1) or
(data8(L) < v2 and data8(c) < v2) or
(data8(L) < v3 and data8(c) < v3) or
(data8(L) < v4 and data8(c) < v4) or
(data10(L) < v1 and data10(c) < v1) or
(data10(L) < v2 and data10(c) < v2) or
(data10(L) < v3 and data10(c) < v3) or
(data10(L) < v4 and data10(c) < v4)
Then
buy();
if (data2(H) > v1 and data2(c) < v1) or
(data2(H) > v2 and data2(c) < v2) or
(data2(H) > v3 and data2(c) < v3) or
(data2(H) > v4 and data2(c) < v4) or
(data4(H) > v1 and data4(c) < v1) or
(data4(H) > v2 and data4(c) < v2) or
(data4(H) > v3 and data4(c) < v3) or
(data4(H) > v4 and data4(c) < v4) or
(data6(H) > v1 and data6(c) < v1) or
(data6(H) > v2 and data6(c) < v2) or
(data6(H) > v3 and data6(c) < v3) or
(data6(H) > v4 and data6(c) < v4) or
(data8(H) > v1 and data8(c) < v1) or
(data8(H) > v2 and data8(c) < v2) or
(data8(H) > v3 and data8(c) < v3) or
(data8(H) > v4 and data8(c) < v4) or
(data10(H) > v1 and data10(c) < v1) or
(data10(H) > v2 and data10(c) < v2) or
(data10(H) > v3 and data10(c) < v3) or
(data10(H) > v4 and data10(c) < v4)
Then
buy();
if (data2(H) < v1 and data2(c) > v1) or
(data2(L) < v2 and data2(c) > v2) or
(data2(L) < v3 and data2(c) > v3) or
(data2(L) < v4 and data2(c) > v4) or
(data4(L) < v1 and data4(c) > v1) or
(data4(L) < v2 and data4(c) > v2) or
(data4(L) < v3 and data4(c) > v3) or
(data4(L) < v4 and data4(c) > v4) or
(data6(L) < v1 and data6(c) > v1) or
(data6(L) < v2 and data6(c) > v2) or
(data6(L) < v3 and data6(c) > v3) or
(data6(L) < v4 and data6(c) > v4) or
(data8(L) < v1 and data8(c) > v1) or
(data8(L) < v2 and data8(c) > v2) or
(data8(L) < v3 and data8(c) > v3) or
(data8(L) < v4 and data8(c) > v4) or
(data10(L) < v1 and data10(c) > v1) or
(data10(L) < v2 and data10(c) > v2) or
(data10(L) < v3 and data10(c) > v3) or
(data10(L) < v4 and data10(c) > v4)
Then
sell();
if (data3(H) >= V1-data3(PriceScale*N) and data3(H[1]) < V1[1]-data3(PriceScale*N)) Or
(data3(H) >= V2-data3(PriceScale*N) and data3(H[1]) < V2[1]-data3(PriceScale*N)) Or
(data3(H) >= V3-data3(PriceScale*N) and data3(H[1]) < V3[1]-data3(PriceScale*N)) Or
(data3(H) >= V4-data3(PriceScale*N) and data3(H[1]) < V4[1]-data3(PriceScale*N)) Or
(data5(H) >= V1-data5(PriceScale*N) and data5(H[1]) < V1[1]-data5(PriceScale*N)) Or
(data5(H) >= V2-data5(PriceScale*N) and data5(H[1]) < V2[1]-data5(PriceScale*N)) Or
(data5(H) >= V3-data5(PriceScale*N) and data5(H[1]) < V3[1]-data5(PriceScale*N)) Or
(data5(H) >= V4-data5(PriceScale*N) and data5(H[1]) < V4[1]-data5(PriceScale*N)) Or
(data7(H) >= V1-data7(PriceScale*N) and data7(H[1]) < V1[1]-data7(PriceScale*N)) Or
(data7(H) >= V2-data7(PriceScale*N) and data7(H[1]) < V2[1]-data7(PriceScale*N)) Or
(data7(H) >= V3-data7(PriceScale*N) and data7(H[1]) < V3[1]-data7(PriceScale*N)) Or
(data7(H) >= V4-data7(PriceScale*N) and data7(H[1]) < V4[1]-data7(PriceScale*N)) Or
(data9(H) >= V1-data9(PriceScale*N) and data9(H[1]) < V1[1]-data9(PriceScale*N)) Or
(data9(H) >= V2-data9(PriceScale*N) and data9(H[1]) < V2[1]-data9(PriceScale*N)) Or
(data9(H) >= V3-data9(PriceScale*N) and data9(H[1]) < V3[1]-data9(PriceScale*N)) Or
(data9(H) >= V4-data9(PriceScale*N) and data9(H[1]) < V4[1]-data9(PriceScale*N)) Or
(data11(H) >= V1-data11(PriceScale*N) and data11(H[1]) < V1[1]-data11(PriceScale*N)) or
(data11(H) >= V2-data11(PriceScale*N) and data11(H[1]) < V2[1]-data11(PriceScale*N)) or
(data11(H) >= V3-data11(PriceScale*N) and data11(H[1]) < V3[1]-data11(PriceScale*N)) or
(data11(H) >= V4-data11(PriceScale*N) and data11(H[1]) < V4[1]-data11(PriceScale*N))
Then
sell();
if (data3(L) <= V1+data3(PriceScale*N) and data3(L[1]) > V1[1]+data3(PriceScale*N)) Or
(data3(L) <= V2+data3(PriceScale*N) and data3(L[1]) > V2[1]+data3(PriceScale*N)) Or
(data3(L) <= V3+data3(PriceScale*N) and data3(L[1]) > V3[1]+data3(PriceScale*N)) Or
(data3(L) <= V4+data3(PriceScale*N) and data3(L[1]) > V4[1]+data3(PriceScale*N)) Or
(data5(L) <= V1+data5(PriceScale*N) and data5(L[1]) > V1[1]+data5(PriceScale*N)) Or
(data5(L) <= V2+data5(PriceScale*N) and data5(L[1]) > V2[1]+data5(PriceScale*N)) Or
(data5(L) <= V3+data5(PriceScale*N) and data5(L[1]) > V3[1]+data5(PriceScale*N)) Or
(data5(L) <= V4+data5(PriceScale*N) and data5(L[1]) > V4[1]+data5(PriceScale*N)) Or
(data7(L) <= V1+data7(PriceScale*N) and data7(L[1]) > V1[1]+data7(PriceScale*N)) Or
(data7(L) <= V2+data7(PriceScale*N) and data7(L[1]) > V2[1]+data7(PriceScale*N)) Or
(data7(L) <= V3+data7(PriceScale*N) and data7(L[1]) > V3[1]+data7(PriceScale*N)) Or
(data7(L) <= V4+data7(PriceScale*N) and data7(L[1]) > V4[1]+data7(PriceScale*N)) Or
(data9(L) <= V1+data9(PriceScale*N) and data9(L[1]) > V1[1]+data9(PriceScale*N)) Or
(data9(L) <= V2+data9(PriceScale*N) and data9(L[1]) > V2[1]+data9(PriceScale*N)) Or
(data9(L) <= V3+data9(PriceScale*N) and data9(L[1]) > V3[1]+data9(PriceScale*N)) Or
(data9(L) <= V4+data9(PriceScale*N) and data9(L[1]) > V4[1]+data9(PriceScale*N)) Or
(data11(L) <= V1+data11(PriceScale*N) and data11(L[1]) > V1[1]+data11(PriceScale*N)) or
(data11(L) <= V2+data11(PriceScale*N) and data11(L[1]) > V2[1]+data11(PriceScale*N)) or
(data11(L) <= V3+data11(PriceScale*N) and data11(L[1]) > V3[1]+data11(PriceScale*N)) or
(data11(L) <= V4+data11(PriceScale*N) and data11(L[1]) > V4[1]+data11(PriceScale*N))
Then
buy();
if (data3(H) > v1 and data3(c) > v1) or
(data3(H) > v2 and data3(c) > v2) or
(data3(H) > v3 and data3(c) > v3) or
(data3(H) > v4 and data3(c) > v4) or
(data5(H) > v1 and data5(c) > v1) or
(data5(H) > v2 and data5(c) > v2) or
(data5(H) > v3 and data5(c) > v3) or
(data5(H) > v4 and data5(c) > v4) or
(data7(H) > v1 and data7(c) > v1) or
(data7(H) > v2 and data7(c) > v2) or
(data7(H) > v3 and data7(c) > v3) or
(data7(H) > v4 and data7(c) > v4) or
(data9(H) > v1 and data9(c) > v1) or
(data9(H) > v2 and data9(c) > v2) or
(data9(H) > v3 and data9(c) > v3) or
(data9(H) > v4 and data9(c) > v4) or
(data11(H) > v1 and data11(c) > v1) or
(data11(H) > v2 and data11(c) > v2) or
(data11(H) > v3 and data11(c) > v3) or
(data11(H) > v4 and data11(c) > v4)
Then
buy();
if (data3(L) < v1 and data3(c) < v1) or
(data3(L) < v2 and data3(c) < v2) or
(data3(L) < v3 and data3(c) < v3) or
(data3(L) < v4 and data3(c) < v4) or
(data5(L) < v1 and data5(c) < v1) or
(data5(L) < v2 and data5(c) < v2) or
(data5(L) < v3 and data5(c) < v3) or
(data5(L) < v4 and data5(c) < v4) or
(data7(L) < v1 and data7(c) < v1) or
(data7(L) < v2 and data7(c) < v2) or
(data7(L) < v3 and data7(c) < v3) or
(data7(L) < v4 and data7(c) < v4) or
(data9(L) < v1 and data9(c) < v1) or
(data9(L) < v2 and data9(c) < v2) or
(data9(L) < v3 and data9(c) < v3) or
(data9(L) < v4 and data9(c) < v4) or
(data11(L) < v1 and data11(c) < v1) or
(data11(L) < v2 and data11(c) < v2) or
(data11(L) < v3 and data11(c) < v3) or
(data11(L) < v4 and data11(c) < v4)
Then
sell();
if (data3(H) > v1 and data3(c) < v1) or
(data3(H) > v2 and data3(c) < v2) or
(data3(H) > v3 and data3(c) < v3) or
(data3(H) > v4 and data3(c) < v4) or
(data5(H) > v1 and data5(c) < v1) or
(data5(H) > v2 and data5(c) < v2) or
(data5(H) > v3 and data5(c) < v3) or
(data5(H) > v4 and data5(c) < v4) or
(data7(H) > v1 and data7(c) < v1) or
(data7(H) > v2 and data7(c) < v2) or
(data7(H) > v3 and data7(c) < v3) or
(data7(H) > v4 and data7(c) < v4) or
(data9(H) > v1 and data9(c) < v1) or
(data9(H) > v2 and data9(c) < v2) or
(data9(H) > v3 and data9(c) < v3) or
(data9(H) > v4 and data9(c) < v4) or
(data11(H) > v1 and data11(c) < v1) or
(data11(H) > v2 and data11(c) < v2) or
(data11(H) > v3 and data11(c) < v3) or
(data11(H) > v4 and data11(c) < v4)
Then
sell();
if (data3(H) < v1 and data3(c) > v1) or
(data3(L) < v2 and data3(c) > v2) or
(data3(L) < v3 and data3(c) > v3) or
(data3(L) < v4 and data3(c) > v4) or
(data5(L) < v1 and data5(c) > v1) or
(data5(L) < v2 and data5(c) > v2) or
(data5(L) < v3 and data5(c) > v3) or
(data5(L) < v4 and data5(c) > v4) or
(data7(L) < v1 and data7(c) > v1) or
(data7(L) < v2 and data7(c) > v2) or
(data7(L) < v3 and data7(c) > v3) or
(data7(L) < v4 and data7(c) > v4) or
(data9(L) < v1 and data9(c) > v1) or
(data9(L) < v2 and data9(c) > v2) or
(data9(L) < v3 and data9(c) > v3) or
(data9(L) < v4 and data9(c) > v4) or
(data11(L) < v1 and data11(c) > v1) or
(data11(L) < v2 and data11(c) > v2) or
(data11(L) < v3 and data11(c) > v3) or
(data11(L) < v4 and data11(c) > v4)
Then
buy();
즐거운 하루되세요
> 흑수돌 님이 쓴 글입니다.
> 제목 : please check
> please check attaschment.
always thank you.
이전글