답변완료
수직선이 나타나지않습니다 수직선 부탁드립니다.
Input:af(0.02),maxAF(0.25),ssk(60);
Var:오늘(0),극대(0),극저(0),가속(0),내일(0),hd(0),hkl(1),hdl(-1);
Var1 = Ema(C,ssk);
if Var1 > 0 and
극대 == 0 and 극저 == 0 then {
극대 = Var1; 극저 = Var1;
}
if Var1 > 0 and
오늘[1] == 0 then {
if hd[1] == 0 then {
if Var1[1] < Var1 then hd = hkl;
if Var1[1] > Var1 then hd = hdl;
}
if hd[1] == hkl and Var1[1] > Var1 then {
hd = hdl;
오늘 = 극대[1];
가속 = af;
}
if hd[1] == hdl and Var1[1] < Var1 then {
hd = hkl;
오늘 = 극저[1];
가속 = af;
}
극저 = min(Var1,극저);
극대 = max(Var1,극대);
}
//Text_New(sdate,stime,극대,"↑");
//Text_New(sdate,stime,극저,"↓");
if 오늘[1] > 0 then {
if hd[1] == hkl then {
if Var1 > 내일[1] then {
오늘 = 내일[1];
극저 = 0;
if Var1 > 극대[1] then {
극대 = Var1;
가속 = min(maxAF,가속+af);
}
}
else {
hd = hdl;
오늘 = 극대[1];
극대 = 0;
극저 = Var1;
가속 = af;
}
}
if hd[1] == hdl then {
if Var1 < 내일[1] then {
오늘 = 내일[1];
극대 = 0;
if Var1 < 극저[1] then {
극저 = Var1;
가속 = min(maxAF,가속+af);
}
}
else {
hd = hkl;
오늘 = 극저[1];
극저 = 0;
극대 = Var1;
가속 = af;
}
}
}
내일 = (max(극대,극저) - 오늘) * 가속 + 오늘;
if var1 > C Then
Plot1(var1, "오늘",BLUE);
TL_New(sdate[var1],stime[var1],9999999,sdate[var1],stime[var1],0);
Else
Plot1(var1, "오늘",RED);
T L_New(sdate[var1],stime[var1],9999999,sdate[var1],stime[var1],0);
2022-10-03
1066
글번호 162686
지표
답변완료
강세 약세 거래량지표 전환부탁드리빈다
변환 부탁드립니다
수식1 강세
base=(H+L) / 2;
lower_band=base-atr(period)*multiple;
uptrend=valuewhen(1, highest(lower_band(1), period)<lower_band,
lower_band);
upper_band=base+atr(period)*multiple;
downtrend=valuewhen(1, lowest(upper_band(1), period)>upper_band,
upper_band);
if(eavg(C, MA_period)<C and C>uptrend, 1, 0)
수식2 약세
base=(H+L) / 2;
lower_band=base-atr(period)*multiple;
uptrend=valuewhen(1, highest(lower_band(1), period)<lower_band,
lower_band);
upper_band=base+atr(period)*multiple;
downtrend=valuewhen(1, lowest(upper_band(1), period)>upper_band,
upper_band);
if(eavg(C, MA_period)>C and C<downtrend, 1, 0)
지표조건설정
period 10
multiple 3
MA_period 125
######거래량 지표변환부탁드려요
수식1 거래량비율
VV=sum(if(C>C(1),V,0),Period)/
sum(if(C<C(1),V,0),Period)
수식2 음봉기울기
if(VV<VV(1), VV, 0)
수식3 양봉기울기
if(VV>VV(1), VV, 0)
수식4 20
eavg(VV, 20)
수식5 60
eavg(VV, 60)
=============================
지표조건설정
Period 125
2022-10-03
986
글번호 162679
강조