커뮤니티

시스템에서 반영이 않됩니다 봐주세요

프로필 이미지
yjh7474
2022-12-21 03:49:22
1130
글번호 164746
답변완료
안녕하세요!! # 표시 줄을 삽입하였는데 시스템에서 반영되지 않아서요 다시한번 검토 부탁드립니다. 감사합니다^^ 매도후 매수청산 진입조건 1. 고가가 5평선, 20평선, 볼린저밴드 이평선 보다 크고 종가가 5평선, 20평선, 볼린저밴드 이평보다 작고 5평선이 전5평선보다 작고 cci 시그날이 전 시그날 보다 작고 stod가 전 stod 보다 작다. 2. 시가가 5평보다 크고 종가가 5평보다 작고 5평선이 전5평선보다 작고 20평선이 전20평선보다 작고 볼린저밴드 이평이 볼린저밴드 전 이평보다 작다. 위와 같은 조건을 삽입하려 합니다. if MarketPosition >= 0 and # h > mav1 and h > mav2 and h > BBmd and # c < mav1 and c < mav2 and c < BBmd and # mav1 < mav1[1] and # ccis < ccis[1] and # stod < stod[1] and # bbup < bbup[1] and # c < o and Scond1 == true Then Sell("S"); if MarketPosition == -1 Then { if CountIf(C>mav1,2) == 2 and (C[1] >= O[1] and C > O) Then ExitShort("sx1"); if CCIV > CCIS and stok > stod Then ExitShort("sx2"); if L <= bbdn and bbdn > bbdn[1] Then ExitShort("sx3"); if bbmd-mav1 > 51 and C >= O Then ExitShort("sx4"); if c >= BBmd Then ExitShort("sx5"); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-12-21 14:23:39

안녕하세요 예스스탁입니다. 이전 답변식에 추가해 드립니다. 1번 매도진입조건이면 S1, 2번 매도진입조거닝면 S2로 진입명이 표시됩니다. input : StartTime(070000),EndTime(053000),xtime(055000); input : P1(5),P2(20),sto1(10),sto2(5),sto3(5),BBP(20),Dv(2),CCIP(9),CCIsig(10); var : mav1(0),mav2(0),stok(0),stod(0),BBup(0),BBmd(0),BBdn(0),CCIV(0),CCIS(0); var : Bcond1(False),Bcond2(False),Scond1(False),Scond2(False); var : Tcond(false); IF xtime > 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 xtime <= starttime Then { SetStopEndofday(0); } } mav1 = ma(C,P1); mav2 = ma(C,P2); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); bbup = BollBandUp(BBP,dv); BBmd = ma(c,BBP); BBdn = BollBandDown(BBP,dv); CCIV = CCI(CCIP); CCIS = ma(CCIV,CCIsig); BCond1 = mav1 > mav1[1] and mav1[1] < mav1[2] and ((C > mav1 and mav1 > O) or (min(C,O) > mav1 and mav1 > L)) and stok >= stod and stok[2] < stod[2] and stok[1] < 50 and BBmd[1] < BBmd-2.5 and h < bbup; BCond2 = C[1] < mav1[1] and C > O and CCIV[1] < CCIS[1] and CCIV > CCIS and CCIV[1] < -100 and stod[1] < stod[2] and stod > stod[1]; Scond1 = H > mav1 and H > mav2 and H > Bbmd and C < mav1 and C < mav2 and C < Bbmd and O > BBmd and mav1 < mav1[1] and CCIS < CCIS[1] and stoD < stoD[1]; Scond2 = O > mav1 and mav1 > C and mav1 < mav1[1] and mav2 < mav2[1] and bbmd < bbmd[1]; if Tcond == true Then { if MarketPosition <= 0 Then { if Bcond1 == true Then Buy("b1"); if Bcond2 == true Then Buy("b2"); } if MarketPosition == 1 Then { if stok[1] > stod[1] and stok <= stod Then ExitLong("bx1"); if stok[1] > 80 and stok < stok[1] Then ExitLong("bx2"); if stime > 233000 and sTime < 235000 and C >= BBup+100 Then ExitLong("bx3"); if stime <= 233000 and C >= BBup+80 Then ExitLong("bx4"); if C < mav1 and C < L[BarsSinceEntry] Then ExitLong("bx5"); if CountIf(C<Bbmd,5) == 5 and BBmd < BBmd[1] Then ExitLong("bx6"); } if MarketPosition >= 0 and Scond1 == true Then Sell("S1"); if MarketPosition >= 0 and Scond2 == true Then Sell("S2"); if MarketPosition == -1 Then { if CountIf(C>mav1,2) == 2 and (C[1] >= O[1] and C > O) Then ExitShort("sx1"); if CCIV > CCIS and stok > stod Then ExitShort("sx2"); if L <= bbdn and bbdn > bbdn[1] Then ExitShort("sx3"); if bbmd-mav1 > 51 and C >= O Then ExitShort("sx4"); } } 즐거운 하루되세요 > yjh7474 님이 쓴 글입니다. > 제목 : 시스템에서 반영이 않됩니다 봐주세요 > 안녕하세요!! # 표시 줄을 삽입하였는데 시스템에서 반영되지 않아서요 다시한번 검토 부탁드립니다. 감사합니다^^ 매도후 매수청산 진입조건 1. 고가가 5평선, 20평선, 볼린저밴드 이평선 보다 크고 종가가 5평선, 20평선, 볼린저밴드 이평보다 작고 5평선이 전5평선보다 작고 cci 시그날이 전 시그날 보다 작고 stod가 전 stod 보다 작다. 2. 시가가 5평보다 크고 종가가 5평보다 작고 5평선이 전5평선보다 작고 20평선이 전20평선보다 작고 볼린저밴드 이평이 볼린저밴드 전 이평보다 작다. 위와 같은 조건을 삽입하려 합니다. if MarketPosition >= 0 and # h > mav1 and h > mav2 and h > BBmd and # c < mav1 and c < mav2 and c < BBmd and # mav1 < mav1[1] and # ccis < ccis[1] and # stod < stod[1] and # bbup < bbup[1] and # c < o and Scond1 == true Then Sell("S"); if MarketPosition == -1 Then { if CountIf(C>mav1,2) == 2 and (C[1] >= O[1] and C > O) Then ExitShort("sx1"); if CCIV > CCIS and stok > stod Then ExitShort("sx2"); if L <= bbdn and bbdn > bbdn[1] Then ExitShort("sx3"); if bbmd-mav1 > 51 and C >= O Then ExitShort("sx4"); if c >= BBmd Then ExitShort("sx5"); } }