커뮤니티
행복; 시스템식 작성 바랍니다
2017-07-30 02:39:25
113
글번호 111655
한국의 금융산업 발전을 위해 불철주야 애쓰시는 귀하의 노고를 높이 평가합니다
시스템식 관련입니다
<< 시스템식 1 >>
- 주기; 일봉
input : 총투자금(천만원);
- if marketingposition == 0 and (조건A) 이면 총투자금의 20%를 종가에 1차 매수
- if marketingposition == 1 and (1차 매수 후 2차 매수전) and (손실금액이 30만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건B) 이면 총투자금의 19%를 종가에 2차 매수
- if marketingposition == 1 and (2차 매수 후 3차 매수전) and (손실금액이 40만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건C) 이면 총투자금의 18%를 종가에 3차 매수
- if marketingposition == 1 and (3차 매수 후 4차 매수전) and (손실금액이 50만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건D) 이면 총투자금의 17%를 종가에 4차 매수
- if marketingposition == 1 and (4차 매수 후 5차 매수전) and (손실금액이 60만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건E) 이면 총투자금의 16%를 종가에 5차 매수
- if marketingposition == 1 and (5차 매수 후) and (조건E) 이면 종가에 전량 매도
<< 시스템식 2 >>
- 주기; 1분봉
- 매매형태; day trading( 당일 9시 이후에 매수하여 당일 15시 20분 이전에 전량 매도 )
input : 총투자금(천만원);
- if marketingposition == 0 and (조건A) 이면 총투자금의 20%를 종가에 1차 매수
- if marketingposition == 1 and (1차 매수 후 2차 매수전) and (손실금액이 30만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건B) 이면 총투자금의 19%를 종가에 2차 매수
- if marketingposition == 1 and (2차 매수 후 3차 매수전) and (손실금액이 40만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건C) 이면 총투자금의 18%를 종가에 3차 매수
- if marketingposition == 1 and (3차 매수 후 4차 매수전) and (손실금액이 50만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건D) 이면 총투자금의 17%를 종가에 4차 매수
- if marketingposition == 1 and (4차 매수 후 5차 매수전) and (손실금액이 60만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건E) 이면 총투자금의 16%를 종가에 5차 매수
- if marketingposition == 1 and (5차 매수 후) and (조건E) 이면 종가에 전량 매도
- 15시20분에 전량 매도
<< 시스템식 3 >>
- 주기; 30분봉
- 매매형태; day trading 아님( 매수 후 조건이 맞으면 날자 제한 없이 추가 매수 후 여러날에 걸쳐서 보유 후 전량 매도)
input : 총투자금(천만원);
- if marketingposition == 0 and (조건A) 이면 총투자금의 20%를 종가에 1차 매수
- if marketingposition == 1 and (1차 매수 후 2차 매수전) and (손실금액이 30만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건B) 이면 총투자금의 19%를 종가에 2차 매수
- if marketingposition == 1 and (2차 매수 후 3차 매수전) and (손실금액이 40만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건C) 이면 총투자금의 18%를 종가에 3차 매수
- if marketingposition == 1 and (3차 매수 후 4차 매수전) and (손실금액이 50만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건D) 이면 총투자금의 17%를 종가에 4차 매수
- if marketingposition == 1 and (4차 매수 후 5차 매수전) and (손실금액이 60만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건E) 이면 총투자금의 16%를 종가에 5차 매수
- if marketingposition == 1 and (5차 매수 후) and (조건E) 이면 종가에 전량 매도
시스템식 작성바랍니다
수고하십시요^^
답변 1
예스스탁 예스스탁 답변
2017-07-31 14:30:42
안녕하세요
예스스탁입니다.
1
input : 총투자금(10000000);
if MarketPosition == 0 and 조건A Then
buy("b1",OnClose,def,Floor((총투자금*0.2)/C));
if MarketPosition == 1 and MaxEntries == 1 Then{
if 조건B Then
buy("b2",OnClose,def,Floor((총투자금*0.19)/C));
if PositionProfit <= -300000 Then
ExitLong("bx1");
}
if MarketPosition == 1 and MaxEntries == 2 Then{
if 조건C Then
buy("b3",OnClose,def,Floor((총투자금*0.18)/C));
if PositionProfit <= -400000 Then
ExitLong("bx2");
}
if MarketPosition == 1 and MaxEntries == 3 then{
if 조건D Then
buy("b4",OnClose,def,Floor((총투자금*0.17)/C));
if PositionProfit <= -500000 Then
ExitLong("bx3");
}
if MarketPosition == 1 and MaxEntries == 4 Then{
if 조건E Then
buy("b5",OnClose,def,Floor((총투자금*0.16)/C));
if PositionProfit <= -600000 Then
ExitLong("bx4");
}
if MarketPosition == 1 and MaxEntries == 5 Then{
if 조건F Then
ExitLong("bx5");
}
2
input : 총투자금(10000000);
if MarketPosition == 0 and 조건A Then
buy("b1",OnClose,def,Floor((총투자금*0.2)/C));
if MarketPosition == 1 and MaxEntries == 1 Then{
if 조건B Then
buy("b2",OnClose,def,Floor((총투자금*0.19)/C));
if PositionProfit <= -300000 Then
ExitLong("bx1");
}
if MarketPosition == 1 and MaxEntries == 2 Then{
if 조건C Then
buy("b3",OnClose,def,Floor((총투자금*0.18)/C));
if PositionProfit <= -400000 Then
ExitLong("bx2");
}
if MarketPosition == 1 and MaxEntries == 3 then{
if 조건D Then
buy("b4",OnClose,def,Floor((총투자금*0.17)/C));
if PositionProfit <= -500000 Then
ExitLong("bx3");
}
if MarketPosition == 1 and MaxEntries == 4 Then{
if 조건E Then
buy("b5",OnClose,def,Floor((총투자금*0.16)/C));
if PositionProfit <= -600000 Then
ExitLong("bx4");
}
if MarketPosition == 1 and MaxEntries == 5 Then{
if 조건F Then
ExitLong("bx5");
}
SetStopEndofday(152000);
3
1번식과 같습니다.
2번식도 1번과 같습니다 당일청산만 추가된 내용입니다.
즐거운 하루되세요
> 행복한가방 님이 쓴 글입니다.
> 제목 : 행복; 시스템식 작성 바랍니다
> 한국의 금융산업 발전을 위해 불철주야 애쓰시는 귀하의 노고를 높이 평가합니다
시스템식 관련입니다
<< 시스템식 1 >>
- 주기; 일봉
input : 총투자금(천만원);
- if marketingposition == 0 and (조건A) 이면 총투자금의 20%를 종가에 1차 매수
- if marketingposition == 1 and (1차 매수 후 2차 매수전) and (손실금액이 30만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건B) 이면 총투자금의 19%를 종가에 2차 매수
- if marketingposition == 1 and (2차 매수 후 3차 매수전) and (손실금액이 40만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건C) 이면 총투자금의 18%를 종가에 3차 매수
- if marketingposition == 1 and (3차 매수 후 4차 매수전) and (손실금액이 50만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건D) 이면 총투자금의 17%를 종가에 4차 매수
- if marketingposition == 1 and (4차 매수 후 5차 매수전) and (손실금액이 60만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건E) 이면 총투자금의 16%를 종가에 5차 매수
- if marketingposition == 1 and (5차 매수 후) and (조건E) 이면 종가에 전량 매도
<< 시스템식 2 >>
- 주기; 1분봉
- 매매형태; day trading( 당일 9시 이후에 매수하여 당일 15시 20분 이전에 전량 매도 )
input : 총투자금(천만원);
- if marketingposition == 0 and (조건A) 이면 총투자금의 20%를 종가에 1차 매수
- if marketingposition == 1 and (1차 매수 후 2차 매수전) and (손실금액이 30만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건B) 이면 총투자금의 19%를 종가에 2차 매수
- if marketingposition == 1 and (2차 매수 후 3차 매수전) and (손실금액이 40만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건C) 이면 총투자금의 18%를 종가에 3차 매수
- if marketingposition == 1 and (3차 매수 후 4차 매수전) and (손실금액이 50만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건D) 이면 총투자금의 17%를 종가에 4차 매수
- if marketingposition == 1 and (4차 매수 후 5차 매수전) and (손실금액이 60만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건E) 이면 총투자금의 16%를 종가에 5차 매수
- if marketingposition == 1 and (5차 매수 후) and (조건E) 이면 종가에 전량 매도
- 15시20분에 전량 매도
<< 시스템식 3 >>
- 주기; 30분봉
- 매매형태; day trading 아님( 매수 후 조건이 맞으면 날자 제한 없이 추가 매수 후 여러날에 걸쳐서 보유 후 전량 매도)
input : 총투자금(천만원);
- if marketingposition == 0 and (조건A) 이면 총투자금의 20%를 종가에 1차 매수
- if marketingposition == 1 and (1차 매수 후 2차 매수전) and (손실금액이 30만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건B) 이면 총투자금의 19%를 종가에 2차 매수
- if marketingposition == 1 and (2차 매수 후 3차 매수전) and (손실금액이 40만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건C) 이면 총투자금의 18%를 종가에 3차 매수
- if marketingposition == 1 and (3차 매수 후 4차 매수전) and (손실금액이 50만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건D) 이면 총투자금의 17%를 종가에 4차 매수
- if marketingposition == 1 and (4차 매수 후 5차 매수전) and (손실금액이 60만원이상) 이면 종가에 전량 매도
- if marketingposition == 1 and (조건E) 이면 총투자금의 16%를 종가에 5차 매수
- if marketingposition == 1 and (5차 매수 후) and (조건E) 이면 종가에 전량 매도
시스템식 작성바랍니다
수고하십시요^^