아래식의 자세한 주석 부탁합니다,
input : N(10),N1(90);
var : ET(0);
if ET > 0 and sDate != sDate[1] Then
SetStopEndofday(ET);
if Bdate != Bdate[1] Then
{
SetStopEndofday(0);
if stime >= 80000 Then
ET = 060000;
else
ET = 050000;
}
if Bdate == Bdate[n-1] and CountIf(C>O,3) == 3 and c >= L[N-1]+PriceScale*n1 Then
Sell();
if Bdate == Bdate[n-1] and CountIf(C<O,3) == 3 and c[n-1] >= L+PriceScale*n1 Then
Buy();
답변 1
예스스탁
예스스탁 답변
2022-11-22 14:16:40
안녕하세요
예스스탁입니다.
input : N(10),N1(90);
var : ET(0);
#날짜변경(0시)되면 지정한 ET로 당일청산 설정
if ET > 0 and sDate != sDate[1] Then
SetStopEndofday(ET);
#오늘장 시작하면(현재봉영업일과 1봉전 영업일이 다름)
if Bdate != Bdate[1] Then
{
#당일청산 해제
SetStopEndofday(0);
#썸머타임에 따라 당일청산시간을 다르게 지정
#당일시가가 #8시 이후에 시작하면 ET는 6시 아니면 5시
if stime >= 80000 Then
ET = 060000;
else
ET = 050000;
}
#현재봉 영업일과 9봉전 영엽일이 같으면(장시작후 10개봉이상 경과)
#3봉연속 양봉이고 종가가 첫봉저가보다 +90틱이상 크면 매도
if Bdate == Bdate[n-1] and CountIf(C>O,3) == 3 and c >= L[N-1]+PriceScale*n1 Then
Sell();
#현재봉 영업일과 9봉전 영엽일이 같으면(장시작후 10개봉이상 경과)
#3봉연속 음봉이고 저가가 첫봉종가보다 90틱이상 작으면 매수
if Bdate == Bdate[n-1] and CountIf(C<O,3) == 3 and c[n-1] >= L+PriceScale*n1 Then
Buy();
즐거운 하루되세요
> 예스요 님이 쓴 글입니다.
> 제목 : 문의 드립니다.~~~~
> 아래식의 자세한 주석 부탁합니다,
input : N(10),N1(90);
var : ET(0);
if ET > 0 and sDate != sDate[1] Then
SetStopEndofday(ET);
if Bdate != Bdate[1] Then
{
SetStopEndofday(0);
if stime >= 80000 Then
ET = 060000;
else
ET = 050000;
}
if Bdate == Bdate[n-1] and CountIf(C>O,3) == 3 and c >= L[N-1]+PriceScale*n1 Then
Sell();
if Bdate == Bdate[n-1] and CountIf(C<O,3) == 3 and c[n-1] >= L+PriceScale*n1 Then
Buy();