커뮤니티
문의드립니다.
2012-09-05 08:03:15
229
글번호 54372
이전 답변 감사드립니다.
매수
현물매매입니다.
3분봉상
시스템이 적용된 차트상의 고가(갱신시 자동으로 변환될 수있었으면 좋겠습니다)대비
1차매수 -7% 100만원 매수
2차매수 -10% 100만원 매수
3차매수 -14% 100만원 매수
매도
1차매도 - 1차매수가 이후 최저점기준 3% - 전체물량의 20%, 5% - 전체물량의 30%, 7% - 전체물량의 50%, 9% - 전체물량의 100%
2차매도 - 2차매수가 이후 최저점기준 3% - 전체물량의 20%, 5% - 전체물량의 30%, 7% - 전체물량의 50%, 9% - 전체물량의 100%
3차매도 - 3차매수가 이후 최저점기준 3% - 전체물량의 20%, 5% - 전체물량의 30%, 7% - 전체물량의 50%, 9% - 전체물량의 100%
* 1차,2차,3차 모두, 매수는 딱 한번씩만 매수되도록 하고싶습니다.
답변 1
예스스탁 예스스탁 답변
2012-09-05 11:12:26
안녕하세요
예스스탁입니다.
피라미딩을 다른진입신호만허용으로 설정하시고 적용하시기 바랍니다.
/*시스템이 적용된 차트상의 고가(갱신시 자동으로 변환될 수있었으면 좋겠습니다)대비
1차매수 -7% 100만원 매수
2차매수 -10% 100만원 매수
3차매수 -14% 100만원 매수
*/
input : 투입금액(1000000);
if CodeCategory == 1 Then{ #코스피
if BasePrice < 50000 Then
Var1 = int(int(투입금액/C)/10)*10;
Else
Var1 = int(투입금액/C);
}
if CodeCategory == 2 or CodeCategory == 8 Then#코스닥 or etf
Var1 = int(투입금액/C);
if MarketPosition == 0 Then
buy("b1",atlimit,dayhigh*0.93,var1);
if MarketPosition == 1 and countif(CurrentContracts < CurrentContracts[1],BarsSinceEntry) < 1 Then{
if CurrentEntries == 1 Then
buy("b2",atlimit,dayhigh*0.90,var1);
if CurrentEntries == 2 Then
buy("b3",atlimit,dayhigh*0.86,var1);
}
if MarketPosition == 1 Then{
if CurrentContracts > CurrentContracts[1] Then{
var2 = L;
if CodeCategory == 1 and BasePrice < 50000 Then{
value1 = int(int(CurrentContracts*0.2)/10)*10;
value2 = int(int(CurrentContracts*0.3)/10)*10;
}
Else{
value1 = int(CurrentContracts*0.2);
value2 = int(CurrentContracts*0.3);
}
}
if L < value1 Then
value1 = L;
if countif(CurrentContracts < CurrentContracts[1],BarsSinceEntry) == 0 Then
ExitLong("bx1",AtLimit,var2*1.03,"",value1,1);
if countif(CurrentContracts < CurrentContracts[1],BarsSinceEntry) == 1 Then
ExitLong("bx2",AtLimit,var2*1.05,"",value2,1);
if countif(CurrentContracts < CurrentContracts[1],BarsSinceEntry) == 2 Then
ExitLong("bx3",AtLimit,var2*1.07);
}
즐거운 하루되세요
> 사과쥬스 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 이전 답변 감사드립니다.
매수
현물매매입니다.
3분봉상
시스템이 적용된 차트상의 고가(갱신시 자동으로 변환될 수있었으면 좋겠습니다)대비
1차매수 -7% 100만원 매수
2차매수 -10% 100만원 매수
3차매수 -14% 100만원 매수
매도
1차매도 - 1차매수가 이후 최저점기준 3% - 전체물량의 20%, 5% - 전체물량의 30%, 7% - 전체물량의 50%, 9% - 전체물량의 100%
2차매도 - 2차매수가 이후 최저점기준 3% - 전체물량의 20%, 5% - 전체물량의 30%, 7% - 전체물량의 50%, 9% - 전체물량의 100%
3차매도 - 3차매수가 이후 최저점기준 3% - 전체물량의 20%, 5% - 전체물량의 30%, 7% - 전체물량의 50%, 9% - 전체물량의 100%
* 1차,2차,3차 모두, 매수는 딱 한번씩만 매수되도록 하고싶습니다.
다음글
이전글