커뮤니티

문의드립니다

프로필 이미지
회원
2016-04-28 15:27:26
145
글번호 97546
답변완료
1번질문 input : period1(20),period2(12),sto1(5),sto2(3),short(12),long(26),signal(9),cciperiod(10); var : B1(0),B2(0),B3(0),B4(0),B5(0),B6(0),B7(0); B1=iff(ema(C,12)-ema(C,26) >ema(ema(C,12)-ema(C,26),9), 1,-1); B2=iff(C > ma(C, Period1), 1, -1); B3=iff((C - C[period2]) / C[period2] * 100 > 0, 1, -1) ; B4=iff(ema((C-lowest(L, sto1)) / (highest(H, sto1) - lowest(L, sto1)) * 100, sto2)>50, 1, -1); B5=iff(CCI(cciperiod)>0,1,-1); B6=iff(ema(accum(((C -L)-(H- C))/ (H-L)*V), 3) - ema(accum(((C -L)-(H- C))/(H-L)*V), 10) >=0,1,-1); B7=iff(SAR(0.02,0.2) < C,1,-1); plot1(B1+B2+B3+B4+B5+B6+B7); ............................................................................. 상기지표에서 plot1선이 증가하면 빨간색을 감소하면 파란색을 넣어 주세요 2번 질문 input: PeriodRSI(14); // Indicator period input: StepSizeFast(5); // Fast step input: StepSizeSlow(15); // Slow step var: fmin(9999),fmax(-9999); var: smin(9999),smax(-9999); var: ftrend(1),strend(1); var: RSI0(0); //---- restore values of the variables RSI0=RSI(PeriodRSI); fmax=RSI0+2*StepSizeFast; fmin=RSI0-2*StepSizeFast; if(RSI0>fmax[1]) then ftrend=1; if(RSI0<fmin[1]) then ftrend=-1; if(ftrend>0 && fmin<fmin[1]) then fmin=fmin[1]; if(ftrend<0 && fmax>fmax[1]) then fmax=fmax[1]; smax=RSI0+2*StepSizeSlow; smin=RSI0-2*StepSizeSlow; if(RSI0>smax[1]) then strend=1; if(RSI0<smin[1]) then strend=-1; if(strend>0 && smin<smin[1]) then smin=smin[1]; if(strend<0 && smax>smax[1]) then smax=smax[1]; if(ftrend>0) then var3=fmin+StepSizeFast; if(ftrend<0) then var3=fmax-StepSizeFast; if(strend>0) then var4=smin+StepSizeSlow; if(strend<0) then var4=smax-StepSizeSlow; plot1(RSI0,"RSI"); plot2(var3,"Fast_Metro"); plot3(var4,"Slow_Metro"); ............................................. 상기지표에서 패스트메트로선과 슬로우메트로선 지표값의 차이를 선으로 나타내 주세요 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-05-02 16:47:01

