커뮤니티
시스템 수식 수정 부탁드립니다.
2016-07-12 07:36:10
199
글번호 99924
1. 아래의 수식으로 7월8일 알파칩스를 1분봉 챠트에 시험적용해 보았습니다.
이날 알파칩스는 갭상승하여 전일종가를 터치하지 않고 반등하여 시가를 돌파하였습니다.
원하는 수식은 다음과 같습니다.
당일 시초가 이후 전일종가까지 내려오지 않고 반등시 시가인 11,300원에 매수하여
고점인 14,550원을 찍고 -3% 지점에서 매도가 되는 것입니다.
2. 7월8일 메지온을 1분봉 챠트에 시험적용해 보았습니다.
이날의 시가는 전일종가와 같으므로 시가에 매수를 하여 추후 +5% 지점에 매도되기를 원합니다.
3. 7월8일 피에스케이를 1분봉 챠트에 시험적용해 보았습니다.
이날은 갭하락으로 출발하여 반등하였고 시가를 돌파하고 양봉으로 마감되었는데요.
시가를 돌파하는 12,000원에 매수되어 추후 +5% 지점에 매도되길 원합니다.
- 아래 -
input : 날짜 (20160708);
if sdate == 날짜 and
dayindex > 0 and
dayopen < DayClose(1)*1.07 and
dayopen > DayClose(1) and
CrossDown(C,DayClose(1)) Then
Buy("매수1");
if sdate == 날짜 and
dayindex > 0 and
dayopen > DayClose(1) and
dayopen < DayClose(1)*1.07 and
C[1] < dayopen and
crossup(c,dayopen) Then
Buy("매수2");
if sdate == 날짜 and
dayindex > 0 and
dayopen < DayClose(1) and
C[1] < dayopen and
crossup(c,dayopen) Then
Buy("매수3");
if NextBarSdate == 날짜 and
NextBarOpen == C Then
Buy("매수4",AtMarket);
SetStopProfittarget(5,PercentStop);
SetStopLoss(3,PercentStop);
if MarketPosition == 1 and IsEntryName("b2") == false Then
ExitLong("매도1",AtStop,EntryPrice*1.05);
if MarketPosition == 1 and IsEntryName("b2") == true Then
ExitLong("매도2",AtStop,highest(H,BarsSinceEntry)*0.97);
SetStopLoss(3,PercentStop);
답변 1
예스스탁 예스스탁 답변
2016-07-12 09:51:23
안녕하세요
예스스탁입니다.
식을 수정했습니다
input : 날짜 (20160708);
if date != date[1] Then
Condition1 = false;
if Condition1 == false and
sdate == 날짜 and
dayindex > 0 and
dayopen < DayClose(1)*1.07 and
dayopen > DayClose(1) and
CrossDown(C,DayClose(1)) Then{
Condition1 = true;
Buy("매수1");
}
if Condition1 == false and
sdate == 날짜 and
dayindex > 0 and
dayopen > DayClose(1) and
dayopen < DayClose(1)*1.07 and
daylow > dayclose(1) and
C > dayopen Then{
Condition1 = true;
Buy("매수2");
}
if Condition1 == false and
sdate == 날짜 and
dayindex > 0 and
dayopen < DayClose(1) and
C[1] < dayopen and
crossup(c,dayopen) Then{
Condition1 = true;
Buy("매수3");
}
if NextBarSdate == 날짜 and
NextBarSdate != sdate and
NextBarOpen == C Then{
Buy("매수4",AtMarket);
}
if MarketPosition == 1 and IsEntryName("매수2") == false Then
ExitLong("매도1",Atlimit,EntryPrice*1.05);
if MarketPosition == 1 and IsEntryName("매수2") == true Then
ExitLong("매도2",AtStop,highest(H,BarsSinceEntry)*0.97);
SetStopLoss(3,PercentStop);
즐거운 하루되세요
> 승부사1 님이 쓴 글입니다.
> 제목 : 시스템 수식 수정 부탁드립니다.
> 1. 아래의 수식으로 7월8일 알파칩스를 1분봉 챠트에 시험적용해 보았습니다.
이날 알파칩스는 갭상승하여 전일종가를 터치하지 않고 반등하여 시가를 돌파하였습니다.
원하는 수식은 다음과 같습니다.
당일 시초가 이후 전일종가까지 내려오지 않고 반등시 시가인 11,300원에 매수하여
고점인 14,550원을 찍고 -3% 지점에서 매도가 되는 것입니다.
2. 7월8일 메지온을 1분봉 챠트에 시험적용해 보았습니다.
이날의 시가는 전일종가와 같으므로 시가에 매수를 하여 추후 +5% 지점에 매도되기를 원합니다.
3. 7월8일 피에스케이를 1분봉 챠트에 시험적용해 보았습니다.
이날은 갭하락으로 출발하여 반등하였고 시가를 돌파하고 양봉으로 마감되었는데요.
시가를 돌파하는 12,000원에 매수되어 추후 +5% 지점에 매도되길 원합니다.
- 아래 -
input : 날짜 (20160708);
if sdate == 날짜 and
dayindex > 0 and
dayopen < DayClose(1)*1.07 and
dayopen > DayClose(1) and
CrossDown(C,DayClose(1)) Then
Buy("매수1");
if sdate == 날짜 and
dayindex > 0 and
dayopen > DayClose(1) and
dayopen < DayClose(1)*1.07 and
C[1] < dayopen and
crossup(c,dayopen) Then
Buy("매수2");
if sdate == 날짜 and
dayindex > 0 and
dayopen < DayClose(1) and
C[1] < dayopen and
crossup(c,dayopen) Then
Buy("매수3");
if NextBarSdate == 날짜 and
NextBarOpen == C Then
Buy("매수4",AtMarket);
SetStopProfittarget(5,PercentStop);
SetStopLoss(3,PercentStop);
if MarketPosition == 1 and IsEntryName("b2") == false Then
ExitLong("매도1",AtStop,EntryPrice*1.05);
if MarketPosition == 1 and IsEntryName("b2") == true Then
ExitLong("매도2",AtStop,highest(H,BarsSinceEntry)*0.97);
SetStopLoss(3,PercentStop);