커뮤니티

종목검색식 부탁할께요~

프로필 이미지
어둠의세력
2021-03-24 17:57:11
937
글번호 147381
답변완료
Input : Value(2.7), P1(36), P2(28), P3(5),StopPer(1); Var: ChUp(0), ChDn(0), slowK(0), slowD(0), Bap(0); setstoploss(StopPer); ChUP = dayOpen()+(DayHigh(1)-DayLow(1))/Value; ChDn = dayOpen()-(DayHigh(1)-DayLow(1))/Value; slowK = stochasticsK(p1,p2); slowD = stochasticsD(p1,p2,p3); bap = (dayLow()+dayhigh())/2; if CrossUp(slowK, slowD) then {var1 = C;var5 = 1;} if CrossDown(slowK, slowD) then {var2 = C;var6 = 1;} #buy/sell if dayindex()==0 then {if H >= ChUP then buy(); if L <= ChDn then sell(); var5 = 0; var6 = 0;} if C > (chUP+ChDn)/2 and accumN(iff(H>=ChUp,1,0),dayindex()+1)==0 and stime<143000 then buy("Buy",atstop,ChUP); if C < (chUP+ChDn)/2 and accumN(iff(L<=ChDn,1,0),dayindex()+1)==0 && stime<143000 then sell("Sell",atstop,ChDn); #exitlong if slowK < slowD and stime >=100000 and var6 == 1 then exitlong("EL1", atstop, var2-0.01); if stime <= 100000 and marketposition(0)==1 then exitlong("EL2",atstop,L[dayindex()]); if stime >=100000 and marketposition(0)==1 then {exitlong("EL3",atstop,(dayOpen()+(ChUp))/2);exitlong("EL4",atstop,bap);} if stime == 145000 then exitlong("EL5"); //exitshort if slowK > slowD and stime >=100000 and var5 == 1 then exitshort("ES1", atstop, var1+0.01); if stime <= 100000 and marketposition(0)==-1 then exitshort("ES2",atstop,H[dayindex()]); if stime >= 100000 and marketposition(0)==-1 then { exitshort("ES3",atstop,(dayOpen()+(ChDn))/2); exitshort("ES4",atstop,baP);} if stime == 145000 then Exitshort("ES5");
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-03-25 09:54:23

안녕하세요 예스스탁입니다. 시스템식만 올리시면 어떤 내용으로 종목검색하고자 하시는지 알수 없습니다. 수식과 함꼐 자세한 내용을 같이 올려주시기 바랍니다. 시스템 내용중 매수식을 종목검색식으로 작성해 드립니다. 당일 매수조건이 한번이상 만족한 종목이 검색됩니다. Input : Value(2.7); Var: ChUp(0), ChDn(0),BuyCond(False),count(0); ChUP = dayOpen()+(DayHigh(1)-DayLow(1))/Value; ChDn = dayOpen()-(DayHigh(1)-DayLow(1))/Value; if sDate != sDate[1] then { BuyCond = False; if H >= ChUP then BuyCond = TRUE; count = 0; } if H >= ChUp Then count = value1+1; Condition1 = C > (chUP+ChDn)/2 and count == 0 and stime < 143000 ; if sDate == sDate[1] and H >= CHup and Condition1[1] == False then BuyCond = true; if BuyCond == true Then Find(1); 즐거운 하루되세요 > 어둠의세력 님이 쓴 글입니다. > 제목 : 종목검색식 부탁할께요~ > Input : Value(2.7), P1(36), P2(28), P3(5),StopPer(1); Var: ChUp(0), ChDn(0), slowK(0), slowD(0), Bap(0); setstoploss(StopPer); ChUP = dayOpen()+(DayHigh(1)-DayLow(1))/Value; ChDn = dayOpen()-(DayHigh(1)-DayLow(1))/Value; slowK = stochasticsK(p1,p2); slowD = stochasticsD(p1,p2,p3); bap = (dayLow()+dayhigh())/2; if CrossUp(slowK, slowD) then {var1 = C;var5 = 1;} if CrossDown(slowK, slowD) then {var2 = C;var6 = 1;} #buy/sell if dayindex()==0 then {if H >= ChUP then buy(); if L <= ChDn then sell(); var5 = 0; var6 = 0;} if C > (chUP+ChDn)/2 and accumN(iff(H>=ChUp,1,0),dayindex()+1)==0 and stime<143000 then buy("Buy",atstop,ChUP); if C < (chUP+ChDn)/2 and accumN(iff(L<=ChDn,1,0),dayindex()+1)==0 && stime<143000 then sell("Sell",atstop,ChDn); #exitlong if slowK < slowD and stime >=100000 and var6 == 1 then exitlong("EL1", atstop, var2-0.01); if stime <= 100000 and marketposition(0)==1 then exitlong("EL2",atstop,L[dayindex()]); if stime >=100000 and marketposition(0)==1 then {exitlong("EL3",atstop,(dayOpen()+(ChUp))/2);exitlong("EL4",atstop,bap);} if stime == 145000 then exitlong("EL5"); //exitshort if slowK > slowD and stime >=100000 and var5 == 1 then exitshort("ES1", atstop, var1+0.01); if stime <= 100000 and marketposition(0)==-1 then exitshort("ES2",atstop,H[dayindex()]); if stime >= 100000 and marketposition(0)==-1 then { exitshort("ES3",atstop,(dayOpen()+(ChDn))/2); exitshort("ES4",atstop,baP);} if stime == 145000 then Exitshort("ES5");