답변완료
부탁드립니다
Input : Period(14) ;
var : DMIv(0),DP(0),DM(0),cnt(-1);
DMIv = DMI(Period);
DP = DIPlus(Period);
DM = DIMinus(Period);
if CrossUp(dp,dm) && v[1]*1.2 <v Then
var1 = c ;
if CrossUp(c,var1) Then
Var2 = c;
if crossup(c,var2) Then
find( c> 1000 && v > 100000) ;
var1=c 라인을 돌파(var2=c) 이 라인을 다시돌파한 자리 검색. var2부터 작동불능.
검토부탁 드립니다.
2025-08-05
171
글번호 192970
종목검색
답변완료
수식 문의 드립니다.
안녕하세요.
수식 문의 드립니다.
1. 신고가
A = Valuewhen(1, Highest(H, 기간)==H, H);
2. 신저가
B = Valuewhen(1, Lowest(L, 기간)==L, L);
3.
신고가, 신저가(기간= 10)
23.6%, 38.2%, 50%, 61.8%, 78.6%
4. 5, 20일선
5. 5, 20일선 G/C 선
-------------------------------------------
부탁드립니다.
감사 합니다
2025-08-05
156
글번호 192969
지표
답변완료
수식 완성부탁드립니다.
input : Period(20),Period1(5),Period2(20),A(0);
var1 = ma(C,Period);
Var2 = ma(C,Period2);
Var3 = (ma(c,Period1)-Var2)/C*100;
if Crossup(C,Var1) and Var2 > Var2[1] and Var2[1] < Var2[2] and
CrossUp(Var3,A) Then
Find(1);
고생이 많으십니다.
위 수식을 지표식과 검색식으로 각각 변환 부탁드립니다.
감사합니다.
2025-08-04
156
글번호 192968
지표
답변완료
변환 부탁드립니다.
트레이딩 뷰 지표입니다.
변환 부탁 드립니다.
//@version=6
indicator("Zone Shift [ChartPrime]", max_lines_count = 500, overlay = true, max_labels_count = 500)
// --------------------------------------------------------------------------------------------------------------------}
// ?? ???????? ????????????
// --------------------------------------------------------------------------------------------------------------------{
int length = input.int(100, "Length 60-200", minval = 60, maxval = 200)
color upColor = input.color(color.lime, "", inline = "colors")
color dnColor = input.color(color.blue, "", inline = "colors")
// --------------------------------------------------------------------------------------------------------------------}
// ?? ?????????????????? ????????????????????????
// --------------------------------------------------------------------------------------------------------------------{
var trend = false
var trendStart = float(na)
var lastRetest = bar_index
float ema = ta.ema(close, length)
float hma = ta.hma(close, length-40)
float dist = ta.sma(high-low, 200)
float mid = math.avg(ema, hma)
float top = mid + dist
float bot = mid - dist
if barstate.isconfirmed
if low > top and low[1] < top[1] and not trend
trend := true
trendStart := low
if high < bot and high[1] > bot[1] and trend
trend := false
trendStart := high
trend_col = trend ? upColor : dnColor
// Retest TrendStart Level
if barstate.isconfirmed
if (close > trendStart and close[1] < trendStart[1] or low > trendStart and low[1] < trendStart[1] ) and trend and bar_index - lastRetest > 5
lastRetest := bar_index
label.new(bar_index, low, "?", color = color.new(color.black, 100), style = label.style_label_up, textcolor = trend_col)
if (close[1] > trendStart and close < trendStart[1] or high[1] > trendStart and high < trendStart[1]) and not trend and bar_index - lastRetest > 5
lastRetest := bar_index
label.new(bar_index, high, "?", color = color.new(color.black, 100), style = label.style_label_down, textcolor = trend_col)
// --------------------------------------------------------------------------------------------------------------------}
// ?? ??????????????????????????
// --------------------------------------------------------------------------------------------------------------------{
plot(mid, "Middle", color = bar_index % 2 == 0 ? chart.fg_color : na)
plot(top, "Top", color = chart.fg_color )
plot(bot, "Bottom", color = chart.fg_color )
barcolor(trend_col)
plotcandle(open, high, low, close, title='CandleColor', color = trend_col, wickcolor=trend_col, bordercolor = trend_col, force_overlay = true)
plot(trendStart != trendStart[1] ? na : trendStart, "Trend Initiation Level", style = plot.style_linebr, color = bar_index % 2 == 0 ? chart.fg_color : na)
// --------------------------------------------------------------------------------------------------------------------}
2025-08-04
178
글번호 192965
지표
답변완료
화살표 표시가 되지 않습니다.
안녕하세요
Q&A 92545 글의 답글을 보고 아래와 같이 코드를 작성하였습니다.
input : short(10),long(100);
var : macdv(0),tx(0);
macdv = macd(short,long);
Plot1(macdv);
PlotBaseLine1(0);
if CrossUp(macdv,0) Then
{
tx = Text_New(sDate,sTime,macdv,"▲");
Text_SetColor(tx,Red);
Text_SetSize(tx,20);
}
새로운 지표로 만들어서 지표 적용하기를 하면 첨부의 그림과 같이
신호선은 생성이 됩니다만 신호 발생지점에서 ▲ 는 생성되지 않고 있습니다.
왜 그런지 이유를 알 수 있을까요?
답변에 미리 감사드립니다.
2025-08-04
147
글번호 192964
지표