커뮤니티

재질문

프로필 이미지
외국인
2011-06-16 10:10:59
531
글번호 39814
답변완료
현재식 검토바랍니다 다른식과 같이 시간대로설정시 피라미딩 설정에서 모든을해야되는지 아니면 허용안함 을 선택해야하는지요 { If (stime > 91000 and stime < 113000) THEN { Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; if stime>=090100 and Stime< 150300 and marketposition==0 then if BarsSinceExit(1) > 1 then { if C > H[1] and ((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then buy("매수"); if MarketPosition == 1 Then sell("반대매도",AtStop,L[BarsSinceEntry]-0.5-PriceScale); ##진입봉의 고가는 H[BarsSinceEntry] if MarketPosition == -1 Then buy("SB",AtStop,H[BarsSinceEntry]+PriceScale); ##매도진입후 매도진입봉의 고가+1틱이상의 시세가 발생하면 매도로 전환 ##진입봉의 저가는 L[BarsSinceEntry] if MarketPosition == 1 Then sell("BS",AtStop,L[BarsSinceEntry]-PriceScale); ##매수진입후 매수진입봉의 저가-1틱 이하의 시세가 발생하면 매수로 전환 if C < L[1] and ((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then sell("매도"); if MarketPosition == -1 Then buy("반대매수",AtStop,H[BarsSinceEntry]+0.7+PriceScale); } } } If (stime >= 100000 and stime < 150000) THEN { var : slowK1(0), slowD1(0), slowK2(0), slowD2(0); Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; slowK1 = stochasticsK(12,5); slowD1 = stochasticsD(20,12,12); slowK2 = stochasticsK(12,5); slowD2 = stochasticsD(12,5,5); if BarsSinceExit(1) > 3 then { ##청산신호 후에 1봉이 경과 할때까지 재진입을 금지하라 if stime>=100000 and Stime< 150300 and marketposition==0 then if slowK1 > slowD1 and crossup(slowK2,slowD2) and ((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then buy("스토12"); if CrossDown(slowK1,slowD1[1]) and ((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then sell("청산매도"); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-06-16 11:17:39

안녕하세요 예스스탁입니다. 식만으로는 피라미딩설정에 대해 유추하기 어렵습니다. 피라미딩은 동일방향을 진입을 누적하는것으로 피라미딩의 모든진입신호허용은 작성된 모든 진입이 조건만 만족하면 횟수와 관계없이 발생토록 하는 것이며 다른진입신호허용은 모든 진입이 같은방향으로는 한번씩만 진입하게 하는것입니다. 작성하신 식은 진입이 무포지션이나 반대포지션시에 들어가게 되어 있어 특별히 피라미딩과는 관련이 없어 보입니다. 피라미딩은 허용안함으로 하셔야 할것 같습니다. 즐거운 하루되세요 > 외국인 님이 쓴 글입니다. > 제목 : 재질문 > 현재식 검토바랍니다 다른식과 같이 시간대로설정시 피라미딩 설정에서 모든을해야되는지 아니면 허용안함 을 선택해야하는지요 { If (stime > 91000 and stime < 113000) THEN { Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; if stime>=090100 and Stime< 150300 and marketposition==0 then if BarsSinceExit(1) > 1 then { if C > H[1] and ((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then buy("매수"); if MarketPosition == 1 Then sell("반대매도",AtStop,L[BarsSinceEntry]-0.5-PriceScale); ##진입봉의 고가는 H[BarsSinceEntry] if MarketPosition == -1 Then buy("SB",AtStop,H[BarsSinceEntry]+PriceScale); ##매도진입후 매도진입봉의 고가+1틱이상의 시세가 발생하면 매도로 전환 ##진입봉의 저가는 L[BarsSinceEntry] if MarketPosition == 1 Then sell("BS",AtStop,L[BarsSinceEntry]-PriceScale); ##매수진입후 매수진입봉의 저가-1틱 이하의 시세가 발생하면 매수로 전환 if C < L[1] and ((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then sell("매도"); if MarketPosition == -1 Then buy("반대매수",AtStop,H[BarsSinceEntry]+0.7+PriceScale); } } } If (stime >= 100000 and stime < 150000) THEN { var : slowK1(0), slowD1(0), slowK2(0), slowD2(0); Condition1 = IsExitName("StopProfittarget",1) and ExitDate(1) == sdate; slowK1 = stochasticsK(12,5); slowD1 = stochasticsD(20,12,12); slowK2 = stochasticsK(12,5); slowD2 = stochasticsD(12,5,5); if BarsSinceExit(1) > 3 then { ##청산신호 후에 1봉이 경과 할때까지 재진입을 금지하라 if stime>=100000 and Stime< 150300 and marketposition==0 then if slowK1 > slowD1 and crossup(slowK2,slowD2) and ((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then buy("스토12"); if CrossDown(slowK1,slowD1[1]) and ((Condition1 == true and BarsSinceExit(1) >= 1) or Condition1 == false) Then sell("청산매도"); } }