답변완료
항상 감사합니다.....
M= (HighestSince(1, CrossUp(Trix(Period),0),C)+
LowestSince(1, CrossDown(Trix(Period),0),C))/2;
N=EnvelopeUp(50,3);
c>=M and c>N(19) and c>o and
MACD(short,long)>=0 and
MACD(short,long)>eavg(MACD(short, long), Signal) and
DIPlus(14)>=DIMinus(14) and
C>=SAR(0.015,0.15) and
CrossUp(c, BBandsUp(period1,2))
이조건을 만족하는 종목을 검색하고싶습니다....
signal 7
Period 8
Period1 17
Short 10
long 15
감사합니다 ....
2021-02-19
444
글번호 146449
종목검색
답변완료
변수의 과거봉 참조 문의
기본적인 과거봉 참조인거 같은데 헷갈려서 문의 드립니다.
1. 아래 시스템식을 60분봉으로 예를 들어 4일 동안 시뮬레이션하면
과거봉이 모두 정상적으로 출력됩니다.
var: temp_high(0), temp_value(0), count(0);
temp_high = high;
MessageLog("# 1: %.0f, %.0f, [1]: %.0f, [2]: %.0f", stime, temp_high[0], temp_high[1], temp_high[2]);
if LastBarOnChart == 1 Then
{
For count = 0 to 150 {
MessageLog("# 0-1: %.0f, %.0f", count, temp_high[count]);
}
if close < 0 Then
Buy();
}
2. 아래 시스템식은 매일 9시 1분의 고가를 저장했다가, 마지막 봉에서 모두
출력하는 수식입니다.
그런데 [0]값과 [1]값 까지만 저장되고, 그 이전의 과거값은 저장이 안 되는 데요.
위의 시스템식과의 과거값 표시가 왜 다른지 문의 드립니다.
input: morningTime(901);
var: temp_high(0), temp_value(0), count(0);
if (stime == MorningTime * 100) then
{
temp_high = high;
MessageLog("# 1: %.0f, %.0f, [1]: %.0f, [2]: %.0f",
stime, temp_high[0], temp_high[1], temp_high[2]);
if close < 0 Then
Buy();
}
if LastBarOnChart == 1 Then
{
For count = 0 to 50 {
MessageLog("# 0-1: %.0f, %.0f", count, temp_high[count]);
}
}
2021-02-18
492
글번호 146445
시스템
답변완료
문의드립니다.
var : T(0),L1(0),L1i(0),H1(0),H1i(0);
var : L2(0),L2i(0),H2(0),H2i(0),HL(0),HLi(0);
if L < Lowest(L,30)[1] Then
{
Condition1 = true;
T = 0;
L1 = L; # L1 - 30일 최저점
L1i = index;
H1 = 0; # H1 - 1파고점
H1i = index;
L2 = 0;
L2i = Index;
H2 = 0;
H2i = Index;
HL = 0;
HLi = Index;
}
if Condition1 == true then
{
if T == 0 then
{
if index > L1i && (H1 == 0 or (H1 > 0 and H > H1)) Then
{
H1 = H;
H1i = index;
}
if index > H1i and
H1 >= L1*1.2 and H1 <= L1*2 and # 상승폭이 +20% ~ 60%
L < H1-(H1-L1)*0.6 Then # 조정폭 0.6
{
T = 1;
L2 = 0;
L2i = index;
H2 = 0;
H2i = index;
HL = 0;
HLi = Index;
}
}
if T == 1 Then
{
if Index > L2i and (L2 == 0 or (L2 > 0 and L < L2)) Then
{
L2 = L;
H2 = 0;
H2i = index;
HL = 0;
HLi = Index;
}
if Index > H2i and (H2 == 0 or (H2 > 0 and H > H2)) Then
{
H2 = h;
HL = 0;
HLi = Index;
if H2 > H1 Then
T = 2;
}
if L < L1 Then
{
T = 0;
L1 = 0;
H1 = 0;
L2 = 0;
H2 = 0;
HL = 0;
}
}
if T == 2 Then
{
if H > H2 then
{
H2 = H;
HL = 0;
HLi = Index;
}
if Index > HLi and (HL == 0 or (HL > 0 and L < HL)) Then
{
HL = L;
HLi = Index;
}
if L < L1 Then
{
T = 0;
L1 = 0;
H1 = 0;
L2 = 0;
H2 = 0;
HL = 0;
}
}
if L1 > 0 Then
plot1(L1,"L1");
if H1 > 0 Then
plot2(h1,"h1");
if L2 > 0 Then
plot3(L2,"L2");
if H2 > 0 and H2 > H1 Then
plot4(H2,"H2");
# if HL > 0 Then
# plot5(HL,"HL");
}
안녕하세요.
위 수식을 출력하면
노랑동그라미 봉의 저점에서
L2 출력조건 L < H1-(H1-L1)*0.6을 만족하는데
L2가 출력되지 않고 다음봉의 저점에서 출력됩니다.
수식 수정 부탁드립니다.
2021-02-19
472
글번호 146443
지표