답변완료
지표 질문입니다
1.
일봉에서 최근 20캔들 양봉 가운데 (종가-시가) 폭이 가장 큰 양봉 고가 A, 저가 B
일봉에서 최근 20캔들 음봉 가운데 (시가-종가) 폭이 가장 큰 음봉 저가 C, 고가 D
현재 일봉이 음봉이고 현재 캔들 저가가 A보다 낮을 때 현재 캔들 고가-(A-B)를 표시한다
현재 일봉이 양봉이고 현재 캔들 고가가 C보다 높을 때 현재 캔들 저가+(D-C)를 표시한다
input : n(20);
var : cnt(0),AA(0),BB(0),CC(0),DD(0);;
var1 = 0;
AA = 0;
BB = 0;
var2 = 0;
CC = 0;
DD = 0;
For cnt = 1 to n
{
if C[cnt] > O[cnt] and abs(C[cnt]-O[cnt]) > var1 Then
{
var1 = abs(C[cnt]-O[cnt]);
AA = H[cnt];
BB = L[cnt];
}
if C[cnt] < O[cnt] and abs(C[cnt]-O[cnt]) > var2 Then
{
var2 = abs(C[cnt]-O[cnt]);
CC = L[cnt];
DD = H[cnt];
}
}
if C < O and L < AA Then
Plot1(H-(AA-BB));
Else if C > O and H > CC Then
Plot1(L+(DD-CC));
Else
NoPlot(1);
만들어주식 위 수식을 틱 차트에서 구현되도록 타주기 전환부탁드립니다.
2.
틱 차트에서
최근 20일간 (고가-저가) 폭 가운데 가장 큰 순서대로 위 에서 부터 3가지 폭 만큼
금일 저가에서 상승한 위치를 그린다
최근 20일간 (고가-저가) 폭 가운데 가장 큰 순서대로 위 에서 부터 3가지 폭 만큼
금일 고가에서 하락한 위치를 그린다
감사합니다
2024-12-06
555
글번호 186016
지표
답변완료
키움수식을 예스랭귀지(종목검색수식)로 변환부탁드립니다.
Input: shortperiod(9),midperiod(26),longperiod(52);
var:A(0),B(0);
A=(highest(high,shortperiod)
+lowest(low,shortperiod)
+highest(high,midperiod)
+lowest(low,midperiod))/4;
B=(highest(high,longperiod)
+lowest(low,longperiod))/2;
Plot1(A);
plot2(B);
FixPlotShift(1,midperiod-1);
FixPlotShift(2,midperiod-1);
if sDate!=sDate[1] Then
Condition1=False;
if crossup(C,Max(A,B)) Then
Condition1=true;
if Condition1==true Then
Find(1);
2024-12-06
513
글번호 186008
종목검색
답변완료
가격채널 당일
INPUT : LENGTH(200);
VAR : TCHAN(0), BCHAN(0),TL(0);
TCHAN = HIGHEST(HIGH, LENGTH);
BCHAN = LOWEST(LOW, LENGTH);
PLOT1(TCHAN, "TOP");
PLOT2(BCHAN, "BOT");
if H == TCHAN and (var11 == 0 or (var11 > 0 and Index > var11+100)) Then
{
var11 = Index;
TL= TL_New(sdate,sTime,0,sDate,sTime,999);
TL_SetSize(TL,2);
TL_SetColor(TL,Cyan);
}
if L == BCHAN and (var21 == 0 or (var21 > 0 and Index > var21+100)) Then
{
var21 = Index;
TL= TL_New(sdate,sTime,0,sDate,sTime,999);
TL_SetSize(TL,2);
TL_SetColor(TL,Gold);
}
전일과 연관없이 당일 시초부터 계산. 감사합니다.
2024-12-06
620
글번호 186006
지표
답변완료
부탁 문의드립니다.
부탁 문의 드립니다.
1. cci가 -100이하 조건 에서 2번째 골든크로스가 일어나는 지점에서 매수포인트를 잡고자 합니다.
2. 골든 크로스 저점이 낮아지는 조건과 저점이 높아지는 조건도 구별 가능한지 알고 싶습니다.
3.cci -100이하에서 1차 골든크로스시1차매수 2차 골든크로스시 2차 분할매수 수식도 부탁드립니다.
수고 하십시요
Input : Period1(14),Period2(9);
var : CCIv(0),CCIsig(0),a(0),b(0);
CCIv = CCI(Period1);
CCIsig = ema(CCIv,Period2);
{
if CCIv<-100 and CrossUp(CCIv,CCIsig) Then
Buy();
if CCIv>100 and CCIv<CCIv[1] Then
ExitLong();
}
2024-12-06
465
글번호 186005
시스템
답변완료
수식전환 요청드립니다.
안녕하세요.
아래의 트레이딩뷰 지표수식을 예스트레이더 형식으로 변환을 요청드립니다.
감사합니다. (첨부파일 참조해 주십시오)
showSignal = input(title="Show Signal ?", type=input.bool, defval=true)
signalType = input(title="Signal Smoothing Type", defval="SMA", options=["EMA", "SMA"])
signalLength = input(title="Signal Smoothing Length", type=input.integer, defval=21)
src = input(title="Source", type=input.source, defval=close)
highlightCrossovers = input(title="Highlight Crossovers ?", type=input.bool, defval=false)
applyFilling = input(title="Apply Ribbon Filling ?", type=input.bool, defval=true)
signal = signalType == "EMA" ? ema(pvt, signalLength) : sma(pvt, signalLength)
trendColor = pvt > signal ? #0ebb23 : color.red
pvtColor = applyFilling ? trendColor : #0094ff
signalColor = applyFilling ? trendColor : #ff6a00
pvtPlot = plot(pvt, title="PVT", linewidth=2, color=pvtColor, transp=0)
signalPlot = plot(showSignal ? signal : na, title="Signal", color=signalColor, transp=0)
transparent = color.new(color.white, 100)
fillColor = applyFilling ? trendColor : transparent
fill(pvtPlot, signalPlot, color=fillColor, transp=70)
buyAlert = crossover(pvt, signal)
sellAlert = crossunder(pvt, signal)
plotshape(buyAlert and highlightCrossovers ? pvt : na, title="Crossover", location=location.absolute, style=shape.circle, size=size.tiny, color=color.green, transp=0)
plotshape(sellAlert and highlightCrossovers ? pvt : na, title="Crossunder", location=location.absolute, style=shape.circle, size=size.tiny, color=color.red, transp=0)
alertcondition(buyAlert, title="Alert: Buy", message="Buy
Symbol: {{exchange}}:{{ticker}}
Price: {{close}}")
alertcondition(sellAlert, title="Alert: Sell", message="Sell
Symbol: {{exchange}}:{{ticker}}
Price: {{close}}")
2024-12-06
620
글번호 186004
지표