예스스탁
예스스탁 답변
2022-01-03 16:37:34
안녕하세요
예스스탁입니다.
input : P1(5),P2(20),sto1(10),sto2(5),RSIPeriod(14);
var : mav1(0),mav2(0),stok(0),rsiv(0);
input : StartTime(80000),EndTime(65000);
var : Tcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
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 Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
mav1 = ma(C,P1);
mav2 = ma(C,P2);
stok = StochasticsK(sto1,sto2);
rsiv = RSI(RSIPeriod);
if Tcond == true Then
{
if c > mav1 and c > mav2 and
stok > 35 and
CrossUp(rsiv,60) Then
Buy();
if c > mav1 and c > mav2 and
stok > 35 and
CrossDown(rsiv,55) Then
Buy();
if c > mav1 and c > mav2 and
stok > 35 and
CrossDown(rsiv,50) Then
Buy();
if c > mav1 and c > mav2 and
stok > 35 and
CrossDown(rsiv,45) Then
Buy();
if c > mav1 and c > mav2 and
stok > 35 and
CrossDown(rsiv,40) Then
Buy();
if c > mav1 and c > mav2 and
stok > 35 and
CrossDown(rsiv,35) Then
Buy();
if c > mav1 and c > mav2 and
stok > 35 and
CrossDown(rsiv,30) Then
Buy();
if c > mav1 and c > mav2 and
stok > 35 and
CrossDown(rsiv,25) Then
Buy();
if c < mav1 and c < mav2 and
stok < 65 and
CrossDown(stok,40) Then
Sell();
if c < mav1 and c < mav2 and
stok < 65 and
CrossUp(stok,45) Then
Sell();
if c < mav1 and c < mav2 and
stok < 65 and
CrossUp(stok,50) Then
Sell();
if c < mav1 and c < mav2 and
stok < 65 and
CrossUp(stok,55) Then
Sell();
if c < mav1 and c < mav2 and
stok < 65 and
CrossUp(stok,60) Then
Sell();
if c < mav1 and c < mav2 and
stok < 65 and
CrossUp(stok,65) Then
Sell();
if c < mav1 and c < mav2 and
stok < 65 and
CrossUp(stok,70) Then
Sell();
if c < mav1 and c < mav2 and
stok < 65 and
CrossUp(stok,75) Then
Sell();
}
SetStopProfittarget(PriceScale*1200,PointStop);
즐거운 하루되세요
> 아침 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 이평 1이 이평 2 위의 있고
스토캐스틱 퍼스트 35 위의 있고
알에스아이 60상향돌파 매수.알에스아이 55,50,45,40,35,30,25 하향돌파 매수.
이평 1이 이평 2 아래의 있고
스토캐스틱 퍼스트 65 아래의 있고
알에스아이 40하향돌파 매도. 알에스아이 45,50,55,60,65,70,75 상향돌파 매도.
익절1200틱
시작시간 오전 8시 시작 다음날 오전6시50분 진입한 종목이 있다면 모두청산.시스템 완전종료.
새해 복 많이 받으세요.
수고하세요.