답변완료
부탁 드립니다.
도움에 감사 드립니다.
함수를 사용 하면
그림과 같이 점 그래프를 설정해도 그려지지 않습니다.
함수를 사용해서
점 그래프가 그려질수 있도록 부탁 드립니다.
1)함수를 사용 하지 아니한 점 그래프 수식
input:rightleftbars(15);
input:volumeThresh(20);
var: toggleBreaks(true);
var:rightBars(0);
rightBars=rightleftbars;
var : SH(0),SL(0),highUsePivot(0),lowUsePivot(0),tx1(0),tx2(0);
if SwingHigh(1,h,rightleftbars,rightBars,rightleftbars+rightBars+1) != -1 Then
SH = H[rightBars];
highUsePivot = SH[1];
if SwingLow(1,l,rightleftbars,rightBars,rightleftbars+rightBars+1) != -1 Then
SL = L[rightBars];
lowUsePivot = SL[1];
var : short(0),long(0),osc(0);
short = ema(volume, 5);
long = ema(volume, 10);
osc = 100 * (short - long) / long;
condition1=toggleBreaks and CrossDown(close,lowUsePivot)
and !(open - close < high - open) and osc > volumeThresh ;
if condition1 then
plot1(h,"1",yellow,def,14);
2)함수를 사용하여 실행은 정상 이지만 점그래프가 그려지지 않음
실행식)
input:rightleftbars(15);
input:volumeThresh(20);
var1=허9300test(15,20);
plot1(var1);
함수식)
input:rightleftbars(numeric);
input:volumeThresh(numeric);
var: toggleBreaks(true);
var:rightBars(0);
rightBars=rightleftbars;
var : SH(0),SL(0),highUsePivot(0),lowUsePivot(0),tx1(0),tx2(0);
if SwingHigh(1,h,rightleftbars,rightBars,rightleftbars+rightBars+1) != -1 Then
SH = H[rightBars];
highUsePivot = SH[1];
if SwingLow(1,l,rightleftbars,rightBars,rightleftbars+rightBars+1) != -1 Then
SL = L[rightBars];
lowUsePivot = SL[1];
var : short(0),long(0),osc(0);
short = ema(volume, 5);
long = ema(volume, 10);
osc = 100 * (short - long) / long;
condition1=toggleBreaks and CrossDown(close,lowUsePivot)
and !(open - close < high - open) and osc > volumeThresh ;
if condition1 then
허9300test=h;
2020-10-16
793
글번호 143141
지표
답변완료
질문드립니다 답변 부탁드릴게요 ㅍ.ㅍ
안녕하세요
어제 질문에 대한 답변 잘 받았습니다
지표식을 검색식으로 변환시켜주셨는데요
이렇게요
condition1 = Highest(H,2)[2] >= C[4]*1.06;
condition2 = Accumn(H-O,1)[3] > Accumn(H-O,1)[2];
condition3 = Highest(H,2)[2] > Highest(H,1)[1];
condition4 = AccumN(v,1)[1] <= AccumN(v,2)[2]*0.30;
condition5 = AccumN(v,1)[2] > AccumN(v,1)[1] and AccumN(v,1)[2] > AccumN(v,1)[3]*0.1;
condition6 = countif(m >= 500000000,3)[1] == 3;
condition7 = (AccumN(money,3)[1]/AccumN(Volume,3)[1]-C[4])/(highest(H,3)[1]-C[4]) >= 0.65;
condition8 = Accumn(Volume,2)[2]/Accumn(Volume,2)[4] >= 8;
condition9 = Accumn(Volume,2)[2]/Accumn(Volume,4)[4] >= 8;
condition10 = Accumn(Volume,2)[2]/Accumn(Volume,6)[4] >= 8;
condition11 = Accumn(Volume,2)[2]/Accumn(Volume,8)[4] >= 8;
condition12 = Accumn(Volume,2)[2]/Accumn(Volume,10)[4] >= 8;
condition13 = Highest(H,3)[1] > Highest(H,90)[4];
condition14 = AccumN(Volume,3)[1] > Highest(AccumN(v,3),90)[4];
condition15 = C[1] >= C[4]*1.06;
condition16 = C[1] <= C[2]*1.01 and C[1] >= C[2]*0.99;
condition17 = AccumN(DownVol,1)[1]/AccumN(Volume,1)[1] >= 0.45 and AccumN(DownVol,1)[1]/AccumN(Volume,1)[1] <= 0.60;
condition18 = C[1] < C[4]*1.06;
if condition1 and condition2 and condition3 and condition4 and condition5 and condition6 and condition7 and
(condition8 or condition9 or condition10 or condition11 or condition12) and
condition13 and condition14 and ((condition15 and (condition16 or condition17)) or condition18) Then
find(1);
근데 여기서 궁금한점이있습니다.
질문 1. 저 조건들 뿐만 아니라 여러가지 더 확장해서 사용할건데요
그렇게 되면 컨디션 1 2 3 4 쭉쭉늘어나서 1000까지 될거같아요
컨디션 1 2 3 들을 컨디션 1로 모아서 해도 되나요?
그렇게 해도 똑같은 종목검색이 될까요? 결과값이 같을지...
예를 들면 이렇게요
(18개 컨디션들을 and or로 통합해서 하나의 컨디션으로)
condition1 = Highest(H,2)[2] >= C[4]*1.06 and Accumn(H-O,1)[3] > Accumn(H-O,1)[2] and Highest(H,2)[2] > Highest(H,1)[1] and AccumN(v,1)[1] <= AccumN(v,2)[2]*0.30 and AccumN(v,1)[2] > AccumN(v,1)[1] and AccumN(v,1)[2] > AccumN(v,1)[3]*0.1 and countif(m >= 500000000,3)[1] == 3 and (AccumN(money,3)[1]/AccumN(Volume,3)[1]-C[4])/(highest(H,3)[1]-C[4]) >= 0.65 and (Accumn(Volume,2)[2]/Accumn(Volume,2)[4] >= 8 or Accumn(Volume,2)[2]/Accumn(Volume,4)[4] >= 8 or Accumn(Volume,2)[2]/Accumn(Volume,6)[4] >= 8 or Accumn(Volume,2)[2]/Accumn(Volume,8)[4] >= 8 or Accumn(Volume,2)[2]/Accumn(Volume,10)[4] >= 8) and Highest(H,3)[1] > Highest(H,90)[4] and AccumN(Volume,3)[1] > Highest(AccumN(v,3),90)[4] and ((C[1] >= C[4]*1.06 and (C[1] <= C[2]*1.01 and C[1] >= C[2]*0.99 or AccumN(DownVol,1)[1]/AccumN(Volume,1)[1] >= 0.45 and AccumN(DownVol,1)[1]/AccumN(Volume,1)[1] <= 0.60)) or C[1] < C[4]*1.06);
if condition1 then find(1);
질문 2. 두번째 질문은 첫번째 질문과 비슷하지만 좀 다릅니다.
질문 1은 컨디션들의 통합이 되나 안되나 여부였고
질문 2는 find의 질문입니다.
즉 컨디션 1~18까지 find 또 추가해서
컨디션 19~36까지 finf 또 추가해서
컨디션 37~54까지 find 또 추가해서 ....쭈욱해서
컨디션 500정도까지 한다고 했을떄
find 가 20개가 넘어가게 됩니다.
하나의 종목검색식에서 복수의 find를 쓸수있는지요
있다면 어떻게 작성해야한는건지 알려주세요 즉,
find 를 하나의 종목검색식에서 여러개 사용할수 있는 방법좀 알려주세요
질문 3. 간혹가다 예스랭귀지가 작동하지않습니다.
혹시 재설치를 하게되면 이럴때 안에 저장되어있는
시스템식 종목식 지표식들이 날라갈까봐 걱정되요
저장되어있는 식들을 살릴수 있는 방법좀 알려주세요
2020-10-16
759
글번호 143140
종목검색