1. 10분봉 기준입니다.
2. 23시 이후 거래
3. 하루에 1회만 거래
4. 진입 방법 :
매수진입: 19-23시 사이에 고점보다 10틱 상향돌파하면 매수 진입
매도진입: 19-23시 사이에 저점보다 -10틱 하향돌파하면 매도 진입
5. 청산방법: 새벽 4시에 매수/매도 일괄 청산
답변 1
예스스탁
예스스탁 답변
2019-10-22 11:07:47
안녕하세요
예스스탁입니다.
input : S1(190000),E1(230000);
input : S2(230000),E2(040000);
var : hh(0),ll(0),Tcond1(false),TCond2(false),entry(0);
if (sdate != sdate[1] and stime >= E1) or
(sdate == sdate[1] and stime >= E1 and stime[1] < E1) then
{
Tcond1 = false;
}
if (sdate != sdate[1] and stime >= S1) or
(sdate == sdate[1] and stime >= S1 and stime[1] < S1) then
{
Tcond1 = true;
HH = H;
LL = L;
}
if tcond1 == true then
{
if h > hh Then
hh = h;
if l < ll Then
ll = l;
}
if (sdate != sdate[1] and stime >= E2) or
(sdate == sdate[1] and stime >= E2 and stime[1] < E2) then
{
Tcond2 = false;
if MarketPosition == 1 Then
ExitLong("bx");
if MarketPosition == -1 Then
ExitShort("sx");
}
if (sdate != sdate[1] and stime >= S2) or
(sdate == sdate[1] and stime >= S2 and stime[1] < S2) then
{
Tcond2 = true;
entry = 0;
}
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if tcond2 == true and entry < 1 then
{
if MarketPosition == 0 Then
buy("b",AtStop,hh+PriceScale*10);
if MarketPosition == 0 Then
sell("s",AtStop,ll-PriceScale*10);
}
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 해외선물(쿠르드 오일) 수식부탁해요~
> 1. 10분봉 기준입니다.
2. 23시 이후 거래
3. 하루에 1회만 거래
4. 진입 방법 :
매수진입: 19-23시 사이에 고점보다 10틱 상향돌파하면 매수 진입
매도진입: 19-23시 사이에 저점보다 -10틱 하향돌파하면 매도 진입
5. 청산방법: 새벽 4시에 매수/매도 일괄 청산