커뮤니티
수식 작성 부탁드립니다.
2012-08-12 20:57:16
298
글번호 53690
코스닥, 코스피, 거래소 등 현물거래를 합니다.
매수기준
1차매수 - 일봉상 5일선과 하방으로 이격이 10% 일때 1000000원 매수
2차매수 - 1차매수 후 -6% 하락시 1000000원 매수
3차매수 - 2차매수 후 -6% 하락시 2000000원 매수
매도기준
1차매수시 - 3%수익시 30, 5%수익시 40, 7%수익시 30 의 비율로 매도
- 3%수익시 부터 수익보존 50% 전량매도 적용
2차매수시 - 0%수익시 50, 3%수익시 50의 비율로 매도
- 1.5%수익시 부터 수익보존 50% 전량매도 적용
3차매수시 - 0%수익시 전량 매도
당일 손절한 종목은 매수 금지
잘부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2012-08-13 14:59:50
안녕하세요
예스스탁입니다.
input : 금액1(1000000),금액2(1000000),금액3(2000000);
if CodeCategory == 1 Then
{
if BasePrice < 50000 Then
{
Var1 = int(int(금액1/C)/10)*10;
Var2 = int(int(금액1/C)/10)*10;
Var3 = int(int(금액1/C)/10)*10;
}
Else{
Var1 = int(금액1/C);
Var2 = int(금액2/C);
Var3 = int(금액3/C);
}
}
if CodeCategory == 2 Then
{
Var1 = int(금액1/C);
Var2 = int(금액2/C);
Var3 = int(금액3/C);
}
if CodeCategory == 6 Then
{
Var1 = int(금액1/(C*BigPointValue));
Var2 = int(금액2/(C*BigPointValue));
Var3 = int(금액3/(C*BigPointValue));
}
var1 = Disparity(5);
if MarketPosition == 0 and CrossDown(var1,90) and ExitDate(1) != sdate Then
buy("b1",OnClose,def,var1);
if MarketPosition == 1 and CountIF(CurrentContracts < CurrentContracts[1],BarsSinceEntry) < 1 Then{
if CurrentEntries == 1 Then
buy("b2",atlimit,EntryPrice*0.94,var2);
if CurrentEntries == 2 Then
buy("b3",atlimit,EntryPrice*0.88,var2);
}
if MarketPosition == 1 Then{
if CurrentContracts == MaxContracts and CurrentEntries > CurrentEntries[1] Then
{
if CodeCategory == 1 and BasePrice < 50000 Then
{
Var11 = int(int(CurrentContracts*0.3)/10)*10;
Var12 = int(int(CurrentContracts*0.4)/10)*10;
Var13 = int(int(CurrentContracts*0.5)/10)*10;
}
Else
{
Var11 = int(CurrentContracts*0.3);
Var12 = int(CurrentContracts*0.4);
Var13 = int(CurrentContracts*0.5);
}
}
if MaxEntries == 1 Then
{
if CurrentContracts == MaxContracts Then
ExitLong("bx11",atlimit,AvgEntryPrice*1.03,"",var11,1);
if CurrentContracts < MaxContracts Then
ExitLong("bx12",atlimit,AvgEntryPrice*1.04,"",var12,1);
if CurrentContracts < MaxContracts Then
ExitLong("bx13",atlimit,AvgEntryPrice*1.03);
}
if CurrentEntries == 2 Then
{
if CurrentContracts == MaxContracts Then
ExitLong("bx21",atlimit,EntryPrice,"",var13,1);
if CurrentContracts < MaxContracts Then
ExitLong("bx22",atlimit,EntryPrice*1.03);
}
if CurrentEntries == 3 Then
{
if CurrentContracts == MaxContracts Then
ExitLong("bx31",atlimit,EntryPrice);
}
}
즐거운 하루되세요
> 사과쥬스 님이 쓴 글입니다.
> 제목 : 수식 작성 부탁드립니다.
> 코스닥, 코스피, 거래소 등 현물거래를 합니다.
매수기준
1차매수 - 일봉상 5일선과 하방으로 이격이 10% 일때 1000000원 매수
2차매수 - 1차매수 후 -6% 하락시 1000000원 매수
3차매수 - 2차매수 후 -6% 하락시 2000000원 매수
매도기준
1차매수시 - 3%수익시 30, 5%수익시 40, 7%수익시 30 의 비율로 매도
- 3%수익시 부터 수익보존 50% 전량매도 적용
2차매수시 - 0%수익시 50, 3%수익시 50의 비율로 매도
- 1.5%수익시 부터 수익보존 50% 전량매도 적용
3차매수시 - 0%수익시 전량 매도
당일 손절한 종목은 매수 금지
잘부탁드립니다.
이전글