커뮤니티
부탁드립니다.
2013-01-30 10:16:40
212
글번호 58836
안녕하세요.
예트 지표식으로 부탁드립니다.
항상 노고에 감사드립니다.
input: swingstrength(2),swinglengh(30);
vars: blblue(0),blred(0),blgreen(0),upfrac(0),dnfrac(0),stp_now(false),i1(0),maxfracsback(10),
value0(0),value1(0),value2(0),value3(0),value4(0);
value0 = (h+l)/2;
blblue = average(value0,13)[8];
blred = average(value0,8)[5];
blgreen = average(value0,5)[3];
value1 = highest(high,swingstrength);
value2 = lowest(low,swingstrength);
stp_now = false;
i1 = 1;
while i1 < maxfracsback
and swinglow(i1,low,swingstrength,swinglength) <> -1
and stp_now = false Begin
value3 = swinglow(i1,low,swingstrength,swinglength);
if value > blred or value3 > value3 > value2
then i1 = i1+1
else stp_now = true;
end;
if stp_now then dnfrac = value3
else dnfrac =-1;
stp_now = false;
i1 = 1;
while i1 < maxfracsback
and swinghigh(i1,high,swingstrength,swinglength) <> -1
and stp_now = false Begin
value4 = swinghigh(i1,high,swingstrength,swinglength);
if value4 < blred or value4 < value1
then i1 =i1+1
else stp_now = true;
end;
if stp_now
then upfrac = Value4
else upfrac = -1;
if upfrac <> 0 and upfrac <> -1 then plot1(upfrac,"upfract");
if dnfrac <> 0 and dnfrac <> -1 then plot1(dnfrac,"dnfract");
답변 1
예스스탁 예스스탁 답변
2013-01-30 13:58:27
안녕하세요
예스스탁ㅇ비니다.
input: swingstrength(2),swinglength(30);
vars: blblue(0),blred(0),blgreen(0),upfrac(0),dnfrac(0),stp_now(false),i1(0),maxfracsback(10),
value0(0),value1(0),value2(0),value3(0),value4(0);
value0 = (h+l)/2;
blblue = average(value0,13)[8];
blred = average(value0,8)[5];
blgreen = average(value0,5)[3];
value1 = highest(high,swingstrength);
value2 = lowest(low,swingstrength);
stp_now = false;
i1 = 1;
while i1 < maxfracsback
and swinglow(i1,low,swingstrength,swingstrength,swinglength) <> -1
and stp_now == false Begin
value3 = swinglow(i1,low,swingstrength,swingstrength,swinglength);
if value0 > blred or value3 > value2
then i1 = i1+1;
else stp_now = true;
end;
if stp_now then
dnfrac = value3;
else
dnfrac =-1;
stp_now = false;
i1 = 1;
while i1 < maxfracsback
and swinghigh(i1,high,swingstrength,swingstrength,swinglength) <> -1
and stp_now == false Begin
value4 = swinghigh(i1,high,swingstrength,swingstrength,swinglength);
if value4 < blred or value4 < value1
then i1 =i1+1;
else stp_now = true;
end;
if stp_now
then upfrac = Value4;
else upfrac = -1;
if upfrac <> 0 and upfrac <> -1 then plot1(upfrac,"fract");
if dnfrac <> 0 and dnfrac <> -1 then plot1(dnfrac,"fract");
즐거운 하루되세요
> 괌 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 안녕하세요.
예트 지표식으로 부탁드립니다.
항상 노고에 감사드립니다.
input: swingstrength(2),swinglengh(30);
vars: blblue(0),blred(0),blgreen(0),upfrac(0),dnfrac(0),stp_now(false),i1(0),maxfracsback(10),
value0(0),value1(0),value2(0),value3(0),value4(0);
value0 = (h+l)/2;
blblue = average(value0,13)[8];
blred = average(value0,8)[5];
blgreen = average(value0,5)[3];
value1 = highest(high,swingstrength);
value2 = lowest(low,swingstrength);
stp_now = false;
i1 = 1;
while i1 < maxfracsback
and swinglow(i1,low,swingstrength,swinglength) <> -1
and stp_now = false Begin
value3 = swinglow(i1,low,swingstrength,swinglength);
if value > blred or value3 > value3 > value2
then i1 = i1+1
else stp_now = true;
end;
if stp_now then dnfrac = value3
else dnfrac =-1;
stp_now = false;
i1 = 1;
while i1 < maxfracsback
and swinghigh(i1,high,swingstrength,swinglength) <> -1
and stp_now = false Begin
value4 = swinghigh(i1,high,swingstrength,swinglength);
if value4 < blred or value4 < value1
then i1 =i1+1
else stp_now = true;
end;
if stp_now
then upfrac = Value4
else upfrac = -1;
if upfrac <> 0 and upfrac <> -1 then plot1(upfrac,"upfract");
if dnfrac <> 0 and dnfrac <> -1 then plot1(dnfrac,"dnfract");
이전글