예스스탁
예스스탁 답변
2021-05-06 13:23:40
안녕하세요
예스스탁입니다.
1
input : 전환선기간(0),기준선기간(26),선행스팬2기간(52),P(20);
input : StartTime(90000),EndTime(153000);
var : Tcond(false);
var : 전환선(0),기준선(0),선행스팬1(0),선행스팬2(0),구름상단(0),구름하단(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
전환선 = (highest(H,전환선기간)+lowest(L,전환선기간))/2;
기준선 = (highest(H,기준선기간)+lowest(L,기준선기간))/2;
선행스팬1 = (전환선+기준선)/2;
선행스팬2 = (highest(H,선행스팬2기간)+lowest(L,선행스팬2기간))/2;
구름상단 = max(선행스팬1[25],선행스팬2[25]);
구름하단 = max(선행스팬1[25],선행스팬2[25]);
var1 = (DayHigh+DayLow)/2;
Var2 = ma(c,P);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
Tcond = true;
if Tcond == true Then
{
if C > var1 and CrossUp(C,구름상단) and CrossUp(c,Var2) Then
Buy();
if C < var1 and CrossDown(C,구름하단) and CrossDown(c,Var2) Then
Sell();
}
2
input : 전환선기간(0),기준선기간(26),선행스팬2기간(52),P(20);
input : StartTime(90000),EndTime(153000);
var : Tcond(false);
var : 전환선(0),기준선(0),선행스팬1(0),선행스팬2(0),구름상단(0),구름하단(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
전환선 = (highest(H,전환선기간)+lowest(L,전환선기간))/2;
기준선 = (highest(H,기준선기간)+lowest(L,기준선기간))/2;
선행스팬1 = (전환선+기준선)/2;
선행스팬2 = (highest(H,선행스팬2기간)+lowest(L,선행스팬2기간))/2;
구름상단 = max(선행스팬1[25],선행스팬2[25]);
구름하단 = max(선행스팬1[25],선행스팬2[25]);
var1 = (DayHigh+DayLow)/2;
Var2 = ma(c,P);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
Tcond = true;
if Tcond == true Then
{
if C > O and CrossUp(C,var1) and CrossUp(C,구름상단) and CrossUp(c,Var2) Then
Buy();
if C < O and CrossDown(C,var1) and CrossDown(C,구름하단) and CrossDown(c,Var2) Then
Sell();
}
즐거운 하루되세요
> gopang 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 수고 많으십니다
1. 당일중심가 기준하여 중심가위에서 일목구름상단과 20 이평선을 상승 돌파하면
매수시그널
반대로 중심가 아래에서 일목구름하단과 20 이평선을 하락돌파하면
매도 시그널 부탁드립니다
그리고 매매시간설정 가능토록 부탁드립니다
2. 당일중심가. 20 이평선. 일목구름상단을 모두 양봉으로 상승관통시 매수시그널
당일중심가. 20 이평선. 일목구름상단을 모두 음봉으로 하락관통시 매도시그널
모두 변수처리 하여주시기 바랍니다.
감사합니다