커뮤니티

문의드립니다.

프로필 이미지
마린187
2011-02-28 12:42:37
716
글번호 36132
답변완료
안녕하세요 input : P1(14),P2(12),P3(25),SigPeriod(9); var : RSIshort(0),RSIlong(0),RSmacd(0),RSmacdSignal(0); RSIshort = EMA(RSI(P1),P2); RSIlong = EMA(RSI(P1),P3); RSmacd = RSIshort-RSIlong; RSmacdSignal= EMA(RSmacd,SigPeriod); plot1(RSmacd); plot2(RSmacdSignal); PlotBaseLine1(0, "기준선"); 위와같은 식을 1. 갭보정하고 2. 09:04 이후 - plot1이 PlotBaseLine1 상향돌파시 매수 (plot1이 PlotBaseLine1 상향돌파 상태라면 매수진입) 3. 09:04이후 - plot1이 PlotBaseLine1 하향돌파시 매도 (plot1이 PlotBaseLine1 상향돌파 상태라면 매도진입) 4. 15:00 청산 시스템식 부탁드립니다. 행복한 하루되세요*^^*
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-02-28 14:23:34

안녕하세요 예스스탁입니다. input : P1(14),P2(12),P3(25),SigPeriod(9); var : RSIshort(0),RSIlong(0),RSmacd(0),RSmacdSignal(0); Variables: RSIcount(0), DownAmt(0), UpAmt(0), UpSum(0), DownSum(0), UpAvg(0), DownAvg(0),RSIv(0); var : sumGap(0), gap(0), GO(0), GH(0), GL(0), GC(0); if date!=date[1] then { // 날짜가 변경되는 봉에서(분봉에서 첫번째 봉) gap = Open-Close[1]; // 일간갭 sumGap = sumGap+gap; // 일간갭 누적 } GO = O - sumGap;// 갭보정 시가 GH = H - sumGap;// 갭보정 고가 GL = L - sumGap;// 갭보정 저가 GC = C - sumGap; // 갭보정 종가 If CurrentBar == 1 AND P1 > 0 Then Begin UpSum = 0; DownSum = 0; For RSIcount = 0 To P1 - 1 Begin UpAmt = GC[RSIcount] - GC[RSIcount+1]; If UpAmt >= 0 Then DownAmt = 0; Else Begin DownAmt = -UpAmt; UpAmt = 0; End; UpSum = UpSum + UpAmt; DownSum = DownSum + DownAmt; End; UpAvg = UpSum / P1; DownAvg = DownSum / P1; End Else If CurrentBar > 1 AND P1 > 0 Then Begin UpAmt = GC[0] - GC[1]; If UpAmt >= 0 Then DownAmt = 0; Else Begin DownAmt = -UpAmt; UpAmt = 0; End; UpAvg = (UpAvg[1] * (P1 - 1) + UpAmt) / P1; DownAvg = (DownAvg[1] * (P1 - 1) + DownAmt) / P1; End; If UpAvg + DownAvg <> 0 Then RSIv = 100 * UpAvg / (UpAvg + DownAvg); Else RSIv = 0; RSIshort = EMA(RSIv,P2); RSIlong = EMA(RSIv,P3); RSmacd = RSIshort-RSIlong; RSmacdSignal= EMA(RSmacd,SigPeriod); if stime >= 90400 Then{ if RSmacd > 0 Then buy(); if RSmacd < 0 Then Sell(); } SetStopEndofday(150000); 즐거운 하루되세요 > 마린187 님이 쓴 글입니다. > 제목 : 문의드립니다. > 안녕하세요 input : P1(14),P2(12),P3(25),SigPeriod(9); var : RSIshort(0),RSIlong(0),RSmacd(0),RSmacdSignal(0); RSIshort = EMA(RSI(P1),P2); RSIlong = EMA(RSI(P1),P3); RSmacd = RSIshort-RSIlong; RSmacdSignal= EMA(RSmacd,SigPeriod); plot1(RSmacd); plot2(RSmacdSignal); PlotBaseLine1(0, "기준선"); 위와같은 식을 1. 갭보정하고 2. 09:04 이후 - plot1이 PlotBaseLine1 상향돌파시 매수 (plot1이 PlotBaseLine1 상향돌파 상태라면 매수진입) 3. 09:04이후 - plot1이 PlotBaseLine1 하향돌파시 매도 (plot1이 PlotBaseLine1 상향돌파 상태라면 매도진입) 4. 15:00 청산 시스템식 부탁드립니다. 행복한 하루되세요*^^*