예스스탁
예스스탁 답변
2023-10-04 17:01:46
안녕하세요
예스스탁입니다.
input : 타주기분(30);
var : S1(0),D1(0),TM(0),TF(0);
var : xClose(0),xOpen(0),xHigh(0),xLow(0);
var : ii(0),OO(0),HH(0),LL(0),CC(0);
var : hClose(0),hOpen(0),hHigh(0),hLow(0);
var : hClose1(0),hOpen1(0),hHigh1(0),hLow1(0);
if index == 0 then
{
xClose = (O+H+L+C)/4;
xOpen = open;
xHigh = MaxList( high, xOpen, xClose);
xLow = MinList( low, xOpen,xClose);
}
else
{
xClose = (O+H+L+C)/4;
xOpen = (xOpen [1] + xClose [1])/2 ;
xHigh = MaxList(High, xOpen, xClose) ;
xLow = MinList(Low, xOpen, xClose) ;
}
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%타주기분;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and 타주기분 > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and 타주기분 > 1 and TM >= TM[1]+타주기분) or
(Bdate == Bdate[1] and 타주기분 == 1 and TM > TM[1]) Then
{
ii = ii +1;
OO = O;
HH = H;
LL = L;
hOpen1 = hOpen[1];
hClose1 = hClose[1];
}
if H > HH Then
HH = H;
if L < LL Then
LL = L;
CC = C;
if ii == 1 then
{
hClose = (OO+HH+LL+CC)/4;
hOpen = OO;
hHigh = MaxList(HH, hOpen, hClose);
hLow = MinList(LL, hOpen,hClose);
}
else
{
hClose = (OO+HH+LL+CC)/4;
hOpen = (hOpen1 + hClose1)/2 ;
hHigh = MaxList(HH, hOpen, hClose) ;
hLow = MinList(LL, hOpen, hClose) ;
}
if MarketPosition <= 0 and hClose > hOpen and xClose > xOpen Then
Buy();
if MarketPosition == 1 and xClose < xOpen Then
ExitLong();
if MarketPosition >= 0 and hClose < hOpen and xClose < xOpen Then
Sell();
if MarketPosition == -1 and xClose > xOpen Then
exitlong();
}
즐거운 하루되세요
> cjfdk 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 수고 많으십니다
문의드릴 내용은
60분 봉에서
하이킨아시 캔들이 현재 양봉이면
5분봉에서 하이키아시 캔들이 양봉이면
매수진입 음봉이면 매수청산 매도진입금지
60분 봉에서
하이킨아시 캔들이 현재 음봉이면
5분봉에서 하이킨아시 캔들이 음봉이면
매도진입 양봉이면 매도청산 매수진입금지
60분 봉은 현재 움직이고 있는봉 기준이고
5분봉은 봉 완성 기준으로 부탁드립니다
항상 감사드립니다