커뮤니티
시스템식 수정요
2014-01-21 13:57:50
130
글번호 71663
안녕하세요
매수를 지정날짜 다음날 시가 매수 하도록 추가해주세요
즐거운 하루되세요~~
input : 지정일(20140107),투입금액(500000);
var : idx(0),vol(0);
if CodeCategory == 1 Then{
if BasePrice < 50000 Then
vol = int(int(투입금액/C)/10)*10;
Else
vol = int(투입금액/C);
}
if CodeCategory == 2 Then
vol = int(투입금액/C);
var1 = ma(c,5);
#5일선 상향돌파이고 양봉이면 다음봉시가 매수
if sdate >= 지정일 Then{
if C < O and H >= var1 and var1 >= L Then
Condition1 = true;
if MarketPosition == 0 and Condition1 == true and C > var1 and
(C > O or (H == L)) Then{
buy("b",AtMarket,def,vol);
exitlong("bx1",AtStop,L-PriceScale);
}
if MarketPosition == 1 Then{
Condition1 = false;
ExitLong("bx1.",AtStop,L[BarsSinceEntry+1]-PriceScale);
if C >= EntryPrice*1.05 and L <= var1 and C < O Then
ExitLong("bx2",AtMarket);
}
}
SetStopProfittarget(100,PercentStop);
답변 1
예스스탁 예스스탁 답변
2014-01-21 18:28:15
안녕하세요
예스스탁입니다.
input : 지정일(20140107),투입금액(500000);
var : idx(0),vol(0);
if CodeCategory == 1 Then{
if BasePrice < 50000 Then
vol = int(int(투입금액/C)/10)*10;
Else
vol = int(투입금액/C);
}
if CodeCategory == 2 Then
vol = int(투입금액/C);
var1 = ma(c,5);
if sdate == 지정일 and stime == 150000 Then
buy("b1",AtMarket);
#5일선 상향돌파이고 양봉이면 다음봉시가 매수
if sdate >= 지정일 Then{
if C < O and H >= var1 and var1 >= L Then
Condition1 = true;
if MarketPosition == 0 and Condition1 == true and C > var1 and
(C > O or (H == L)) Then{
buy("b",AtMarket,def,vol);
exitlong("bx1",AtStop,L-PriceScale);
}
if MarketPosition == 1 Then{
Condition1 = false;
ExitLong("bx1.",AtStop,L[BarsSinceEntry+1]-PriceScale);
if C >= EntryPrice*1.05 and L <= var1 and C < O Then
ExitLong("bx2",AtMarket);
}
}
SetStopProfittarget(100,PercentStop);
시초가 매수는 사용하시는 차트의 주기에 따라 시간을 조절해 주셔야 합니다.
위식은 1분봉이나 5분봉 기준입니다.
사용하시는 차트에 아래 지표 적용하시고 일간의 마지막봉 시간확인하시기 바랍니다.
plot1(stime);
즐거운 하루되세요
> HI_jh***** 님이 쓴 글입니다.
> 제목 : 시스템식 수정요
> 안녕하세요
매수를 지정날짜 다음날 시가 매수 하도록 추가해주세요
즐거운 하루되세요~~
input : 지정일(20140107),투입금액(500000);
var : idx(0),vol(0);
if CodeCategory == 1 Then{
if BasePrice < 50000 Then
vol = int(int(투입금액/C)/10)*10;
Else
vol = int(투입금액/C);
}
if CodeCategory == 2 Then
vol = int(투입금액/C);
var1 = ma(c,5);
#5일선 상향돌파이고 양봉이면 다음봉시가 매수
if sdate >= 지정일 Then{
if C < O and H >= var1 and var1 >= L Then
Condition1 = true;
if MarketPosition == 0 and Condition1 == true and C > var1 and
(C > O or (H == L)) Then{
buy("b",AtMarket,def,vol);
exitlong("bx1",AtStop,L-PriceScale);
}
if MarketPosition == 1 Then{
Condition1 = false;
ExitLong("bx1.",AtStop,L[BarsSinceEntry+1]-PriceScale);
if C >= EntryPrice*1.05 and L <= var1 and C < O Then
ExitLong("bx2",AtMarket);
}
}
SetStopProfittarget(100,PercentStop);
다음글
이전글