안녕하세요 예스스탁입니다. 1. input : period1(20),period2(12),sto1(5),sto2(3),short(12),long(26),signal(9),cciperiod(10); var : B1(0),B2(0),B3(0),B4(0),B5(0),B6(0),B7(0); B1=iff(ema(C,12)-ema(C,26) >ema(ema(C,12)-ema(C,26),9), 1,-1); B2=iff(C > ma(C, Period1), 1, -1); B3=iff((C - C[period2]) / C[period2] * 100 > 0, 1, -1) ; B4=iff(ema((C-lowest(L, sto1)) / (highest(H, sto1) - lowest(L, sto1)) * 100, sto2)>50, 1, -1); B5=iff(CCI(cciperiod)>0,1,-1); B6=iff(ema(accum(((C -L)-(H- C))/ (H-L)*V), 3) - ema(accum(((C -L)-(H- C))/(H-L)*V), 10) >=0,1,-1); B7=iff(SAR(0.02,0.2) < C,1,-1); var1 = B1+B2+B3+B4+B5+B6+B7; if var1 > var1[1] Then plot1(var1,"지표",RED); Else plot1(var1,"지표",blue); 2. input: PeriodRSI(14); // Indicator period input: StepSizeFast(5); // Fast step input: StepSizeSlow(15); // Slow step var: fmin(9999),fmax(-9999); var: smin(9999),smax(-9999); var: ftrend(1),strend(1); var: RSI0(0); //---- restore values of the variables RSI0=RSI(PeriodRSI); fmax=RSI0+2*StepSizeFast; fmin=RSI0-2*StepSizeFast; if(RSI0>fmax[1]) then ftrend=1; if(RSI0<fmin[1]) then ftrend=-1; if(ftrend>0 && fmin<fmin[1]) then fmin=fmin[1]; if(ftrend<0 && fmax>fmax[1]) then fmax=fmax[1]; smax=RSI0+2*StepSizeSlow; smin=RSI0-2*StepSizeSlow; if(RSI0>smax[1]) then strend=1; if(RSI0<smin[1]) then strend=-1; if(strend>0 && smin<smin[1]) then smin=smin[1]; if(strend<0 && smax>smax[1]) then smax=smax[1]; if(ftrend>0) then var3=fmin+StepSizeFast; if(ftrend<0) then var3=fmax-StepSizeFast; if(strend>0) then var4=smin+StepSizeSlow; if(strend<0) then var4=smax-StepSizeSlow; plot1(var3-var4,"diff"); 즐거운 하루되세요 > alsk 님이 쓴 글입니다. > 제목 : 문의드립니다 > 1번질문 input : period1(20),period2(12),sto1(5),sto2(3),short(12),long(26),signal(9),cciperiod(10); var : B1(0),B2(0),B3(0),B4(0),B5(0),B6(0),B7(0); B1=iff(ema(C,12)-ema(C,26) >ema(ema(C,12)-ema(C,26),9), 1,-1); B2=iff(C > ma(C, Period1), 1, -1); B3=iff((C - C[period2]) / C[period2] * 100 > 0, 1, -1) ; B4=iff(ema((C-lowest(L, sto1)) / (highest(H, sto1) - lowest(L, sto1)) * 100, sto2)>50, 1, -1); B5=iff(CCI(cciperiod)>0,1,-1); B6=iff(ema(accum(((C -L)-(H- C))/ (H-L)*V), 3) - ema(accum(((C -L)-(H- C))/(H-L)*V), 10) >=0,1,-1); B7=iff(SAR(0.02,0.2) < C,1,-1); plot1(B1+B2+B3+B4+B5+B6+B7); ............................................................................. 상기지표에서 plot1선이 증가하면 빨간색을 감소하면 파란색을 넣어 주세요 2번 질문 input: PeriodRSI(14); // Indicator period input: StepSizeFast(5); // Fast step input: StepSizeSlow(15); // Slow step var: fmin(9999),fmax(-9999); var: smin(9999),smax(-9999); var: ftrend(1),strend(1); var: RSI0(0); //---- restore values of the variables RSI0=RSI(PeriodRSI); fmax=RSI0+2*StepSizeFast; fmin=RSI0-2*StepSizeFast; if(RSI0>fmax[1]) then ftrend=1; if(RSI0<fmin[1]) then ftrend=-1; if(ftrend>0 && fmin<fmin[1]) then fmin=fmin[1]; if(ftrend<0 && fmax>fmax[1]) then fmax=fmax[1]; smax=RSI0+2*StepSizeSlow; smin=RSI0-2*StepSizeSlow; if(RSI0>smax[1]) then strend=1; if(RSI0<smin[1]) then strend=-1; if(strend>0 && smin<smin[1]) then smin=smin[1]; if(strend<0 && smax>smax[1]) then smax=smax[1]; if(ftrend>0) then var3=fmin+StepSizeFast; if(ftrend<0) then var3=fmax-StepSizeFast; if(strend>0) then var4=smin+StepSizeSlow; if(strend<0) then var4=smax-StepSizeSlow; plot1(RSI0,"RSI"); plot2(var3,"Fast_Metro"); plot3(var4,"Slow_Metro"); ............................................. 상기지표에서 패스트메트로선과 슬로우메트로선 지표값의 차이를 선으로 나타내 주세요 감사합니다.