답변완료
수식좀 요청 드립니다
매번 많은 도움에 고맙습니다.
두가지 요청 드립니다.
아래 하이킨 차트 에서 양봉 음봉을 카운트 하여 비율(%) 차트 좀 부탁 드립니다.
요청1) 20봉 기준 카운트 하여 (양봉수/음봉수) *100 = 추세선1(%)
요청2) 20봉기준 몸통길이를 합산하여 (총양봉합/ 총음봉합) *100 = 추세선2(%)
## 양봉 몸통길이 : 현재봉 이전 20봉중 양봉 몸통의 총합 (종가 - 시가) 더하기
## 음봉 몸통길이 : 현재봉 이전 20봉중 음봉 몸통의 총합 (시가 - 종가) 더하기
<아래 차트 기준>
var : xClose(0),xOpen(0),xHigh(0),xLow(0);
#Heiken Ashi 시고저종
if index == 0 then
{
xOpen = open;
xClose = (O+H+L+C)/4;
xHigh = MaxList( high, xOpen, xClose);
xLow = MinList( low, xOpen,xClose);
}
else
{
xClose = (O+H+L+C)/4;
xOpen = (xOpen [1] + xClose [1])/2 ;
xHigh = MaxList(High, xOpen, xClose) ;
xLow = MinList(Low, xOpen, xClose) ;
}
if XClose > Xopen Then
PlotPaintBar(Xhigh,Xlow,"강조",MAGENTA);
else if XClose < Xopen Then
PlotPaintBar(Xhigh,Xlow,"강조",CYAN);
else
PlotPaintBar(Xhigh,Xlow,"강조",GREEN);
고맙습니다. 수고 하십시요.
2023-06-08
686
글번호 169600
강조
답변완료
자표 작성 부탁드립니다.
아래는 트레이딩뷰에 있는 지표 작성 코드인데요, 예스트레이더에서 사용할 수 있도록 변환해 주시면 감사하겠습니다. 늘 친절하고 성의 있는 답변에 많은 도움을 받고 있습니다. 진심으로 감사드려요~
* 만약 아래 코드처럼 문자로 시그널을 나타내는 것이 불가능하다면 서로 다른 색깔의 화살표나 점 등으로 표현되어도 괜찮습니다.
study(title = "NR4 / NR7 + Inside Bar", overlay = true)
nr4 = (tr <= tr[1]) and (tr <= tr[2]) and (tr <= tr[3])
and (high<high[1] and low>low[1])
nr7 = nr4 and (tr <= tr[4]) and (tr <= tr[5]) and (tr <= tr[6])
and (high<high[1] and low>low[1])
profit = (nr4[1] or nr7[1] ) and ((high > high[1] and low>low[1] and close>high[1] ) or (high<high[1] and low < low[1] and close<low[1] ))
loss = (nr4[1] or nr7[1] ) and ( (high > high[1] and ( close<high[1] or low < low[1] )) or (low < low[1] and (close>low[1]or high > high[1]) ))
barcolor( nr4 ? blue : na, offset = 0, editable = true, title = "NR4")
barcolor( nr7 ? fuchsia : na, offset = 0, editable = true, title = "NR7")
plotshape(nr4, title= "NR4", location=location.abovebar, color=white, style=shape.arrowdown, text="NR4")
plotshape(nr7, title= "NR7", location=location.belowbar, color=white, style=shape.arrowup, text="NR7")
plotshape(profit, title= "profit", location=location.abovebar, color=white, style=shape.arrowdown, text="profit")
plotshape(loss, title= "loss", location=location.belowbar, color=white, style=shape.arrowup, text="loss")
2023-06-07
1153
글번호 169599
지표
답변완료
수식 문의 드립니다
안녕 하십니까
키움 수식을 변환하여 종목검색에서 사용 할수 있게 문의드립니다.
도저희 혼자 감당이 안되어 부탁 드립니다.
B1=if(eavg(C,12)-eavg(C,26) > eavg(eavg(C,12)-eavg(C,26),9), 1,-1);
B2=if(C > avg(C, 20), 1, -1);
B3=if((C - C(12)) / C(12) * 100 > 0, 1, -1);
B4=if(eavg((C-lowest(L, 5)) / (highest(H, 5) - lowest(L, 5)) * 100, 3)>50, 1, -1);
B5=If(CCI(20) > 0,1,-1);
B6=If(C > SAR(0.02,0.2),1,-1);
B7=If((eavg(sum(((C -L)-(H- C))/ (H-L)*V), 3)-eavg(sum(((C -L)-(H- C))/(H-L)*V), 10))>0,1,-1);
B9=B1+B2+B3+B4+B5+B6+B7;
BB=eavg(B9,9);
BB1=(BB-lowest(BB,기간1))/(highest(BB,기간1)-lowest(BB,기간1))*100;
A=LinearRegressionValue(C,20,0);
A1=LinearRegressionValue(A,20,0);
eq= A-A1;
z =A+eq;
Z1=(Z-lowest(Z,기간1))/(highest(Z,기간1)-lowest(Z,기간1))*100;
BB1(1)<=20 && Z1(1)<=20 && (CROSSUP(BB1,20) OR CROSSUP(Z1,20) OR CROSSUP(BB1,Z1))
기간1 : 120
B1~B7은 Seven BinaryWave 수식 입니다
B1는 MACD를 MACD선이 Signal 선보다 우위면 1 아니면 -1
B2는 이동평균을 종가가 기간 이동평균보다 우위면 1 아니면 -1
B3는 ROC를 ROC가 0 초과면 1 아니면 -1
B4는 stochastic 지표
B5는 CCI지표
B6는 파라볼릭을 지표
B7는 Chaikin's Oscillator
2023-06-07
1342
글번호 169598
종목검색