·Î±×ÀÎ
|
ȸ¿ø°¡ÀÔ
|
ȸ»ç¼Ò°³
|
»çÀÌÆ®¸Ê
Ä¿¹Â´ÏƼ | ¼ö½ÄÀÛ¼º Q&A
ÀÛ¼ºÀÚ :
¿¹½º½ºÅ¹
ÀÛ¼ºÀÏ : 2024-10-31 ¿ÀÈÄ 3:29:36 Á¶È¸¼ö : 37
Re : ¼öÁ¤ºÎŹ
¾È³çÇϼ¼¿ä
¿¹½º½ºÅ¹ÀÔ´Ï´Ù.
¹Ú½º´Â ä¿ì±â¸¦ Çϸé À§ºÎ Å׵θ®°¡ Ç¥½ÃµÇÁö ¾Ê½À´Ï´Ù.
Å׵θ®¸¦ º¸°íÀÚ ÇϽøé ä¿ì±â ÇÏÁö ¾ÊÀº ¹Ú½º¸¦ Ãß°¡·Î ±×·Á¼ º¸¼Å¾ß ÇÕ´Ï´Ù.
var :hPeodd1(10),hµÎ²²(1);
Var:»ó½Â»öh(Red), Ç϶ô»öh(Blue),»óh»ö»óµÎ²²(20),ÇÏh»ö»óµÎ²²(20),h±Ü¾¾Å©±â(35),nh±Ü¾¾Å©±â(12),¿øÅ©±â11(30),»ç°¢¹Ú½º±½±â(2);
Var:JWh(0),JWhT(0);
Var: h°í11(0),h°í12(0),h½Ã°£11(0),h½Ã°£12(0),H¼±TL1(0),H¼±TL(0),hfTL5»ç°¢(0),hText1»ç°¢(0),hText11»ç°¢(0),hTL55»ç°¢(0),hText111»ç°¢(0),
h°í21(0),h°í22(0),h½Ã°£21(0),h½Ã°£22(0),hVlue11(0),hVlue12(0),
h°í31(0),h°í32(0),h½Ã°£31(0),h½Ã°£32(0);
Array:h°íVal[20](0),LhÀúval[20](0),h°íBar[20](0),LhÀúBar[20](0);
Array:hdr[7](0),hdfr[7](0);
var : hdbox(0),hdbox1(0);
For JWh = 0 To 19
{
h°íBar[JWh] = h°íBar[JWh] + 1;
LhÀúBar[JWh] = LhÀúBar[JWh] + 1;
}
if crossup(c,highest(H,hPeodd1)[1]) Then
JWhT = 1;
if CrossDown(c,Lowest(L,hPeodd1)[1]) Then
JWhT = -1;
If JWhT == -1 Then
{
If JWhT[1] != -1 Then
{
For JWh = 18 DownTo 0
{
LhÀúval[JWh+1] = LhÀúval[JWh];
LhÀúBar[JWh+1] = LhÀúBar[JWh];
//ZZ[j+1] = ZZ[j];
}
LhÀúval[0] = L;
LhÀúBar[0] = 0;
//ZZ[0] = L;
h°í11 = Date[h°íBar[0]];
h½Ã°£11 = stime[h°íBar[0]];
hVlue11 = h°íVal[0];
h°í12 = Date[LhÀúBar[0]];
h½Ã°£12 = stime[LhÀúBar[0]];
hVlue12 = LhÀúval[0];
h°í21 = Date[h°íBar[0]];
h½Ã°£21 = stime[h°íBar[0]];
h°í22 = Date[0];
h½Ã°£22 = stime[0];
for JWh = 0 to 6
{
hdfr[JWh] = LhÀúval[1] + ((h°íVal[0] - LhÀúval[1]) * hdr[JWh]);
}
Box_SetEnd(hdbox,h°í11,h½Ã°£11,hVlue11);
Box_SetEnd(hdbox1,h°í11,h½Ã°£11,hVlue11);
hdbox = box_new(h°í11,h½Ã°£11,hVlue11,h°í12,h½Ã°£12,hVlue12);
Box_SetColor(hdbox,Ç϶ô»öh);
Box_SetFill(hdbox,true,ÇÏh»ö»óµÎ²²);
hdbox1 = box_new(h°í11,h½Ã°£11,hVlue11,h°í12,h½Ã°£12,hVlue12);
Box_SetColor(hdbox1,Ç϶ô»öh);
Box_SetSize(hdbox1,»ç°¢¹Ú½º±½±â);
}
If LhÀúval[0] > L Then
{
LhÀúval[0] = L;
LhÀúBar[0] = 0;
//ZZ[0] = L;
h°í12 = Date[LhÀúBar[0]];
h½Ã°£12 = stime[LhÀúBar[0]];
hVlue12 = LhÀúval[0];
h°í22 = Date[0];
h½Ã°£22 = stime[0];
Box_SetEnd(hdbox,h°í12,h½Ã°£12,hVlue12);
Box_SetEnd(hdbox1,h°í12,h½Ã°£12,hVlue12);
TL_SetEnd(hfTL5»ç°¢,h°í12,h½Ã°£12,hVlue12); //------ ¿¬Àå
}
}
If JWhT == 1 Then
{
If JWhT[1] != 1 Then
{
For JWh = 18 DownTo 0
{
h°íVal[JWh+1] = h°íVal[JWh];
h°íBar[JWh+1] = h°íBar[JWh];
//ZZ[j+1] = ZZ[j];
}
h°íVal[0] = H;
h°íBar[0] = 0;
//ZZ[0] = H;
h°í11 = Date[LhÀúBar[0]];
h½Ã°£11 = stime[LhÀúBar[0]];
hVlue11 = LhÀúval[0];
h°í12 = Date[h°íBar[0]];
h½Ã°£12 = stime[h°íBar[0]];
hVlue12 = h°íVal[0];
h°í31 = Date[LhÀúBar[0]];
h½Ã°£31 = stime[LhÀúBar[0]];
h°í32 = Date[0];
h½Ã°£32 = stime[0];
for JWh = 0 to 5
{
hdfr[JWh] = LhÀúval[0] + ((h°íVal[1] - LhÀúval[0]) * hdr[JWh]);
}
Box_SetEnd(hdbox,h°í11,h½Ã°£11,hVlue11);
Box_SetEnd(hdbox1,h°í11,h½Ã°£11,hVlue11);
hdbox = box_new(h°í11,h½Ã°£11,hVlue11,h°í12,h½Ã°£12,hVlue12);
Box_SetColor(hdbox,»ó½Â»öh);
Box_SetFill(hdbox,true,»óh»ö»óµÎ²²);
hdbox1 = box_new(h°í11,h½Ã°£11,hVlue11,h°í12,h½Ã°£12,hVlue12);
Box_SetColor(hdbox1,»ó½Â»öh);
Box_SetSize(hdbox1,»ç°¢¹Ú½º±½±â);
}
If h°íVal[0] < H Then
{
h°íVal[0] = H;
h°íBar[0] = 0;
//ZZ[0] = H;
h°í12 = Date[h°íBar[0]];
h½Ã°£12 = stime[h°íBar[0]];
hVlue12 = h°íVal[0];
h°í32 = Date[0];
h½Ã°£32 = stime[0];
Box_SetEnd(hdbox,h°í12,h½Ã°£12,hVlue12);
Box_SetEnd(hdbox1,h°í12,h½Ã°£12,hVlue12);
TL_SetEnd(hfTL5»ç°¢,h°í12,h½Ã°£12,hVlue12); //------ ¿¬Àå
}
}
Áñ°Å¿î ÇÏ·çµÇ¼¼¿ä
> ¿Ü±¹ÀÎ ´ÔÀÌ ¾´ ±ÛÀÔ´Ï´Ù.
> Á¦¸ñ : ¼öÁ¤ºÎŹ
> »ç°¢¹Ú½º¿¡ »ç°¢¼±À» ³ªÅ¸³ª°Ô ºÎŹµå¸³´Ï´Ù(µÎ°ÔÁ¶Àý°¡´ÉÇÊ)
var :hPeodd1(10),hµÎ²²(1);
Var:»ó½Â»öh(Red), Ç϶ô»öh(Blue),»óh»ö»óµÎ²²(20),ÇÏh»ö»óµÎ²²(20),h±Ü¾¾Å©±â(35),nh±Ü¾¾Å©±â(12),¿øÅ©±â11(30);
Var:JWh(0),JWhT(0);
Var: h°í11(0),h°í12(0),h½Ã°£11(0),h½Ã°£12(0),H¼±TL1(0),H¼±TL(0),hfTL5»ç°¢(0),hText1»ç°¢(0),hText11»ç°¢(0),hTL55»ç°¢(0),hText111»ç°¢(0),
h°í21(0),h°í22(0),h½Ã°£21(0),h½Ã°£22(0),hVlue11(0),hVlue12(0),
h°í31(0),h°í32(0),h½Ã°£31(0),h½Ã°£32(0);
Array:h°íVal[20](0),LhÀúval[20](0),h°íBar[20](0),LhÀúBar[20](0);
Array:hdr[7](0),hdfr[7](0);
var : hdbox(0),hdbox1(0);
For JWh = 0 To 19
{
h°íBar[JWh] = h°íBar[JWh] + 1;
LhÀúBar[JWh] = LhÀúBar[JWh] + 1;
}
if crossup(c,highest(H,hPeodd1)[1]) Then
JWhT = 1;
if CrossDown(c,Lowest(L,hPeodd1)[1]) Then
JWhT = -1;
If JWhT == -1 Then
{
If JWhT[1] != -1 Then
{
For JWh = 18 DownTo 0
{
LhÀúval[JWh+1] = LhÀúval[JWh];
LhÀúBar[JWh+1] = LhÀúBar[JWh];
//ZZ[j+1] = ZZ[j];
}
LhÀúval[0] = L;
LhÀúBar[0] = 0;
//ZZ[0] = L;
h°í11 = Date[h°íBar[0]];
h½Ã°£11 = stime[h°íBar[0]];
hVlue11 = h°íVal[0];
h°í12 = Date[LhÀúBar[0]];
h½Ã°£12 = stime[LhÀúBar[0]];
hVlue12 = LhÀúval[0];
h°í21 = Date[h°íBar[0]];
h½Ã°£21 = stime[h°íBar[0]];
h°í22 = Date[0];
h½Ã°£22 = stime[0];
for JWh = 0 to 6
{
hdfr[JWh] = LhÀúval[1] + ((h°íVal[0] - LhÀúval[1]) * hdr[JWh]);
}
Box_SetEnd(hdbox,h°í11,h½Ã°£11,hVlue11);
hdbox = box_new(h°í11,h½Ã°£11,hVlue11,h°í12,h½Ã°£12,hVlue12);
Box_SetColor(hdbox,Ç϶ô»öh);
Box_SetFill(hdbox,true,ÇÏh»ö»óµÎ²²);
}
If LhÀúval[0] > L Then
{
LhÀúval[0] = L;
LhÀúBar[0] = 0;
//ZZ[0] = L;
h°í12 = Date[LhÀúBar[0]];
h½Ã°£12 = stime[LhÀúBar[0]];
hVlue12 = LhÀúval[0];
h°í22 = Date[0];
h½Ã°£22 = stime[0];
Box_SetEnd(hdbox,h°í12,h½Ã°£12,hVlue12);
TL_SetEnd(hfTL5»ç°¢,h°í12,h½Ã°£12,hVlue12); //------ ¿¬Àå
}
}
If JWhT == 1 Then
{
If JWhT[1] != 1 Then
{
For JWh = 18 DownTo 0
{
h°íVal[JWh+1] = h°íVal[JWh];
h°íBar[JWh+1] = h°íBar[JWh];
//ZZ[j+1] = ZZ[j];
}
h°íVal[0] = H;
h°íBar[0] = 0;
//ZZ[0] = H;
h°í11 = Date[LhÀúBar[0]];
h½Ã°£11 = stime[LhÀúBar[0]];
hVlue11 = LhÀúval[0];
h°í12 = Date[h°íBar[0]];
h½Ã°£12 = stime[h°íBar[0]];
hVlue12 = h°íVal[0];
h°í31 = Date[LhÀúBar[0]];
h½Ã°£31 = stime[LhÀúBar[0]];
h°í32 = Date[0];
h½Ã°£32 = stime[0];
for JWh = 0 to 5
{
hdfr[JWh] = LhÀúval[0] + ((h°íVal[1] - LhÀúval[0]) * hdr[JWh]);
}
Box_SetEnd(hdbox,h°í11,h½Ã°£11,hVlue11);
hdbox = box_new(h°í11,h½Ã°£11,hVlue11,h°í12,h½Ã°£12,hVlue12);
Box_SetColor(hdbox,»ó½Â»öh);
Box_SetFill(hdbox,true,»óh»ö»óµÎ²²);
}
If h°íVal[0] < H Then
{
h°íVal[0] = H;
h°íBar[0] = 0;
//ZZ[0] = H;
h°í12 = Date[h°íBar[0]];
h½Ã°£12 = stime[h°íBar[0]];
hVlue12 = h°íVal[0];
h°í32 = Date[0];
h½Ã°£32 = stime[0];
Box_SetEnd(hdbox,h°í12,h½Ã°£12,hVlue12);
TL_SetEnd(hfTL5»ç°¢,h°í12,h½Ã°£12,hVlue12); //------ ¿¬Àå
}
}
¹®Àǵ帳´Ï´Ù,
¼ö½Ä¿äû
°ü·Ã ±Û ¸®½ºÆ®
89775
¼öÁ¤ºÎŹ
¿Ü±¹ÀÎ
2024.10.31
35
ÇöÀç±Û
Re : ¼öÁ¤ºÎŹ
¿¹½º½ºÅ¹
2024.10.31
37