커뮤니티

추가부탁합니다

프로필 이미지
질갱이
2015-01-13 14:08:38
126
글번호 82210
답변완료
안녕하세요 밑에수식에서 1번::매수진입을2회로제한부탁합니다 그리구한번진입해서 수익창산시점부터도 진입제한 부탁합 니다 2번::매도진입도2회로제한부탁합니다 그리구한번진입해서 수익창산시점부터도 진입제한 부탁합니다 1.매수식 if dayindex == 0 Then{ if C > dayopen Then buy(); if C < dayopen Then exitlong(); } if dayindex > 0 Then{ if crossup(C , dayopen) Then buy(); if crossdown(C,dayopen) Then exitlong(); } #목표수익 SetStopProfittarget(PriceScale*30,PointStop); 2.매도식 if dayindex == 0 Then{ if C > dayopen Then exitshort(); if C < dayopen Then sell(); } if dayindex > 0 Then{ if crossup(C , dayopen) Then exitshort(); if crossdown(C,dayopen) Then sell(); } #목표수익 SetStopProfittarget(PriceScale*30,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-01-13 14:46:57

안녕하세요 예스스탁입니다. 1.매수 var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } Condition1 = ExitDate(1) == sdate and IsExitName("StopProfittarget",1) == true; if dayindex == 0 Then{ if C > dayopen Then buy(); if C < dayopen Then exitlong(); } if dayindex > 0 and count < 1 and Condition1 == false Then{ if crossup(C , dayopen) Then buy(); if crossdown(C,dayopen) Then exitlong(); } #목표수익 SetStopProfittarget(PriceScale*30,PointStop); 2. 매도 var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } Condition1 = ExitDate(1) == sdate and IsExitName("StopProfittarget",1) == true; if dayindex == 0 Then{ if C > dayopen Then exitshort(); if C < dayopen Then sell(); } if dayindex > 0 and count < 2 and Condition1 == false Then{ if crossup(C , dayopen) Then exitshort(); if crossdown(C,dayopen) Then sell(); } #목표수익 SetStopProfittarget(PriceScale*30,PointStop); 즐거운 하루되세요 > 질갱이 님이 쓴 글입니다. > 제목 : 추가부탁합니다 > 안녕하세요 밑에수식에서 1번::매수진입을2회로제한부탁합니다 그리구한번진입해서 수익창산시점부터도 진입제한 부탁합 니다 2번::매도진입도2회로제한부탁합니다 그리구한번진입해서 수익창산시점부터도 진입제한 부탁합니다 1.매수식 if dayindex == 0 Then{ if C > dayopen Then buy(); if C < dayopen Then exitlong(); } if dayindex > 0 Then{ if crossup(C , dayopen) Then buy(); if crossdown(C,dayopen) Then exitlong(); } #목표수익 SetStopProfittarget(PriceScale*30,PointStop); 2.매도식 if dayindex == 0 Then{ if C > dayopen Then exitshort(); if C < dayopen Then sell(); } if dayindex > 0 Then{ if crossup(C , dayopen) Then exitshort(); if crossdown(C,dayopen) Then sell(); } #목표수익 SetStopProfittarget(PriceScale*30,PointStop);