·Î±×ÀÎ
|
ȸ¿ø°¡ÀÔ
|
ȸ»ç¼Ò°³
|
»çÀÌÆ®¸Ê
Ä¿¹Â´ÏƼ | ¼ö½ÄÀÛ¼º Q&A
ÀÛ¼ºÀÚ :
Ǫ¸¥
ÀÛ¼ºÀÏ : 2025-03-14 ¿ÀÀü 4:22:19 Á¶È¸¼ö : 28
¹®ÀÇ µå¸³´Ï´Ù
input : ShortPeriod(20), LongPeriod(38);
input : StartTime(140000),EndTime(40000);
var : Tcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
var : wmaFast(0), wmaSlow(0), Trend(0);
wmaFast = wma(C, ShortPeriod);
wmaSlow = wma(C, LongPeriod);
if CrossUp(wmaFast, wmaSlow) Then
Trend = -1;
if CrossDown(wmaFast, wmaSlow) Then
Trend = 1;
if trend == 1 and trend != trend[1] Then
Buy();
if trend == -1 and trend != trend[1] Then
Sell();
À§ ¼ö½Ä¾îÀÇ ¼öÁ¤ÀÔ´Ï´Ù.
Buy, Sell ÁøÀÔ½ÅÈ£ÈÄ -30ƽ¿¡ ¼ÕÀý ¹× -50ƽ ¹Ý´ë Æ÷Áö¼Ç ÁøÀÔÀ» ºÎŹµå¸³´Ï´Ù.
Á¾¸ñ°Ë»ö½Ä ºÎŹµå¸²´Ï´Ù.
¼ö½Äº¯È¯¿äû
°ü·Ã ±Û ¸®½ºÆ®
ÇöÀç±Û
¹®ÀÇ µå¸³´Ï´Ù
Ǫ¸¥
2025.03.14
28
ÇǺ¸120
Ǫ¸¥
2025.03.20
3
Re : ¹®ÀÇ µå¸³´Ï´Ù
¿¹½º½ºÅ¹
2025.03.14
26