커뮤니티

합성 시스템

프로필 이미지
회원
2016-05-10 11:45:09
129
글번호 97892
답변완료
귀사에서 제공하는 합성 시스템에 있는 cci-macd-dmi-stochastics 여기서 나오는 신호대로 진입하되 진입가의 상하 20틱사이에는 재진입을 안하고 손절이 날경우에는 손절남과 동시에 역포시션으로 진입하는 수식 부탁드립니다. 그리고 거래시간을 정할수 있는 수식도 부탁드립니다.
사용자 함수
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2016-05-10 18:49:09

안녕하세요 예스스탁입니다. input : 시작시간(90000),끝시간(143000); Var : value(0),Tcond(false); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then Tcond = true; if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then Tcond = false; value = 0; # 매수 / 매도청산 If CCI(9) > 0 Then value = 1; If MACD(12,26) > 0 Then value = value+1; If DIPlus(14) > DIMinus(14) Then value = value+1; If StochasticsK(12,5) > StochasticsD(12,5,5) Then value = value+1; # 매수/매도청산 If value >= 3 and Tcond == true Then { if MarketPosition == 0 Then Buy("b1"); if MarketPosition == -1 and abs(C-EntryPrice) > PriceScale*20 Then Buy("b2"); if MarketPosition == -1 and abs(C-EntryPrice) <= PriceScale*20 and C < EntryPrice Then ExitShort("sx"); if MarketPosition == -1 and abs(C-EntryPrice) <= PriceScale*20 and C > EntryPrice Then Buy("SB"); } value = 0; # 매도/매수청산 If CCI(9) < 0 Then value = 1; If MACD(12,26) < 0 Then value = value+1; If DIPlus(14) < DIMinus(14) Then value = value+1; If StochasticsK(12,5) < StochasticsD(12,5,5) Then value = value+1; If value >= 3 and Tcond == true Then { if MarketPosition == 0 Then sell("s1"); if MarketPosition == 1 and abs(C-EntryPrice) > PriceScale*20 Then sell("s2"); if MarketPosition == 1 and abs(C-EntryPrice) <= PriceScale*20 and C > EntryPrice Then Exitlong("bx"); if MarketPosition == 1 and abs(C-EntryPrice) <= PriceScale*20 and C < EntryPrice Then sell("BS"); } 즐거운 하루되세요 > 바람의노래 님이 쓴 글입니다. > 제목 : 합성 시스템 > 귀사에서 제공하는 합성 시스템에 있는 cci-macd-dmi-stochastics 여기서 나오는 신호대로 진입하되 진입가의 상하 20틱사이에는 재진입을 안하고 손절이 날경우에는 손절남과 동시에 역포시션으로 진입하는 수식 부탁드립니다. 그리고 거래시간을 정할수 있는 수식도 부탁드립니다.
프로필 이미지

예스스탁 예스스탁 답변

2016-05-11 16:40:35

안녕하세요 예스스탁입니다. input : 시작시간(90000),끝시간(143000); Var : value(0),Tcond(false); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then Tcond = true; if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then Tcond = false; value = 0; # 매수 / 매도청산 If CCI(9) > 0 Then value = 1; If MACD(12,26) > 0 Then value = value+1; If DIPlus(14) > DIMinus(14) Then value = value+1; If StochasticsK(12,5) > StochasticsD(12,5,5) Then value = value+1; # 매수/매도청산 If value >= 3 and Tcond == true Then { if MarketPosition == 0 Then Buy("b1"); if MarketPosition == -1 and C <= EntryPrice - PriceScale*20 Then Buy("b2"); if MarketPosition == -1 Then Buy("bs",AtStop,EntryPrice+PriceScale*20); } value = 0; # 매도/매수청산 If CCI(9) < 0 Then value = 1; If MACD(12,26) < 0 Then value = value+1; If DIPlus(14) < DIMinus(14) Then value = value+1; If StochasticsK(12,5) < StochasticsD(12,5,5) Then value = value+1; If value >= 3 and Tcond == true Then { if MarketPosition == 0 Then sell("s1"); if MarketPosition == 1 and C >= EntryPrice+PriceScale*20 Then sell("s2"); if MarketPosition == 1 Then Buy("sb",AtStop,EntryPrice-PriceScale*20); } 즐거운 하루되세요 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 합성 시스템 > 안녕하세요 예스스탁입니다. input : 시작시간(90000),끝시간(143000); Var : value(0),Tcond(false); if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then Tcond = true; if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then Tcond = false; value = 0; # 매수 / 매도청산 If CCI(9) > 0 Then value = 1; If MACD(12,26) > 0 Then value = value+1; If DIPlus(14) > DIMinus(14) Then value = value+1; If StochasticsK(12,5) > StochasticsD(12,5,5) Then value = value+1; # 매수/매도청산 If value >= 3 and Tcond == true Then { if MarketPosition == 0 Then Buy("b1"); if MarketPosition == -1 and abs(C-EntryPrice) > PriceScale*20 Then Buy("b2"); if MarketPosition == -1 and abs(C-EntryPrice) <= PriceScale*20 and C < EntryPrice Then ExitShort("sx"); if MarketPosition == -1 and abs(C-EntryPrice) <= PriceScale*20 and C > EntryPrice Then Buy("SB"); } value = 0; # 매도/매수청산 If CCI(9) < 0 Then value = 1; If MACD(12,26) < 0 Then value = value+1; If DIPlus(14) < DIMinus(14) Then value = value+1; If StochasticsK(12,5) < StochasticsD(12,5,5) Then value = value+1; If value >= 3 and Tcond == true Then { if MarketPosition == 0 Then sell("s1"); if MarketPosition == 1 and abs(C-EntryPrice) > PriceScale*20 Then sell("s2"); if MarketPosition == 1 and abs(C-EntryPrice) <= PriceScale*20 and C > EntryPrice Then Exitlong("bx"); if MarketPosition == 1 and abs(C-EntryPrice) <= PriceScale*20 and C < EntryPrice Then sell("BS"); } 즐거운 하루되세요 > 바람의노래 님이 쓴 글입니다. > 제목 : 합성 시스템 > 귀사에서 제공하는 합성 시스템에 있는 cci-macd-dmi-stochastics 여기서 나오는 신호대로 진입하되 진입가의 상하 20틱사이에는 재진입을 안하고 손절이 날경우에는 손절남과 동시에 역포시션으로 진입하는 수식 부탁드립니다. 그리고 거래시간을 정할수 있는 수식도 부탁드립니다.