·Î±×ÀÎ
|
ȸ¿ø°¡ÀÔ
|
ȸ»ç¼Ò°³
|
»çÀÌÆ®¸Ê
Ä¿¹Â´ÏƼ | ¼ö½ÄÀÛ¼º Q&A
ÀÛ¼ºÀÚ :
¿¹½º½ºÅ¹
ÀÛ¼ºÀÏ : 2023-11-21 ¿ÀÈÄ 5:50:11 Á¶È¸¼ö : 281
Re : °ªÀ» ÀúÀå
¾È³çÇϼ¼¿ä
¿¹½º½ºÅ¹ÀÔ´Ï´Ù.
¾Æ·¡ ³»¿ë Âü°íÇϽñ⠹ٶø´Ï´Ù.
input : P1(5),P2(60);
var : T(0),S(0),SI(0);
var : hh(0),hv(0),mm(0),hh1(0),hv1(0),mm1(0);
var1 = ma(C,P1);
Var2 = ma(C,P2);
#60ÀÌÆò »ó½Â±¸°£ 1, Ç϶ô±¸°£-1
if Var2 > Var2[1] Then
S = 1;
if Var2 < Var2[1] Then
S = -1;
#60ÀÌÆò »ó½ÂÀüȯºÀ À妽º
if S == 1 and S != S[1] Then
Si = Index;
#°ñµå
if CrossUp(var1,Var2) Then
{
T = 1;
hh = Var1;
hv = v;
#Á÷Àü °ñµå±¸°£ 5ÀÌÆò ÃÖ°í°¡¿Í °Å·¡·®
hh1 = hh[1];
hv1 = hv[1];
mm1 = mm[1];
Condition1 = False;
}
#µ¥µå
if CrossDown(var1,Var2) Then
T = -1;
#ÇöÀç °ñµå±¸°£
if T == 1 Then
{
#°ñµå±¸°£ 5ÀÌÆò ÃÖ°í°¡¿Í ±×¶§ °Å·¡·® ÀúÀå
if var1 > hh Then
{
hh = var1;
hv = v;
mm = Index;
}
if Condition1 == False and #°ñµå ÈÄ ÃÖÃÊ Á¶°Ç¸¸Á·½ÃÁ¡¿¡¸¸ ½ÅÈ£¹ß»ýÀ§ÇÑ º¯¼ö
S == 1 and mm1 >= si and #ÇöÀç 60ÀÌÆò »ó½Â±¸°£ÀÌ°í Á÷Àü°ñµå ±¸°£ ÃÖ°í°¡´Â 60ÀÌÆò »ó½ÂÀüȯÀÌÈÄ ¹ß»ý
hh > hh1 and hv > hv1 and hh1 > 0 Then #5ÀÌÆòÀÌ Á÷Àü±¸°£ ÃÖ°í°¡º¸´Ù Å©°í °Å·¡·®µµ Å©¸é ¸Å¼ö
{
#Condition1Àº true·Î º¯°æÇØ °ñµå±¸°£¿¡¼ ÃÖÃÊ ¸¸Á·½Ã Çѹø¸¸ ¸Å¼ö½ÅÈ£
Condition1 = true;
Buy();
}
}
Áñ°Å¿î ÇÏ·çµÇ¼¼¿ä
> jdavid ´ÔÀÌ ¾´ ±ÛÀÔ´Ï´Ù.
> Á¦¸ñ : °ªÀ» ÀúÀå
> °¨»çÇÕ´Ï´Ù.
1.
ÀÌÆò(60)ÀÌ »ó½ÂÁßÀÌ°í
ÀÌÆò(5)°¡ ÀÌÆò(60)À» Ç϶ô±³Â÷ ÈÄ ´Ù½Ã »ó½Â±³Â÷ÇÏ¿´À» ¶§¸¦ ±âÁØÀ¸·Î,
±× ÀÌÀü NºÀµ¿¾ÈÀÇ ÃÖ°íÁ¾°¡¸¦ ã°í ±× ¶§ÀÇ "A°Å·¡·®"À» ÀúÀåÇÏ°í
ÀÌÆò(5)°¡ ÀÌÆò(60)À» »ó½Â±³Â÷ ÀÌÈÄ·Î
´Ù½Ã °¡°ÝÀÌ »ó½ÂÇϸé¼
±× ¶§ÀÇ "B°Å·¡·®"ÀÌ NºÀÀü ÃÖ°íÁ¾°¡ÀÇ °Å·¡·®º¸´Ù Å©¸é ¸Å¼ö½ÅÈ£¸¦ ¹ß»ý½ÃÅ°°í ½Í½À´Ï´Ù.
¹®Àǵ帳´Ï´Ù.
Æ÷Áö¼Ç ÁøÀÔ °¡°Ý¿¡ ¼± ±ß±â
°ü·Ã ±Û ¸®½ºÆ®
84683
°ªÀ» ÀúÀå
jdavid
2023.11.21
658
ÇöÀç±Û
Re : °ªÀ» ÀúÀå
¿¹½º½ºÅ¹
2023.11.21
281