커뮤니티

부탁 드립니다.

프로필 이미지
뮬리
2020-10-16 10:31:14
794
글번호 143141
답변완료

첨부 이미지

도움에 감사 드립니다. 함수를 사용 하면 그림과 같이 점 그래프를 설정해도 그려지지 않습니다. 함수를 사용해서 점 그래프가 그려질수 있도록 부탁 드립니다. 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;
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-10-16 14:31:40

안녕하세요 예스스탁입니다. 함수식에서 조건에 만족하지 않으면 nan값을 지정하셔야 합니다. 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; Else 허9300test=Nan; 즐거운 하루되세요 > 뮬리 님이 쓴 글입니다. > 제목 : 부탁 드립니다. > 도움에 감사 드립니다. 함수를 사용 하면 그림과 같이 점 그래프를 설정해도 그려지지 않습니다. 함수를 사용해서 점 그래프가 그려질수 있도록 부탁 드립니다. 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;