커뮤니티

문의드림니다

프로필 이미지
logos
2012-05-07 13:12:41
389
글번호 50831
답변완료
다음 수식에 잘못된 점이 있는지요? 수식을 적용해 보니 적용이 안되서요 어디에 오류가 있는지 수정부탁드림니다 input : P1(12),P2(26),P3(9); var : dnidx(0),dnprice(0); var1 = macd(P1,P2); var2 = ema(var1,P3); if date != date[1] Then Condition1 = false; if dayindex >= 5 and dayindex < 50 Then{ if CrossDown(var1,var2) Then{ Condition1 = true; dnidx = dayindex; dnprice = c; } } if Condition1 == true and crossup(var1,var2) and dayindex <= dnidx+30 and C > dnprice Then buy();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-05-07 14:07:00

안녕하세요 예스스탁입니다. 수식 오류는 없습니다. 적용결과 5분봉차트 5000개 조회해서 적용해 본 결과 신호도 발생됩니다. 진입식만 있을 경우 차트상 처음 조건만족할때 매수신호 발생하고 이후 신호가 없으므로 간단한 청산식 추가해서 적용해 보시기 바랍니다. input : P1(12),P2(26),P3(9); var : dnidx(0),dnprice(0); var1 = macd(P1,P2); var2 = ema(var1,P3); if date != date[1] Then Condition1 = false; if dayindex >= 5 and dayindex < 50 Then{ if CrossDown(var1,var2) Then{ Condition1 = true; dnidx = dayindex; dnprice = c; } } if Condition1 == true and crossup(var1,var2) and dayindex <= dnidx+30 and C > dnprice Then buy(); SetStopEndofday(150000); 즐거운 하루되세요 > logos 님이 쓴 글입니다. > 제목 : 문의드림니다 > 다음 수식에 잘못된 점이 있는지요? 수식을 적용해 보니 적용이 안되서요 어디에 오류가 있는지 수정부탁드림니다 input : P1(12),P2(26),P3(9); var : dnidx(0),dnprice(0); var1 = macd(P1,P2); var2 = ema(var1,P3); if date != date[1] Then Condition1 = false; if dayindex >= 5 and dayindex < 50 Then{ if CrossDown(var1,var2) Then{ Condition1 = true; dnidx = dayindex; dnprice = c; } } if Condition1 == true and crossup(var1,var2) and dayindex <= dnidx+30 and C > dnprice Then buy();