커뮤니티
수고하십니다 수식 문의 하려구요..
2013-01-09 22:31:33
263
글번호 57976
첫 진입(30만원)은 시가(+1호가)에 매수해서 30프로 수익이면 매도(즉시) 하고,수익이 마이너스로 바뀌면 다시 3일선이 5일선을 골든크로스하면 매수즉시(물타기,30만원)하여 플러스 2프로(평균단가)면 매도 평균 단가가 2프로 안되면 3일선이 5일선 골든크로스 할때마다 3번째 매수(15만원씩)에는 하는 식 가르쳐주세요 언젠가 2프로 수익 날때까지 ㅋ
그리고 매도하면 수식 종료 되는걸로 해주세요
즐거운 하루되세요 ~~~~
답변 1
예스스탁 예스스탁 답변
2013-01-10 11:24:59
안녕하세요
예스스탁입니다.
1분봉 차트에 적용하시기 바랍니다.
진입을 누적해야 하므로
시스템 트레이딩 설정창의 피라미딩 탭에서
피라미딩을 모든진입신호 허용으로 설정하시고 적용하셔야 합니다.
3번까지만 추가매수하고자 하시면 1번식을 이용하시고
3번이상 추가매수하고자 하시면 2번식을 이용하시면 됩니다.
1번식
input : 투입금액1(300000),투입금액2(150000);
var : Vol1(0),Vol2(0);
if CodeCategory == 1 Then{
if BasePrice < 50000 Then{
Vol1 = int(int(투입금액1/C)/10)*10;
Vol2 = int(int(투입금액2/C)/10)*10;
}
Else{
Vol1 = int(투입금액1/C);
Vol2 = int(투입금액2/C);
}
}
if CodeCategory == 2 or CodeCategory == 8 Then{
Vol1= int(투입금액1/C);
Vol2= int(투입금액2/C);
}
if date != date[1] Then
Condition1 = false;
if MarketPosition == 1 Then
Condition1 = true;
if MarketPosition == 0 and stime == 150000 Then
buy("b1",AtStop,dayopen+PriceScale*1,vol1);
if MarketPosition == 0 and Condition1 == false and stime < 150000 Then
buy("b1.",AtStop,dayopen+PriceScale*1,vol1);
if MarketPosition == 1 Then{
if CurrentEntries == 1 and crossup(var1,var2) Then
buy("b2",OnClose,def,vol1);
if CurrentEntries == 2 and crossup(var1,var2) Then
buy("b3",OnClose,def,vol2);
if CurrentEntries == 1 Then
exitlong("bx1",atlimit,EntryPrice*1.3);
if CurrentEntries > 1 Then
exitlong("bx2",atlimit,AvgEntryPrice*1.02);
}
2번식
input : 투입금액1(300000),투입금액2(150000);
var : Vol1(0),Vol2(0);
if CodeCategory == 1 Then{
if BasePrice < 50000 Then{
Vol1 = int(int(투입금액1/C)/10)*10;
Vol2 = int(int(투입금액2/C)/10)*10;
}
Else{
Vol1 = int(투입금액1/C);
Vol2 = int(투입금액2/C);
}
}
if CodeCategory == 2 or CodeCategory == 8 Then{
Vol1= int(투입금액1/C);
Vol2= int(투입금액2/C);
}
if date != date[1] Then
Condition1 = false;
if MarketPosition == 1 Then
Condition1 = true;
if MarketPosition == 0 and stime == 150000 Then
buy("b1",AtStop,dayopen+PriceScale*1,vol1);
if MarketPosition == 0 and Condition1 == false and stime < 150000 Then
buy("b1.",AtStop,dayopen+PriceScale*1,vol1);
if MarketPosition == 1 Then{
if CurrentEntries == 1 and crossup(var1,var2) Then
buy("b2",OnClose,def,vol1);
if CurrentEntries >= 2 and crossup(var1,var2) Then
buy("b3",OnClose,def,vol2);
if CurrentEntries == 1 Then
exitlong("bx1",atlimit,EntryPrice*1.3);
if CurrentEntries > 1 Then
exitlong("bx2",atlimit,AvgEntryPrice*1.02);
}
즐거운 하루되세요
> HI_jht7469 님이 쓴 글입니다.
> 제목 : 수고하십니다 수식 문의 하려구요..
> 첫 진입(30만원)은 시가(+1호가)에 매수해서 30프로 수익이면 매도(즉시) 하고,수익이 마이너스로 바뀌면 다시 3일선이 5일선을 골든크로스하면 매수즉시(물타기,30만원)하여 플러스 2프로(평균단가)면 매도 평균 단가가 2프로 안되면 3일선이 5일선 골든크로스 할때마다 3번째 매수(15만원씩)에는 하는 식 가르쳐주세요 언젠가 2프로 수익 날때까지 ㅋ
그리고 매도하면 수식 종료 되는걸로 해주세요
즐거운 하루되세요 ~~~~
다음글
이전글