커뮤니티
시스템식 수정 부탁드립니다..
2016-05-11 22:18:53
123
글번호 97954
아래 시스템식을 적용한 일봉차트입니다..
2015년 7월23일
전일 종가대비 1.93% 갭상승출발 매수하고
고가 15.06%
종가 10.33%
매수당일 충분히 익절할수있었는데
다음날 익절하였읍니다.
매수당일 상승하면 익절할수있도록 일봉차트시스템식으로 수정부탁드립니다..
아래 시스템식은 일봉차트에서 매수당일 종가대비 다음날 분할매도식 인가요?
항상 감사드립니다..^^
#매수식======================================
if NextBarOpen >= C Then
buy("매수",AtMarket);
====================================================================
var : Xvol(0);
if MarketPosition == 1 Then{
if CodeCategoryEx == 11 and BasePrice < 50000 Then
xvol = int(int(CurrentContracts*0.5)/10)*10;
Else
xvol = int(CurrentContracts*0.5);
===================================
여기까지 정확한설명 부탁드려도될까요?
ExitLong("1%수익매도11",atlimit,EntryPrice*1.01,"",xvol,1);
ExitLong("2%수익매도21",atlimit,EntryPrice*1.02,"",xvol,1);
ExitLong("3%수익매도31",atlimit,EntryPrice*1.03,"");
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.01 Then
ExitLong("bx12",AtStop,EntryPrice*1.01);
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.02 Then
ExitLong("bx22",AtStop,EntryPrice*1.02);
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.03 Then
ExitLong("bx32",AtStop,EntryPrice*1.03);
}
SetStopEndofday(143000);
- 1. 98477_제목_없음.jpg (0.36 MB)
답변 1
예스스탁 예스스탁 답변
2016-05-12 17:50:57
안녕하세요
예스스탁입니다.
수식의 if문은 봉완성시 조건을 체크합니다.
if MarketPosition == 1 Then{
시가에 진입후 해당 봉이 완성이 되어야
위 조건이 true가 되므로 진입봉 다음봉 부터 청산이 발생하게 됩니다.
아래와 같이 지입시점에 동시에 셋팅하게 하면
진입봉에서 청산이 나올수 있습니다.
기준가격은 진입가격입니다. 매수당일 종가는 아닙니다.
이용에 참고하시기 바랍니다.
#매수식======================================
if NextBarOpen >= C Then{
buy("매수",AtMarket);
if CodeCategoryEx == 11 and C < 50000 Then
xvol = int(int(CurrentContracts*0.5)/10)*10;
Else
xvol = int(CurrentContracts*0.5);
ExitLong("진입봉1%수익매도11",atlimit,NextBarOpen*1.01,"",xvol,1);
ExitLong("진입봉2%수익매도21",atlimit,NextBarOpen*1.02,"",xvol,1);
ExitLong("진입봉3%수익매도31",atlimit,NextBarOpen*1.03,
}
====================================================================
var : Xvol(0);
if MarketPosition == 1 Then{
if CodeCategoryEx == 11 and BasePrice < 50000 Then
xvol = int(int(CurrentContracts*0.5)/10)*10;
Else
xvol = int(CurrentContracts*0.5);
===================================
여기까지 정확한설명 부탁드려도될까요?
ExitLong("1%수익매도11",atlimit,EntryPrice*1.01,"",xvol,1);
ExitLong("2%수익매도21",atlimit,EntryPrice*1.02,"",xvol,1);
ExitLong("3%수익매도31",atlimit,EntryPrice*1.03,"");
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.01 Then
ExitLong("bx12",AtStop,EntryPrice*1.01);
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.02 Then
ExitLong("bx22",AtStop,EntryPrice*1.02);
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.03 Then
ExitLong("bx32",AtStop,EntryPrice*1.03);
}
SetStopEndofday(143000);
즐거운 하루되세요
> parksh3 님이 쓴 글입니다.
> 제목 : 시스템식 수정 부탁드립니다..
> 아래 시스템식을 적용한 일봉차트입니다..
2015년 7월23일
전일 종가대비 1.93% 갭상승출발 매수하고
고가 15.06%
종가 10.33%
매수당일 충분히 익절할수있었는데
다음날 익절하였읍니다.
매수당일 상승하면 익절할수있도록 일봉차트시스템식으로 수정부탁드립니다..
아래 시스템식은 일봉차트에서 매수당일 종가대비 다음날 분할매도식 인가요?
항상 감사드립니다..^^
#매수식======================================
if NextBarOpen >= C Then
buy("매수",AtMarket);
====================================================================
var : Xvol(0);
if MarketPosition == 1 Then{
if CodeCategoryEx == 11 and BasePrice < 50000 Then
xvol = int(int(CurrentContracts*0.5)/10)*10;
Else
xvol = int(CurrentContracts*0.5);
===================================
여기까지 정확한설명 부탁드려도될까요?
ExitLong("1%수익매도11",atlimit,EntryPrice*1.01,"",xvol,1);
ExitLong("2%수익매도21",atlimit,EntryPrice*1.02,"",xvol,1);
ExitLong("3%수익매도31",atlimit,EntryPrice*1.03,"");
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.01 Then
ExitLong("bx12",AtStop,EntryPrice*1.01);
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.02 Then
ExitLong("bx22",AtStop,EntryPrice*1.02);
if CurrentContracts < MaxContracts and highest(H,BarsSinceEntry) > EntryPrice*1.03 Then
ExitLong("bx32",AtStop,EntryPrice*1.03);
}
SetStopEndofday(143000);
이전글