커뮤니티
한가지만 더 여줘볼께요
2016-12-23 11:59:17
122
글번호 105237
연결선물1분봉 사용중입니다.
당일 매수 매도 진입을 한번만 하고...당일 청산 방법 사용중입니다.
당일 매수 매도 진입을...9시20분 전에는 하지 않고, 이후에나 조건 만족하는경우
하는걸로 수식 작성 바랍니다.
아래는 이전에 제가 물은 수식에 대한 답변인데, 밑에 수식을 바꺼주심
감사하겠습니다.
날씨 추운데 건강 조심하시고, 항상 빠른 답변 감사드립니다....(__)
----------- 50978번 답변내용. -------------
var : HH(0),LL(0),EntryCond(false),EntryCnt(0),T1(0);
var : ema1(0),ema2(0),ema3(0),ema4(0),HL(0),LH(0);
HH = dayhigh(1);
LL = daylow(1);
ema1 = ema(C,20);
ema2 = ema(C,35);
ema3 = ema(C,60);
ema4 = ema(C,120);
if bdate != bdate[1] Then{
T1 = TotalTrades;
EntryCond = false;
if O < HH and O > LL Then
entrycond = true;
}
if MarketPosition == 0 Then
EntryCnt = TotalTrades-T1;
Else
EntryCnt = (TotalTrades-T1)+1;
if entrycond == true and EntryCnt < 1 then{
if crossup(C,HH) Then
buy();
if CrossDown(c,LL) Then
sell();
}
if MarketPosition == 1 Then{
if max(ema1,ema2,ema3,ema4) < HH then{
if CrossDown(c,HH) Then
exitlong();
}
Else{
HL = max(ema1,ema2,ema3,ema4);
if ema1 > HH and ema1 < HL Then
HL = ema1;
if ema2 > HH and ema2 < HL Then
HL = ema2;
if ema3 > HH and ema3 < HL Then
HL = ema3;
if ema4 > HH and ema4 < HL Then
HL = ema4;
if CrossDown(C,HL) Then
exitlong();
}
}
if MarketPosition == 1 Then{
if min(ema1,ema2,ema3,ema4) > LL then{
if CrossUp(c,LL) Then
ExitShort();
}
Else{
LH = Min(ema1,ema2,ema3,ema4);
if ema1 < LL and ema1 > LH Then
HL = ema1;
if ema2 < LL and ema2 > LH Then
HL = ema2;
if ema3 < LL and ema3 > LH Then
HL = ema3;
if ema4 < LL and ema4 > LH Then
HL = ema4;
if CrossDown(C,LH) Then
exitlong();
}
}
SetStopEndofday(150000);
답변 1
예스스탁 예스스탁 답변
2016-12-23 13:52:19
안녕하세요
예스스탁입니다.
var : HH(0),LL(0),EntryCond(false),EntryCnt(0),T1(0);
var : ema1(0),ema2(0),ema3(0),ema4(0),HL(0),LH(0);
HH = dayhigh(1);
LL = daylow(1);
ema1 = ema(C,20);
ema2 = ema(C,35);
ema3 = ema(C,60);
ema4 = ema(C,120);
if bdate != bdate[1] Then{
T1 = TotalTrades;
EntryCond = false;
if O < HH and O > LL Then
entrycond = true;
}
if stime >= 92000 then{
if MarketPosition == 0 Then
EntryCnt = TotalTrades-T1;
Else
EntryCnt = (TotalTrades-T1)+1;
if entrycond == true and EntryCnt < 1 then{
if crossup(C,HH) Then
buy();
if CrossDown(c,LL) Then
sell();
}
}
if MarketPosition == 1 Then{
if max(ema1,ema2,ema3,ema4) < HH then{
if CrossDown(c,HH) Then
exitlong();
}
Else{
HL = max(ema1,ema2,ema3,ema4);
if ema1 > HH and ema1 < HL Then
HL = ema1;
if ema2 > HH and ema2 < HL Then
HL = ema2;
if ema3 > HH and ema3 < HL Then
HL = ema3;
if ema4 > HH and ema4 < HL Then
HL = ema4;
if CrossDown(C,HL) Then
exitlong();
}
}
if MarketPosition == 1 Then{
if min(ema1,ema2,ema3,ema4) > LL then{
if CrossUp(c,LL) Then
ExitShort();
}
Else{
LH = Min(ema1,ema2,ema3,ema4);
if ema1 < LL and ema1 > LH Then
HL = ema1;
if ema2 < LL and ema2 > LH Then
HL = ema2;
if ema3 < LL and ema3 > LH Then
HL = ema3;
if ema4 < LL and ema4 > LH Then
HL = ema4;
if CrossDown(C,LH) Then
exitlong();
}
}
SetStopEndofday(150000);
즐거운 하루되세요
> 묻어가는자 님이 쓴 글입니다.
> 제목 : 한가지만 더 여줘볼께요
> 연결선물1분봉 사용중입니다.
당일 매수 매도 진입을 한번만 하고...당일 청산 방법 사용중입니다.
당일 매수 매도 진입을...9시20분 전에는 하지 않고, 이후에나 조건 만족하는경우
하는걸로 수식 작성 바랍니다.
아래는 이전에 제가 물은 수식에 대한 답변인데, 밑에 수식을 바꺼주심
감사하겠습니다.
날씨 추운데 건강 조심하시고, 항상 빠른 답변 감사드립니다....(__)
----------- 50978번 답변내용. -------------
var : HH(0),LL(0),EntryCond(false),EntryCnt(0),T1(0);
var : ema1(0),ema2(0),ema3(0),ema4(0),HL(0),LH(0);
HH = dayhigh(1);
LL = daylow(1);
ema1 = ema(C,20);
ema2 = ema(C,35);
ema3 = ema(C,60);
ema4 = ema(C,120);
if bdate != bdate[1] Then{
T1 = TotalTrades;
EntryCond = false;
if O < HH and O > LL Then
entrycond = true;
}
if MarketPosition == 0 Then
EntryCnt = TotalTrades-T1;
Else
EntryCnt = (TotalTrades-T1)+1;
if entrycond == true and EntryCnt < 1 then{
if crossup(C,HH) Then
buy();
if CrossDown(c,LL) Then
sell();
}
if MarketPosition == 1 Then{
if max(ema1,ema2,ema3,ema4) < HH then{
if CrossDown(c,HH) Then
exitlong();
}
Else{
HL = max(ema1,ema2,ema3,ema4);
if ema1 > HH and ema1 < HL Then
HL = ema1;
if ema2 > HH and ema2 < HL Then
HL = ema2;
if ema3 > HH and ema3 < HL Then
HL = ema3;
if ema4 > HH and ema4 < HL Then
HL = ema4;
if CrossDown(C,HL) Then
exitlong();
}
}
if MarketPosition == 1 Then{
if min(ema1,ema2,ema3,ema4) > LL then{
if CrossUp(c,LL) Then
ExitShort();
}
Else{
LH = Min(ema1,ema2,ema3,ema4);
if ema1 < LL and ema1 > LH Then
HL = ema1;
if ema2 < LL and ema2 > LH Then
HL = ema2;
if ema3 < LL and ema3 > LH Then
HL = ema3;
if ema4 < LL and ema4 > LH Then
HL = ema4;
if CrossDown(C,LH) Then
exitlong();
}
}
SetStopEndofday(150000);