커뮤니티
문의
2014-04-07 16:47:58
167
글번호 74172
ETF식
1.
아래의 식에서 매수식을 변형해 주세요
매수: 최근 매수 가격에서 PER(2) 하락시 투자금액 2배 증액매수
최근 매수 가격에서 PER(2) 상승시 투자금액 1배 매수
예를들면 시장가 1000원에 투자금액 십만원 첫번째 매수 한후에
최근 매수가격 1000원에서 980으로 하락시 투자금액 2배 이십만원 증액매수
최근 매수가격 980원에서 960으로 하락시 투자금액 2배 이십만원 증액매수
최근 매수가격 960에서 980으로 상승시 투자금액 1배 십만원 매수
최근 매수가격 980에서 1000원으로 상승시 투자금액 1배 십만원 매수
2.
아래 식에서 매도식을 변형해 주세요.
매도: 평균 매수 가격이 0.5%씩 오를때마다 총매수수량의 10%를 분할매도
Profit(5) 도달시 매도 청산
3. 새식을 작성해 주세요.
매수: 가격이 어제고가를 상향돌파시 분봉 종가에 그날 한번만 매수
다음날 가격이 어제고가를 상향돌파시 분봉 종가에 그날 한번만 매수
매도: 매수평균값이 0.5% 오를때마다 매수수량의 10% 분할매도,
매수평균 목표가 5% 오를때 매도청산
--------------------------------------------------------------------------------------
Input : 투자금액 (100000), Per(2), Profit(5), 시작날짜 (20140101);
var : Vol(0);
if CodeCategoryEx == 11 and BasePrice > 500 Then
vol = floor(int(투자금액/C)/10)*10;
Else
vol = Floor(투자금액/C);
if MarketPosition == 0 and crossdown(c,ma(c,2)) and sdate >= 시작날짜 Then
buy("b",OnClose,def,vol);
if MarketPosition == 1 Then{
ExitLong("bx",atlimit,AvgEntryPrice*(1+Profit/100));
buy("bb",atlimit,EntryPrice*(1-(Per*CurrentEntries)/100),Vol);
}
답변 1
예스스탁 예스스탁 답변
2014-04-07 17:37:10
안녕하세요
예스스탁입니다.
모두 피라미딩을 모든진입신호 허용으로 설정하고 적요하셔야 합니다.
1.2
input : 금액(1000000),per(2),Profit(0.5);
var : Vol1(0),vol2(0);
if CodeCategoryEx == 11 and BasePrice < 50000 Then{
vol1 = int(int((금액/C))/10)*10;
vol2 = int(int((금액*2)/C)/10)*10;
}
Else{
vol1 = int(금액/C);
vol2 = int((금액*2)/C);
}
#첫매수
if MarketPosition == 0 and crossup(ma(c,5),ma(c,20)) Then
buy("b1",OnClose,def,vol1);
if MarketPosition == 1 Then{
buy("b21",AtStop,LatestEntryPrice(0)*(1+Per/100),vol1);
buy("b22",AtLimit,LatestEntryPrice(0)*(1-Per/100),vol2);
if CurrentContracts < CurrentContracts[1] Then
var1 = var1+1;
ExitLong("bx1",atlimit,AvgEntryPrice*(1+(Profit*(var1+1))/100),"",Floor(MaxContracts*0.1),2);
ExitLong("bx2",atlimit,AvgEntryPrice*1.05);
}
Else
var1 = 0;
3.
input : 금액(1000000),Profit(0.5);
var : Vol(0);
if CodeCategoryEx == 11 and BasePrice < 50000 Then
vol = int(int((금액/C))/10)*10;
Else
vol = int(금액/C);
if date != date[1] Then
Condition1 = false;
if Condition1 == false and crossup(c,dayhigh) Then{
Condition1 = true;
buy("b",OnClose,def,vol);
}
if MarketPosition == 1 Then{
if CurrentContracts < CurrentContracts[1] Then
var1 = var1+1;
ExitLong("bx1",atlimit,AvgEntryPrice*(1+(Profit*(var1+1))/100),"",Floor(MaxContracts*0.1),2);
ExitLong("bx2",atlimit,AvgEntryPrice*1.05);
}
Else
var1 = 0;
즐거운 하루되세요
> erwe343 님이 쓴 글입니다.
> 제목 : 문의
> ETF식
1.
아래의 식에서 매수식을 변형해 주세요
매수: 최근 매수 가격에서 PER(2) 하락시 투자금액 2배 증액매수
최근 매수 가격에서 PER(2) 상승시 투자금액 1배 매수
예를들면 시장가 1000원에 투자금액 십만원 첫번째 매수 한후에
최근 매수가격 1000원에서 980으로 하락시 투자금액 2배 이십만원 증액매수
최근 매수가격 980원에서 960으로 하락시 투자금액 2배 이십만원 증액매수
최근 매수가격 960에서 980으로 상승시 투자금액 1배 십만원 매수
최근 매수가격 980에서 1000원으로 상승시 투자금액 1배 십만원 매수
2.
아래 식에서 매도식을 변형해 주세요.
매도: 평균 매수 가격이 0.5%씩 오를때마다 총매수수량의 10%를 분할매도
Profit(5) 도달시 매도 청산
3. 새식을 작성해 주세요.
매수: 가격이 어제고가를 상향돌파시 분봉 종가에 그날 한번만 매수
다음날 가격이 어제고가를 상향돌파시 분봉 종가에 그날 한번만 매수
매도: 매수평균값이 0.5% 오를때마다 매수수량의 10% 분할매도,
매수평균 목표가 5% 오를때 매도청산
--------------------------------------------------------------------------------------
Input : 투자금액 (100000), Per(2), Profit(5), 시작날짜 (20140101);
var : Vol(0);
if CodeCategoryEx == 11 and BasePrice > 500 Then
vol = floor(int(투자금액/C)/10)*10;
Else
vol = Floor(투자금액/C);
if MarketPosition == 0 and crossdown(c,ma(c,2)) and sdate >= 시작날짜 Then
buy("b",OnClose,def,vol);
if MarketPosition == 1 Then{
ExitLong("bx",atlimit,AvgEntryPrice*(1+Profit/100));
buy("bb",atlimit,EntryPrice*(1-(Per*CurrentEntries)/100),Vol);
}
다음글
이전글