커뮤니티
수정부탁해요
2013-10-10 17:55:23
148
글번호 68308
자꾸 문의드려서 죄송요
생각했던것같이 안되네요
1.이평선을 빼주세요
2.특정시간대에만 매수가능하게만들어주세요 아침 9시부터~9시30분까지 매수신호가 나오게 해주세요 나머지시간에는 매수신호는 안나오게해주세요
3.아침시가가 플러스로시작되경우 매수하게 해주세요 에을들어 어제종가 1000원 오늘1100원이 되어햐 해요 시가출발이 990원으로 출발할경우 매수금지요
4.12프로이상시 매수금지로 되어있는데요 이것도 삭제해주세요
수고하세요
input : 투입금액(100000),P(20);
var : ma1(0),ma2(0),ma3(0),ma4(0),cond(false);
ma1 = ma(c,5);
ma2 = ma(c,20);
ma3 = ma(c,60);
ma4 = ma(c,240);
cond = ma1 > ma2 and ma2 > ma3 and ma3 > ma4;
if CodeCategory == 1 Then{ #코스피
if BasePrice < 50000 Then
Var1 = int(int(투입금액/C)/10)*10;
Else
Var1 = int(투입금액/C);
}
if CodeCategory == 2 Then#코스닥
Var1 = int(투입금액/C);
if CodeCategory == 6 Then#옵션
Var1 = int(투입금액/(C*BigPointValue));
If V >50000 and Upvol/DownVol*100 >=150 and c < DayClose(1)*1.12 and C > O and C > ma2 and cond == true Then{
if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then
buy("매수",onclose,def,var1);
}
if CodeCategory == 1 Then{
if BasePrice < 50000 Then
value1 = int(int(투입금액/C)/10)*10;
Else
value1 = int(투입금액/C);
}
if CodeCategory == 2 or CodeCategory == 8 Then
value1 = int(투입금액/C);
if MarketPosition == 0 and ExitDate(1) != sdate and C < DayClose(1)*1.12 and C > O and C > ma2 and cond == true Then
buy("매수2",OnClose,def,value1) ;
if MarketPosition == 1 Then{
if BarsSinceEntry >= 1 Then
ExitLong("손절",AtStop,L[BarsSinceEntry-1]-PriceScale);
}
value1 = ema(C, 1);
value2 = ema(C, 5);
# 매도/매수청산
If CrossDown(value1, value2) and C > EntryPrice Then
{
Sell();
}
답변 1
예스스탁 예스스탁 답변
2013-10-10 18:47:11
안녕하세요
예스스탁입니다.
input : 투입금액(100000),P(20);
var : ma2(0);
ma2 = ma(c,20);
if CodeCategory == 1 Then{ #코스피
if BasePrice < 50000 Then
Var1 = int(int(투입금액/C)/10)*10;
Else
Var1 = int(투입금액/C);
}
if CodeCategory == 2 Then#코스닥
Var1 = int(투입금액/C);
if CodeCategory == 6 Then#옵션
Var1 = int(투입금액/(C*BigPointValue));
If V >50000 and Upvol/DownVol*100 >=150
and C > O and C > ma2 and stime >= 90000 and stime < 93000 and dayopen > DayClose(1) Then{
if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then
buy("매수",onclose,def,var1);
}
if CodeCategory == 1 Then{
if BasePrice < 50000 Then
value1 = int(int(투입금액/C)/10)*10;
Else
value1 = int(투입금액/C);
}
if CodeCategory == 2 or CodeCategory == 8 Then
value1 = int(투입금액/C);
if MarketPosition == 0 and ExitDate(1) != sdate and
C > O and C > ma2 and stime >= 90000 and stime < 93000 and dayopen > DayClose(1) Then
buy("매수2",OnClose,def,value1) ;
if MarketPosition == 1 Then{
if BarsSinceEntry >= 1 Then
ExitLong("손절",AtStop,L[BarsSinceEntry-1]-PriceScale);
}
value1 = ema(C, 1);
value2 = ema(C, 5);
# 매도/매수청산
If CrossDown(value1, value2) and C > EntryPrice Then
{
Sell();
}
즐거운 하루되세요
> HI_jh***** 님이 쓴 글입니다.
> 제목 : 수정부탁해요
> 자꾸 문의드려서 죄송요
생각했던것같이 안되네요
1.이평선을 빼주세요
2.특정시간대에만 매수가능하게만들어주세요 아침 9시부터~9시30분까지 매수신호가 나오게 해주세요 나머지시간에는 매수신호는 안나오게해주세요
3.아침시가가 플러스로시작되경우 매수하게 해주세요 에을들어 어제종가 1000원 오늘1100원이 되어햐 해요 시가출발이 990원으로 출발할경우 매수금지요
4.12프로이상시 매수금지로 되어있는데요 이것도 삭제해주세요
수고하세요
input : 투입금액(100000),P(20);
var : ma1(0),ma2(0),ma3(0),ma4(0),cond(false);
ma1 = ma(c,5);
ma2 = ma(c,20);
ma3 = ma(c,60);
ma4 = ma(c,240);
cond = ma1 > ma2 and ma2 > ma3 and ma3 > ma4;
if CodeCategory == 1 Then{ #코스피
if BasePrice < 50000 Then
Var1 = int(int(투입금액/C)/10)*10;
Else
Var1 = int(투입금액/C);
}
if CodeCategory == 2 Then#코스닥
Var1 = int(투입금액/C);
if CodeCategory == 6 Then#옵션
Var1 = int(투입금액/(C*BigPointValue));
If V >50000 and Upvol/DownVol*100 >=150 and c < DayClose(1)*1.12 and C > O and C > ma2 and cond == true Then{
if MarketPosition == 0 or (MarketPosition == 1 and C <= EntryPrice*0.95) Then
buy("매수",onclose,def,var1);
}
if CodeCategory == 1 Then{
if BasePrice < 50000 Then
value1 = int(int(투입금액/C)/10)*10;
Else
value1 = int(투입금액/C);
}
if CodeCategory == 2 or CodeCategory == 8 Then
value1 = int(투입금액/C);
if MarketPosition == 0 and ExitDate(1) != sdate and C < DayClose(1)*1.12 and C > O and C > ma2 and cond == true Then
buy("매수2",OnClose,def,value1) ;
if MarketPosition == 1 Then{
if BarsSinceEntry >= 1 Then
ExitLong("손절",AtStop,L[BarsSinceEntry-1]-PriceScale);
}
value1 = ema(C, 1);
value2 = ema(C, 5);
# 매도/매수청산
If CrossDown(value1, value2) and C > EntryPrice Then
{
Sell();
}
다음글
이전글