커뮤니티
수식 부탁드립니다.
2010-02-16 10:03:05
497
글번호 28070
1번.. <현물, 1분봉 운영예정입니다>
**당일 장 시작전 해당 차트를 적용하면, 오늘 조건이 맞으면 매매가 시작됨으로, 시스템식에"전일날짜"를 입력하여 당일부터 매매하는 방법으로 해야 할 것 같습니다.
*매수조건
-당일 시가가 전일 종가대비 0% ~ 4%이면, 당일 시가보다 -1%하락시 매수
-당일 시가가 전일 종가대비 -5% ~ -9%이면, 시가에 즉시 매수
*매수청산 조건
-매수가 대비 10% 상승시 청산
-매수가 대비 -4.5% 하락시 손절
2번.. 수식 변경 부탁드립니다.
*전일 날짜 다음날 매매 시작되는데요, 나머지는 모두 같구요.
-매수 청산시, -20% 이하로 하락하면 +5%때 청산이고, -20% 이하 하락하지 않으면 +10% 이익시 청산인데... --> -10%이하 하락시에는 +5%때 청산으로 변경 부탁합니다.(-10% 이하로 하락하지 않으면 +10%때 청산)
input : 전일날짜(20100125);
if stime == 150000 and MarketPosition == 0 and sdate == 전일날짜 Then
buy("b1",AtMarket);
if MarketPosition == 1 Then{
if CurrentEntries == 1 Then
buy("b2",atlimit,EntryPrice*0.8);
if CurrentEntries == 2 Then
buy("b3",atlimit,EntryPrice*0.6);
if CurrentEntries == 3 Then
buy("b4",atlimit,EntryPrice*0.4);
if CurrentEntries == 4 Then
buy("b5",atlimit,EntryPrice*0.2);
if CurrentEntries == 1 Then
exitlong("bx1",atlimit,EntryPrice*1.1);
Else
exitlong("bx2",atlimit,AvgEntryPrice*1.05);
}
감사합니다.
답변 1
예스스탁 예스스탁 답변
2010-02-16 11:24:08
안녕하세요
예스스탁입니다.
1.
input : 전일날짜(20100125);
if stime == 150000 and MarketPosition == 0 and sdate == 전일날짜 Then{
if NextBarOpen <= C*0.95 and NextBarOpen >= C*0.91 then{
buy("b1",AtMarket);
}
}
if MarketPosition == 0 and sdate > 전일날짜 Then{
if DayOpen >= DayClose(1) and DayOpen <= DayClose(1)*1.04 then{
buy("b2",AtStop,DayOpen*0.99);
}
}
SetStopProfittarget(10);
SetStopLoss(4.5);
2.
input : 전일날짜(20100125);
if stime == 150000 and MarketPosition == 0 and sdate == 전일날짜 Then
buy("b1",AtMarket);
if MarketPosition == 1 Then{
if CurrentEntries == 1 Then
buy("b2",atlimit,EntryPrice*0.8);
if CurrentEntries == 2 Then
buy("b3",atlimit,EntryPrice*0.6);
if CurrentEntries == 3 Then
buy("b4",atlimit,EntryPrice*0.4);
if CurrentEntries == 4 Then
buy("b5",atlimit,EntryPrice*0.2);
if CurrentEntries == 1 Then{
if Lowest(L,BarsSinceEntry) > EntryPrice*0.9 Then
exitlong("bx1",atlimit,EntryPrice*1.1);
if Lowest(L,BarsSinceEntry) <= EntryPrice*0.9 Then
exitlong("bx2",atlimit,EntryPrice*1.05);
}
Else{
exitlong("bx3",atlimit,AvgEntryPrice*1.05);
}
}
즐거운 하루되세요
> 쌀사비팔 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다.
> 1번.. <현물, 1분봉 운영예정입니다>
**당일 장 시작전 해당 차트를 적용하면, 오늘 조건이 맞으면 매매가 시작됨으로, 시스템식에"전일날짜"를 입력하여 당일부터 매매하는 방법으로 해야 할 것 같습니다.
*매수조건
-당일 시가가 전일 종가대비 0% ~ 4%이면, 당일 시가보다 -1%하락시 매수
-당일 시가가 전일 종가대비 -5% ~ -9%이면, 시가에 즉시 매수
*매수청산 조건
-매수가 대비 10% 상승시 청산
-매수가 대비 -4.5% 하락시 손절
2번.. 수식 변경 부탁드립니다.
*전일 날짜 다음날 매매 시작되는데요, 나머지는 모두 같구요.
-매수 청산시, -20% 이하로 하락하면 +5%때 청산이고, -20% 이하 하락하지 않으면 +10% 이익시 청산인데... --> -10%이하 하락시에는 +5%때 청산으로 변경 부탁합니다.(-10% 이하로 하락하지 않으면 +10%때 청산)
input : 전일날짜(20100125);
if stime == 150000 and MarketPosition == 0 and sdate == 전일날짜 Then
buy("b1",AtMarket);
if MarketPosition == 1 Then{
if CurrentEntries == 1 Then
buy("b2",atlimit,EntryPrice*0.8);
if CurrentEntries == 2 Then
buy("b3",atlimit,EntryPrice*0.6);
if CurrentEntries == 3 Then
buy("b4",atlimit,EntryPrice*0.4);
if CurrentEntries == 4 Then
buy("b5",atlimit,EntryPrice*0.2);
if CurrentEntries == 1 Then
exitlong("bx1",atlimit,EntryPrice*1.1);
Else
exitlong("bx2",atlimit,AvgEntryPrice*1.05);
}
감사합니다.
다음글
이전글