예스스탁
예스스탁 답변
2021-02-15 16:56:40
안녕하세요
예스스탁입니다.
1
input: Xtime(60000);
if sDate != sDate[1] Then
SetStopEndofday(xtime);
if Bdate != Bdate[1] Then
SetStopEndofday(0);
if MarketPosition == 0 and h < DayOpen+PriceScale*10 Then
Buy("b",AtStop,DayOpen+PriceScale*10,1);
if MarketPosition == 1 Then
{
if MaxEntries < 10 Then
Buy("bb",AtStop,DayOpen+(PriceScale*10)*(MaxEntries+1),1);
}
if MarketPosition == 0 and l > DayOpen-PriceScale*10 Then
Sell("s",AtStop,DayOpen-PriceScale*10,1);
if MarketPosition == -1 Then
{
if MaxEntries < 10 Then
Sell("ss",AtStop,DayOpen-(PriceScale*10)*(MaxEntries+1),1);
}
2
input: ntime(100000), Xtime(60000);
var : Tcond(false);
if sDate != sDate[1] Then
SetStopEndofday(xtime);
if Bdate != Bdate[1] Then
SetStopEndofday(0);
if (sdate != sdate[1] and stime >= Xtime) or
(sdate == sdate[1] and stime >= Xtime and stime[1] < Xtime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= ntime) or
(sdate == sdate[1] and stime >= ntime and stime[1] < ntime) Then
{
Tcond = true;
var1 = O;
}
if Tcond == true Then
{
if MarketPosition == 0 and h < var1+PriceScale*10 Then
Buy("b",AtStop,var1+PriceScale*10,1);
if MarketPosition == 1 Then
{
if MaxEntries < 10 Then
Buy("bb",AtStop,var1+(PriceScale*10)*(MaxEntries+1),1);
}
if MarketPosition == 0 and l > var1-PriceScale*10 Then
Sell("s",AtStop,var1-PriceScale*10,1);
if MarketPosition == -1 Then
{
if MaxEntries < 10 Then
Sell("ss",AtStop,var1-(var1*10)*(MaxEntries+1),1);
}
}
즐거운 하루되세요
> 양치기 님이 쓴 글입니다.
> 제목 : 시스템식 부탁드립니다.
> 항상 도움 주셔서 감사합니다.
아래 조건에 맞는 시스템식 부탁드립니다.
종목 : 해선
타임 : 10분
기준가 : 당일시가
매수조건 : 기준가에서 10틱 상승할때마다 1계약 매수 진입
- 최대 10계약까지 진입
매수청산 : 진입가격에서 15틱 상승시 청산
또는 현재가격이 기준가보다 작으면 매수포지션 모두 청산
매도조건 : 기준가에서 10틱 하락할때마다 1계약 매도 진입
- 최대 10계약까지 진입
매도청산 : 진입가격에서 15틱 하락시 청산
또는 현재가격이 기준가보다 크면 매도포지션 모두 청산
포지션 정리 : 매일 종가전에 모두 청산
*-----------------------------------------------------------------
종목 : 해선
타임 : 10분
기준가 : 매일아침 10시의 시가
매수조건 : 기준가에서 10틱 상승할때마다 1계약 매수 진입
- 최대 10계약까지 진입
매수청산 : 진입가격에서 15틱 상승시 청산
또는 현재가격이 기준가보다 작으면 매수포지션 모두 청산
매도조건 : 기준가에서 10틱 하락할때마다 1계약 매도 진입
- 최대 10계약까지 진입
매도청산 : 진입가격에서 15틱 하락시 청산
또는 현재가격이 기준가보다 크면 매도포지션 모두 청산
포지션 정리 : 매일 종가전에 모두 청산
감사합니다.