답변완료
문의 드립니다.
안녕하세요
현재 종가가 아래의 2 조건을 돌파 또는 우상향 하는 종목 검색식 부탁 드립니다.
1. A라인 ;
S = sar(af,maxAf);
조건 = CrossUp(C, S);
시작가 = Valuewhen(1, 조건, O);
bs = BarsSince(조건);
라인2 = if(조건, 시작가, 시작가 + 시작가 * (비율2 / 100) * bs);
if(S < C && S < 라인2, 라인2, S)
지표조건
af 0.01
maxAf 0.2
비율2 1
2. B라인 ;
A=avg(c,17);
ATR=avg(max(max(h-L,abs(c(1)-h)),abs(c(1)-L)),17);
B=ATR*2;
D=A+B;
E=Bbandsup(17,2);
e1=crossup(E,D);
e2=crossdown(E,D);
e3=crossdown(c,E);
valuewhen(1,e1 or e2 or e3,o)
감사합니다.
2025-06-15
280
글번호 191733
검색
답변완료
수식 문의 드립니다
항상 감사 드리니다.
아래 수식작성 요청식이 즉시 매수나 즉시매도식이 불가능할 시에는 봉 완성후 매입 매도 하는식으로 부탁 드립니다.
1. 일반식
1). Input : Period(5) ;
var : DMIv(0),DP(0),DM(0);
DMIv = DMI(Period);
DP = DIPlus(Period);
DM = DIMinus(Period);
2). volumn ratio(10)
1) 매수: DMIv가 20 이상 이고 volume ratio가 90 상향시 에서 즉시 매수
2) 매수: volume ratio가 90 이상 이고 DMIv가 20 상향시 즉시 매수
2) 매도: Volume ratio가 90 이하로 하락시 즉시매도
3) 매도: DMIv가 20 이하로 하락시 즉시 매도
2 data2를 이용항식
1). Input : Period(5) ;
var : DMIv(0),DP(0),DM(0);
DMIv = DMI(Period);
DP = DIPlus(Period);
DM = DIMinus(Period);
2). volumn ratio(10)
1) 매수: data2(DMIv)가 20 이상이고 DMIv가 20 이상 이고 volume ratio가 90 상향시 에서 즉시 매수
2) 매수: data2(Volume Ratio)가 20 이상이고, volume ratio가 90 이상 이고 DMIv가 20 상향시 즉시 매수
2) 매도: Volume ratio가 90 이하로 하락시 즉시매도
3) 매도: DMIv가 20 이하로 하락시 즉시 매도
2025-06-15
270
글번호 191732
시스템
답변완료
전환부탁드립니다.
수식전환부탁드립니다
수식1
m1=ma(C,이평기간);
m2=Highest(M1,봉수);
m3=Lowest(M1,봉수);
EU=M1;
EC=(M2+M3)/2;
ED=M3;
EH=EC(2)<=EC(1) &&EC(1)>EC;
EL=EC(2)>=EC(1) &&EC(1)<EC;
EU;
Valuewhen(1,M2>M2(1),M2);
이평기간 20/ 봉수 20
수식2
a=bbandsup(period1,d1);
b=bbandsup(period2,d2);
(a+b)/2;
period1/20 d1/2 period2/30 d2/2
수식3
m1=ma(C,이평기간);
m2=Highest(M1,봉수);
m3=Lowest(M1,봉수);
EU=M1;
EC=(M2+M3)/2;
ED=M3;
EH=EC(2)<=EC(1) &&EC(1)>EC;
EL=EC(2)>=EC(1) &&EC(1)<EC;
ED;
이평기간 20/ 봉수 20
수식4
(highest(high,period1)+lowest(low,period1))/2;
period1/20
2025-06-15
261
글번호 191731
지표
답변완료
질문 부탁드립니다
수고가 많으십니다 질문 몇 가지 부탁드립니다
질문1) 수식 해석 관련 질문 부탁합니다
동시에 조건을 만족할때 검색을 하는 식인데요
각 부분에서
else condition=false 를 설정할때와 안할때는 어떤 차이가 나나요?
감사합니다
if tl_getvalue(tl1,sdate,stime) >0 and
tl_getvalue(tl2,sdate,stime) >0 and
tl_getvalue(tl3,sdate,stime)>0 then
{
value1=tl_getvalue(tl1,sdate,stime);
value2=tl_getvalue(tl2,sdate,stime);
value3=tl_Getvalue(tl3,sdate,stime);
if crossup(c,value1) then
condition1= true;
else condition1=false;
if crossup(c,value2) then condition2=true;
else condition2 = false;
if crossup(c,value3) then condition3=true;
else condition3 = false;
if Condition1==true and condition2==true and condition3==true then find(1);
}
질문2)
for cnt= 80 downto 70
if index==cnt and h[cnt] > aa[1] then condition1=true;
이렇게 작성했을때
(if index==80 and h[80]>aa[1]) and (if index==79 and h[79]>aa[1]) ...
and (if index==70 and h[70]>aa[1] ) then condition1= true;
이렇게 되는게 맞나요??
count=0;
for cnt=80 downto 70
{
if index==cnt and h[cnt]>aa[1] then
count=count+1
}
if count==11 then condition1=true;
이거랑 같은 의미가 되는건지 궁금합니다
질문3)
논리형 변수를 생성할때 for 문으로 작성 가능한지 여쭤보고 싶습니다
예를 들어서 아래와 같은 진행되는 조건이 있을때 (id[] 배열에는 조건만족시 index 값을 넣었습니다)
for cnt= id[0] downto id[1]
if index==cnt and h[cnt] > aa[1] then condition1=true;
for cnt= id[1] downto id[2]
if index==cnt and h[cnt] > aa[2] then condition2=true;
...
for cnt= id[8] downto id[9]
if index==cnt and h[cnt] > aa[9] then condition9=true;
이런 수식을
for y=0 to 8
{
for cnt= id[y] downto id[y+1]
{
if index==cnt and h[cnt]>aa[y+1] then condition=true;
}
}
반복문으로 만들었는데요 condition 변수를 혹시
condition(y+1)=true;
이런식으로 만들어서 1부터 9번까지 반복 생성하게 하는 방법이 있을까요?
이런방식이 안된다면 가능한 방식으로 알려주시면 감사하겠습니다
2025-06-16
235
글번호 191728
지표