커뮤니티

검토 부탁드립니다.

프로필 이미지
잼스딘
2025-12-16 14:01:10
80
글번호 229061
답변완료

[1분봉] 10억 이상 거래대금 발생 후  9시30~10시사이 첫 번째 GE 신호 발생시 종목 검색 입니다.

잘못된 부분이 있을까요? 검색이 안되서..ㅠㅠ


input :Period(5),MidPeriod(6); var : GE매수(False),Condition1(False),Cnt(0),cs(0),Count(False);

var1 = ma( (C[1]+H[1])/2,Period);

var2 = ma(C,MidPeriod);

GE매수 = CrossUp(var2,var1);


if sDate != sDate[1] Then {

Cnt = 0; }

Cnt = Cnt +1;


if cnt >= 29 and cnt <= 59 and m >= 100000000 Then {

Condition1 = true; }

if Condition1 == true and Condition1[1] == False Then {

cs = 0; }

if cs >= 0 and GE매수 == true Then {

cs = cs+1; }

Count = cs <= 1;


if Count == true && Count[1] == False Then Find(1);

종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-12-16 15:25:02

안녕하세요 예스스탁입니다. 작성하신 수식에서 condition1, cs도 날짜 변경시 초기화되어야 합니다. 식 수정해 드립니다. 종목검색시 속성에서 검색에 필요한 최소기간에 500봉 지정하고 1분봉에서 검색하셔야 합니다. input :Period(5),MidPeriod(6); var : GE매수(False),Condition1(False),Cnt(0),cs(-1); var1 = ma((C[1]+H[1])/2,Period); var2 = ma(C,MidPeriod); GE매수 = CrossUp(var2,var1); if sDate != sDate[1] Then { Cnt = 0; cs = 0; Condition1 = False; } Cnt = Cnt +1; if Condition1 == False and cnt >= 29 and cnt <= 59 and m >= 100000000 Then { Condition1 = true; } if Condition1 == true and GE매수 == true Then { cs = cs+1; if cs == 1 Then Find(1); } 즐거운 하루되세요