커뮤니티

검색식 필요합니다

프로필 이미지
회원
2015-03-25 16:52:10
239
글번호 84383
답변완료
시스템수식입니다 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if MarketPosition <= 0 and T2 ==1 and T2[1] != 1 Then buy("b"); if MarketPosition == 1 and T1 == -1 and T1[1] != -1 Then exitlong("bx"); if MarketPosition == 0 and MarketPosition(1) == 1 and T1 == 1 and T1[1] != 1 Then buy("bb"); if MarketPosition >= 0 and T2 == -1 and T2[1] != -1 Then sell("s"); if MarketPosition == -1 and T1 == 1 and T1[1] != 1 Then ExitShort("sx"); if MarketPosition == 0 and MarketPosition(1) == -1 and T1 == -1 and T1[1] != -1 Then sell("ss"); 검색식을 만들어주세요
종목검색
답변 4
프로필 이미지

예스스탁 예스스탁 답변

2015-03-26 09:05:59

안녕하세요 예스스탁입니다. input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0),pst(0),prepst(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if pst <= 0 and T2 ==1 and T2[1] != 1 Then{ pst = 1; plot1(H,"검색",RED); } if pst == 1 and T1 == -1 and T1[1] != -1 Then{ pst = 0; prepst = pst[1]; plot1(H,"검색",CYAN); } if pst == 0 and prepst == 1 and T1 == 1 and T1[1] != 1 Then{ pst = 1; plot1(H,"검색",RED); } if pst >= 0 and T2 == -1 and T2[1] != -1 Then{ pst=-1; plot1(H,"검색",BLUE); } if pst == -1 and T1 == 1 and T1[1] != 1 Then{ pst = 0; prepst = pst[1]; plot1(H,"검색",MAGENTA); } if pst == 0 and prepst == -1 and T1 == -1 and T1[1] != -1 Then{ pst = -1; plot1(H,"검색",BLUE); } 즐거운 하루되세요 > NH_mo****** 님이 쓴 글입니다. > 제목 : 검색식 필요합니다 > 시스템수식입니다 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if MarketPosition <= 0 and T2 ==1 and T2[1] != 1 Then buy("b"); if MarketPosition == 1 and T1 == -1 and T1[1] != -1 Then exitlong("bx"); if MarketPosition == 0 and MarketPosition(1) == 1 and T1 == 1 and T1[1] != 1 Then buy("bb"); if MarketPosition >= 0 and T2 == -1 and T2[1] != -1 Then sell("s"); if MarketPosition == -1 and T1 == 1 and T1[1] != 1 Then ExitShort("sx"); if MarketPosition == 0 and MarketPosition(1) == -1 and T1 == -1 and T1[1] != -1 Then sell("ss"); 검색식을 만들어주세요
프로필 이미지

회원

2015-03-26 09:49:56

> 예스스탁 님이 쓴 글입니다. > 제목 : Re : 검색식 필요합니다 > 안녕하세요 예스스탁입니다. input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0),pst(0),prepst(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if pst <= 0 and T2 ==1 and T2[1] != 1 Then{ pst = 1; plot1(H,"검색",RED); } if pst == 1 and T1 == -1 and T1[1] != -1 Then{ pst = 0; prepst = pst[1]; plot1(H,"검색",CYAN); } if pst == 0 and prepst == 1 and T1 == 1 and T1[1] != 1 Then{ pst = 1; plot1(H,"검색",RED); } if pst >= 0 and T2 == -1 and T2[1] != -1 Then{ pst=-1; plot1(H,"검색",BLUE); } if pst == -1 and T1 == 1 and T1[1] != 1 Then{ pst = 0; prepst = pst[1]; plot1(H,"검색",MAGENTA); } if pst == 0 and prepst == -1 and T1 == -1 and T1[1] != -1 Then{ pst = -1; plot1(H,"검색",BLUE); } 즐거운 하루되세요 > NH_mo****** 님이 쓴 글입니다. > 제목 : 검색식 필요합니다 > 시스템수식입니다 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if MarketPosition <= 0 and T2 ==1 and T2[1] != 1 Then buy("b"); if MarketPosition == 1 and T1 == -1 and T1[1] != -1 Then exitlong("bx"); if MarketPosition == 0 and MarketPosition(1) == 1 and T1 == 1 and T1[1] != 1 Then buy("bb"); if MarketPosition >= 0 and T2 == -1 and T2[1] != -1 Then sell("s"); if MarketPosition == -1 and T1 == 1 and T1[1] != 1 Then ExitShort("sx"); if MarketPosition == 0 and MarketPosition(1) == -1 and T1 == -1 and T1[1] != -1 Then sell("ss"); 검색식을 만들어주세요 "plot은 기술적지표에서만 사용할수있습니다" 라고 에러가뜨네요 안됩니다
프로필 이미지

예스스탁 예스스탁 답변

2015-03-26 10:19:32

안녕하세요 예스스탁입니다. 해당식 검색식입니다. 검색식은 차트에 조건만족봉에 점을 찍어 표시하는 식입니다. 문의하신 내용이 종목검색식이시면 아래식을 이용하시면 됩니다. 1. 매수조건 만족하는 종목을 검색 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0),pst(0),prepst(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if T2 ==1 and T2[1] != 1 Then find(1); 2, 매도조건을 만족하는 종목을 검색 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0),pst(0),prepst(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if T2 == -1 and T2[1] != -1 Then find(1); 즐거운 하루되세요 > NH_mo****** 님이 쓴 글입니다. > 제목 : Re : Re : 검색식 필요합니다 > > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 검색식 필요합니다 > 안녕하세요 예스스탁입니다. input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0),pst(0),prepst(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if pst <= 0 and T2 ==1 and T2[1] != 1 Then{ pst = 1; plot1(H,"검색",RED); } if pst == 1 and T1 == -1 and T1[1] != -1 Then{ pst = 0; prepst = pst[1]; plot1(H,"검색",CYAN); } if pst == 0 and prepst == 1 and T1 == 1 and T1[1] != 1 Then{ pst = 1; plot1(H,"검색",RED); } if pst >= 0 and T2 == -1 and T2[1] != -1 Then{ pst=-1; plot1(H,"검색",BLUE); } if pst == -1 and T1 == 1 and T1[1] != 1 Then{ pst = 0; prepst = pst[1]; plot1(H,"검색",MAGENTA); } if pst == 0 and prepst == -1 and T1 == -1 and T1[1] != -1 Then{ pst = -1; plot1(H,"검색",BLUE); } 즐거운 하루되세요 > NH_mo****** 님이 쓴 글입니다. > 제목 : 검색식 필요합니다 > 시스템수식입니다 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if MarketPosition <= 0 and T2 ==1 and T2[1] != 1 Then buy("b"); if MarketPosition == 1 and T1 == -1 and T1[1] != -1 Then exitlong("bx"); if MarketPosition == 0 and MarketPosition(1) == 1 and T1 == 1 and T1[1] != 1 Then buy("bb"); if MarketPosition >= 0 and T2 == -1 and T2[1] != -1 Then sell("s"); if MarketPosition == -1 and T1 == 1 and T1[1] != 1 Then ExitShort("sx"); if MarketPosition == 0 and MarketPosition(1) == -1 and T1 == -1 and T1[1] != -1 Then sell("ss"); 검색식을 만들어주세요 "plot은 기술적지표에서만 사용할수있습니다" 라고 에러가뜨네요 안됩니다
프로필 이미지

회원

2015-03-26 14:51:47

> 예스스탁 님이 쓴 글입니다. > 제목 : Re : Re : Re : 검색식 필요합니다 > 안녕하세요 예스스탁입니다. 해당식 검색식입니다. 검색식은 차트에 조건만족봉에 점을 찍어 표시하는 식입니다. 문의하신 내용이 종목검색식이시면 아래식을 이용하시면 됩니다. 1. 매수조건 만족하는 종목을 검색 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0),pst(0),prepst(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if T2 ==1 and T2[1] != 1 Then find(1); 2, 매도조건을 만족하는 종목을 검색 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0),pst(0),prepst(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if T2 == -1 and T2[1] != -1 Then find(1); 즐거운 하루되세요 > NH_mo****** 님이 쓴 글입니다. > 제목 : Re : Re : 검색식 필요합니다 > > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 검색식 필요합니다 > 안녕하세요 예스스탁입니다. input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0),pst(0),prepst(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if pst <= 0 and T2 ==1 and T2[1] != 1 Then{ pst = 1; plot1(H,"검색",RED); } if pst == 1 and T1 == -1 and T1[1] != -1 Then{ pst = 0; prepst = pst[1]; plot1(H,"검색",CYAN); } if pst == 0 and prepst == 1 and T1 == 1 and T1[1] != 1 Then{ pst = 1; plot1(H,"검색",RED); } if pst >= 0 and T2 == -1 and T2[1] != -1 Then{ pst=-1; plot1(H,"검색",BLUE); } if pst == -1 and T1 == 1 and T1[1] != 1 Then{ pst = 0; prepst = pst[1]; plot1(H,"검색",MAGENTA); } if pst == 0 and prepst == -1 and T1 == -1 and T1[1] != -1 Then{ pst = -1; plot1(H,"검색",BLUE); } 즐거운 하루되세요 > NH_mo****** 님이 쓴 글입니다. > 제목 : 검색식 필요합니다 > 시스템수식입니다 input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0),T1(0),T2(0); StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if StMomentum1 > StMomentum1[1] Then T1 = 1; if StMomentum1 < StMomentum1[1] Then T1 = -1; if StMomentum2 > StMomentum2[1] Then T2 = 1; if StMomentum2 < StMomentum2[1] Then T2 = -1; if MarketPosition <= 0 and T2 ==1 and T2[1] != 1 Then buy("b"); if MarketPosition == 1 and T1 == -1 and T1[1] != -1 Then exitlong("bx"); if MarketPosition == 0 and MarketPosition(1) == 1 and T1 == 1 and T1[1] != 1 Then buy("bb"); if MarketPosition >= 0 and T2 == -1 and T2[1] != -1 Then sell("s"); if MarketPosition == -1 and T1 == 1 and T1[1] != 1 Then ExitShort("sx"); if MarketPosition == 0 and MarketPosition(1) == -1 and T1 == -1 and T1[1] != -1 Then sell("ss"); 검색식을 만들어주세요 "plot은 기술적지표에서만 사용할수있습니다" 라고 에러가뜨네요 안됩니다 검색식하구, 시스템신호하구 맞질않네요 왜 그런가요?