커뮤니티

안녕하세요 두 가지 문의 드리고 싶습니다.

프로필 이미지
sw98
2022-05-14 22:19:26
763
글번호 158866
답변완료
전략 두 가지 부탁드립니다. 1.Envelope(5%) -종가 < 21EMA -종가 > 200일 sma -종가 >= 1000원 -5일 평균 거래량 > 25만주 인 경우 이후 진입 신호가 나오는 경우 진입 진입 신호 -21일 EMA 5거래일 연속 상승 and 종가 > 21EMA인 경우 종가에 매수 -수량 : 총 자산의 1%(원)/{종가 - (당일 저가-1틱)} 청산 신호 -Stop loss : 매수 당일의 저가 - 1틱 -이익 청산 : Upper envelope - 1틱 -Time stop : 매수 후 7거래일 이후 2. Bollinger bands -종가 > 200일 sma -종가 >= 1000원 -5일 평균 거래량 > 25만주 -21일 SMA 5거래일 연속 상승 and %b <= 20 and MFI >= 50 인 경우 이후 진입 신호가 나오는 경우 진입 진입신호 -종가 > 전일 고가인 경우 매수 -수량 : 총 자산의 1%(원)/{종가 - (당일 저가-1틱)} 청산 신호 -Stop loss : 매수 당일의 저가 - 1틱 -이익 청산 : 중간선 - 1틱 -Time stop : 매수 후 7거래일 이후 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-05-16 11:17:38

안녕하세요 예스스탁입니다. 1 input : 총자산(100000000); input : p1(21),P2(200),P3(5),EvPeriod(20),per(5); var : dd(0); var1 = ema(c,P1); Var2 = ma(C,P2); Var3 = ma(v,P3); Var4 = EnvelopeUp(evPeriod,Per); if bdate != Bdate[1] Then dd = dd+1; if C < var1 and C > Var2 and C >= 1000 and var3 >= 250000 Then Condition1 = true; if MarketPosition == 0 and Condition1 == true and CrossUp(c,var1) and CountIf(var1>var1[1],5) == 5 Then { Condition1 = False; Buy("b",OnClose,DEF,(총자산*0.01)/(C-(L-PriceScale*1))); ExitLong("bl1",AtStop,L-PriceScale*1); } if MarketPosition == 1 Then { ExitLong("bl2",AtStop,L[BarsSinceEntry]-PriceScale*1); ExitLong("bp",AtLimit,Var4+PriceScale*1); if dd >= dd+7 Then ExitLong("bx"); } 2 input : 총자산(100000000); input : p1(21),P2(200),P3(5),BBPeriod(20),dv(2),MFIPeriod(10); var : BBdn(0),BBUp(0),BBmd(0); var : dd(0); var1 = ma(c,P1); Var2 = ma(C,P2); Var3 = ma(v,P3); BBDn = BollBandDown(BBPeriod,Dv); BBUp = BollBandUp(BBPeriod,Dv); BBmd = ma(C,BBPeriod); Var4 = ((C-BBDn)/(BBUp-BBDn))*100; Var5 = MFI(MFIPeriod); if bdate != Bdate[1] Then dd = dd+1; if C > Var2 and C >= 1000 and var3 >= 250000 and CountIf(var1>var1[1],5) == 5 and Var4 <= 20 and Var5 >= 50 Then Condition1 = true; if MarketPosition == 0 and Condition1 == true and C > H[1] Then { Condition1 = False; Buy("b",OnClose,DEF,(총자산*0.01)/(C-(L-PriceScale*1))); ExitLong("bl1",AtStop,L-PriceScale*1); } if MarketPosition == 1 Then { ExitLong("bl2",AtStop,L[BarsSinceEntry]-PriceScale*1); ExitLong("bp",AtLimit,BBmd-PriceScale*1); if dd >= dd+7 Then ExitLong("bx"); } 즐거운 하루되세요 > sw98 님이 쓴 글입니다. > 제목 : 안녕하세요 두 가지 문의 드리고 싶습니다. > 전략 두 가지 부탁드립니다. 1.Envelope(5%) -종가 < 21EMA -종가 > 200일 sma -종가 >= 1000원 -5일 평균 거래량 > 25만주 인 경우 이후 진입 신호가 나오는 경우 진입 진입 신호 -21일 EMA 5거래일 연속 상승 and 종가 > 21EMA인 경우 종가에 매수 -수량 : 총 자산의 1%(원)/{종가 - (당일 저가-1틱)} 청산 신호 -Stop loss : 매수 당일의 저가 - 1틱 -이익 청산 : Upper envelope - 1틱 -Time stop : 매수 후 7거래일 이후 2. Bollinger bands -종가 > 200일 sma -종가 >= 1000원 -5일 평균 거래량 > 25만주 -21일 SMA 5거래일 연속 상승 and %b <= 20 and MFI >= 50 인 경우 이후 진입 신호가 나오는 경우 진입 진입신호 -종가 > 전일 고가인 경우 매수 -수량 : 총 자산의 1%(원)/{종가 - (당일 저가-1틱)} 청산 신호 -Stop loss : 매수 당일의 저가 - 1틱 -이익 청산 : 중간선 - 1틱 -Time stop : 매수 후 7거래일 이후 감사합니다.