커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

도사님 도움부탁드려요.

1.오늘시가가 전일시가보다 높으면 " ~~ " 이다. 오늘시가가 전일시가보다 높으면 " ~~ " 이다. 2. 텍스트2 창에 텍스트로 설정. ( 글자크기,굵기,색상 변경가능 ) 3. 변수 설정 (정배열일때, 역배열일때.) " ~~ " 로 바뀜. input : ShortPeriod(38), LongPeriod(62); var : EmaFast(0), EmaSlow(0), Trend(0); EmaFast = ema(C, ShortPeriod); EmaSlow = ema(C, LongPeriod); if CrossUp(EmaFast, EmaSlow) Then Trend = -1; if CrossDown(EmaFast, EmaSlow) Then Trend = 1; Plot1(Trend, "UpTrend", IFf(Trend == -1, RED, GREEN) ,0, 5); if EmaFast > EmaSlow and C < EmaFast Then plot2(-0.97,"정배열조정",RGB(255,102,0) ,0, 8); if EmaFast < EmaSlow and C > EmaFast Then plot3(0.97,"역배열조정",RGb(0,128,255) ,0, 8); if EmaFast > EmaSlow Then PlotBaseLine1(1,"기준선1",RGb(10,10,10)); if EmaFast < EmaSlow Then PlotBaseLine2(-1,"기준선2",RGb(10,10,10));
프로필 이미지
아이덜
2024-12-24
567
글번호 186575
지표
답변완료

도와주세요

1.plot1목표에 닿거나 도달했을때마다, 추세선연결 및 꼭지점도형모양 2. plot1 ~6 소추세 , 7~12 대추세 ////////////////////////////////////////////////////////////// Plot1(var1,"상승목표"); --------- Plot2(var2,"HH1"); ]] Plot3(var3,"LL"); ]] Plot4(var4,"하락목표"); #녹밴 하락대칭 ]] Plot5(var5,"LL1"); ]] Plot6(var6,"HH"); --------- Plot7(var7,"하락목표1"); --------- Plot8(var8,"상승목표1"); ]] Plot9(var1+PriceScale,"상승목표+"); ]] Plot10(var8+PriceScale,"상승목표1+"); ]] Plot11(var4-PriceScale,"하락목표-"); ]] Plot12(var7-PriceScale,"하락목표1-"); --------- /////////////////////////////////////////////////////////////////////////////////// Input : AF(0.02), AFMAX(0.2); Var : Direction(0), SAR_Value(Close), AF_Value(.02), HighValue(High), LowValue(Low), EP(0),CSarv(0); if EP != 0 Then { if Direction == 1 then { EP = HighValue; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if High > HighValue then { HighValue = High; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } if Close < SAR_Value then { Direction = -1; SAR_Value = EP; AF_Value = 0; EP = 0; LowValue = low; } } else { EP = LowValue; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if Low < LowValue then { LowValue = Low; AF_Value = AF_Value + Af; if AF_Value >= AFMAX then AF_Value = AFMAX; } if Close > SAR_Value then { Direction = 1; SAR_Value = EP; AF_Value = 0; EP = 0; HighValue = High; } } CSarv = SAR_Value; } else { if SAR_Value != 0 && EP == 0 then { if Direction == 1 then { EP = HighValue; AF_Value = AF; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if High > HighValue then { HighValue = High; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } } else { EP = LowValue; AF_Value = Af; SAR_Value = SAR_Value + AF_Value * (EP - SAR_Value); if Low < LowValue then { LowValue = Low; AF_Value = AF_Value + AF; if AF_Value >= AFMAX then AF_Value = AFMAX; } } CSarv = SAR_Value; } else { if Direction == 0 then { if Close > Close[1] then Direction = 1; else if Close < Close[1] then Direction = -1; } else { if Direction == 1 then { if Close < Close[1] then { Direction = -1; SAR_Value = HighValue; CSarv = SAR_Value; } } if Direction == -1 then { if Close > Close[1] then { Direction = 1; SAR_Value = LowValue; CSarv = SAR_Value; } } } LowValue = min(Low, LowValue); HighValue = max(High, HighValue); } } var : t(0),hh(0),hl(0),lh(0),ll(0); var : hh1(0),hl1(0),lh1(0),ll1(0); var : hh2(0),hl2(0),lh2(0),ll2(0); if CrossUp(C,CSarv) Then { t = 1; hh = h; hl = l; hh1 = hh[1]; hl1 = hl[1]; var1 = hh1*2-ll; Var2 = hh1; Var3 = ll; Var7 = ll*2-hh1; Var9 = CSarv; } if CrossDown(C,CSarv) Then { t = -1; lh = h; ll = l; lh1 = lh[1]; ll1 = ll[1]; var4 = ll1*2-hh; Var5 = ll1; Var6 = hh; Var8 = hh*2-ll1; Var10= CSarv; } if t == 1 Then { if h > hh Then hh = h; if l < hl Then hl = h; } if t == -1 Then { if h > lh Then lh = h; if l < ll Then ll = l; } Plot1(var1,"상승목표"); Plot2(var2,"HH1"); Plot3(var3,"LL"); Plot4(var4,"하락목표"); #녹밴 하락대칭 Plot5(var5,"LL1"); Plot6(var6,"HH"); Plot7(var7,"하락목표1"); Plot8(var8,"상승목표1"); Plot9(var1+PriceScale,"상승목표+"); Plot10(var8+PriceScale,"상승목표1+"); Plot11(var4-PriceScale,"하락목표-"); Plot12(var7-PriceScale,"하락목표1-"); var : tx1(0),tx2(0),tx3(0),tx4(0); var : tx5(0),tx6(0),tx7(0),tx8(0); var : tx9(0),tx10(0),tx11(0),tx12(0); if var1 != var1[1] Then { tx1 = text_new(sDate,sTime,var1,"상승목표"); Text_SetStyle(tx1,0,0); Text_SetColor(tx1,Black); Text_SetSize(tx1,12); } Else Text_SetLocation(tx1,sDate,sTime,var1); if var2 != var2[1] Then { tx2 = text_new(sDate,NextBarStime,var2,"HH1"); Text_SetStyle(tx2,0,0); Text_SetColor(tx2,Black); Text_SetSize(tx2,12); } Else Text_SetLocation(tx2,sDate,sTime,var2); if var3 != var3[1] Then { tx3 = text_new(sDate,NextBarStime,var3,"LL"); Text_SetStyle(tx3,0,0); Text_SetColor(tx3,Black); Text_SetSize(tx3,12); } Else Text_SetLocation(tx3,sDate,sTime,var3); if var4 != var4[1] Then { tx4 = text_new(sDate,NextBarStime,var4,"하락목표"); Text_SetStyle(tx4,0,0); Text_SetColor(tx4,Black); Text_SetSize(tx4,12); } Else Text_SetLocation(tx4,sDate,sTime,var4); if var5 != var5[1] Then { tx5 = text_new(sDate,NextBarStime,var5,"LL1"); Text_SetStyle(tx5,0,0); Text_SetColor(tx5,Black); Text_SetSize(tx5,12); } Else Text_SetLocation(tx5,sDate,sTime,var5); if var6 != var6[1] Then { tx6 = text_new(sDate,NextBarStime,var6,"HH"); Text_SetStyle(tx6,0,0); Text_SetColor(tx6,Black); Text_SetSize(tx6,12); } Else Text_SetLocation(tx6,sDate,sTime,var6); if var7 != var7[1] Then { tx7 = text_new(sDate,NextBarStime,var7,"하락목표1"); Text_SetStyle(tx7,0,0); Text_SetColor(tx7,Black); Text_SetSize(tx7,12); } Else Text_SetLocation(tx7,sDate,sTime,var7); if var8 != var8[1] Then { tx8 = text_new(sDate,NextBarStime,var8,"상승목표1"); Text_SetStyle(tx8,0,0); Text_SetColor(tx8,Black); Text_SetSize(tx8,12); } Else Text_SetLocation(tx8,sDate,sTime,var8); if var1 != var1[1] Then { tx9 = text_new(sDate,NextBarStime,var1+PriceScale,"상승목표+"); Text_SetStyle(tx9,0,2); Text_SetColor(tx9,Black); Text_SetSize(tx9,12); } Else Text_SetLocation(tx9,sDate,sTime,var1+PriceScale); if var8 != var8[1] Then { tx10 = text_new(sDate,NextBarStime,var8+PriceScale,"상승목표1+"); Text_SetStyle(tx10,0,0); Text_SetColor(tx10,Black); Text_SetSize(tx10,12); } Else Text_SetLocation(tx10,sDate,sTime,var8+PriceScale); if var4 != var4[1] Then { tx11 = text_new(sDate,NextBarStime,var4-PriceScale,"하락목표-"); Text_SetStyle(tx11,0,1); Text_SetColor(tx11,Black); Text_SetSize(tx11,12); } Else Text_SetLocation(tx11,sDate,sTime,var4-PriceScale); if var7 != var7[1] Then { tx12 = text_new(sDate,NextBarStime,var7-PriceScale,"하락목표1-"); Text_SetStyle(tx12,0,4); Text_SetColor(tx12,Black); Text_SetSize(tx12,12); } Else Text_SetLocation(tx12,sDate,sTime,var7-PriceScale);
프로필 이미지
아이덜
2024-12-24
588
글번호 186570
지표
답변완료

수고하십니다

항상노고에 감사 드리며 즐거운 크리스마스 보내시길바라며 변환 부탁드립니다 indicator('Levels Strength Index [BigBeluga]', overlay = true, max_lines_count = 500) // INPUTS ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ int length = input.int(20, 'Length') int transp = input.int(5, 'Levels Transparency', minval = 2, maxval = 10) string trend_col = input.string('Neutral', 'Price Color', ['Trend', 'Neutral', 'None']) color up_color = input.color(#17e05a, '', inline = 'col') color dn_color = input.color(#db621c, '', inline = 'col') float src = close // } // CALCULATIONS――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ var level = array.new<float>(11) series int strength = 0 series float Lower_band = ta.lowest(length) series float Upper_band = ta.highest(length) series float step = (Upper_band - Lower_band) / 10 for i = 0 to 10 by 1 level.set(i, Lower_band + step * i) float lvl = level.get(i) bool cross_up = ta.crossover(src, lvl) bool cross_dn = ta.crossunder(src, lvl) if cross_up strength := strength + 1 strength if cross_dn strength := strength - 1 strength series float price = barstate.islast ? level.get(strength) : close draw_label(level1, level2, src) => if barstate.islast lvl = (level1 + level2) / 2 label.delete(label.new(bar_index + 1, lvl, src > level1 ? '▲' : '▼', textcolor = src > level1 ? up_color : dn_color, color = color(na), style = label.style_label_center)[1]) col1 = src < level.get(1) ? color.new(dn_color, 100 - transp * 11) : color.new(up_color, 100 - transp * 1) col2 = src > level.get(1) ? color.new(up_color, 100 - transp * 2) : color.new(dn_color, 100 - transp * 10) col3 = src > level.get(2) ? color.new(up_color, 100 - transp * 3) : color.new(dn_color, 100 - transp * 9) col4 = src > level.get(3) ? color.new(up_color, 100 - transp * 4) : color.new(dn_color, 100 - transp * 8) col5 = src > level.get(4) ? color.new(up_color, 100 - transp * 5) : color.new(dn_color, 100 - transp * 7) col6 = src > level.get(5) ? color.new(up_color, 100 - transp * 6) : color.new(dn_color, 100 - transp * 6) col7 = src > level.get(6) ? color.new(up_color, 100 - transp * 7) : color.new(dn_color, 100 - transp * 5) col8 = src > level.get(7) ? color.new(up_color, 100 - transp * 8) : color.new(dn_color, 100 - transp * 4) col9 = src > level.get(8) ? color.new(up_color, 100 - transp * 9) : color.new(dn_color, 100 - transp * 3) col10 = src > level.get(9) ? color.new(up_color, 100 - transp * 10) : color.new(dn_color, 100 - transp * 2) col11 = src > level.get(10) ? color.new(up_color, 100 - transp * 11) : color.new(dn_color, 100 - transp * 1) // } // PLOT ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ color color = switch trend_col 'Trend' => color.from_gradient(strength, 4, 6, dn_color, up_color) 'Neutral' => chart.fg_color 'None' => color(na) disp = display.all p0 = plot(level.get(0), display = disp, color = col1) p1 = plot(level.get(1), display = disp, color = col2) p2 = plot(level.get(2), display = disp, color = col3) p3 = plot(level.get(3), display = disp, color = col4) p4 = plot(level.get(4), display = disp, color = col5) p5 = plot(level.get(5), display = disp, color = col6) p6 = plot(level.get(6), display = disp, color = col7) p7 = plot(level.get(7), display = disp, color = col8) p8 = plot(level.get(8), display = disp, color = col9) p9 = plot(level.get(9), display = disp, color = col10) p10 = plot(level.get(10), display = disp, color = col11) fill(p0, p1, col1) fill(p1, p2, col2) fill(p2, p3, col3) fill(p3, p4, col4) fill(p4, p5, col5) fill(p5, p6, col6) fill(p6, p7, col7) fill(p7, p8, col8) fill(p8, p9, col9) fill(p9, p10, col10) if barstate.islast color col_grad = strength > 5 ? up_color : dn_color float level_ = level.get(strength) float stren = strength * 10 draw_label(level.get(0), level.get(1), src) draw_label(level.get(1), level.get(2), src) draw_label(level.get(2), level.get(3), src) draw_label(level.get(3), level.get(4), src) draw_label(level.get(4), level.get(5), src) draw_label(level.get(5), level.get(6), src) draw_label(level.get(6), level.get(7), src) draw_label(level.get(7), level.get(8), src) draw_label(level.get(8), level.get(9), src) draw_label(level.get(9), level.get(10), src) label.delete(label.new(bar_index + 1, level_, str.tostring(100 - stren, format.percent) + '▼ | ' + str.tostring(stren, format.percent) + '▲', color = color.new(col_grad, 50), style = label.style_label_left, textcolor = col_grad)[1]) line.delete(line.new(bar_index, level_, bar_index + 1, level_, color = color.new(col_grad, 50))[1]) plot(price, color = color, linewidth = 3) // }
프로필 이미지
비듬싸순
2024-12-24
623
글번호 186564
지표
답변완료

도사님 도움부탁드려요.

1. 두번째 갱신되었을경우, 별모양 추가해주세요. 3번째갱신되었을경우,별모양 input : 전환포인트(0.8); Array : HD[10](0),HT[10](0),HV[10](0); Array : LD[10](0),LT[10](0),LV[10](0); var : cnt(0),Hprice(0),Lprice(0); var : UpTrend(false),DownTrend(False),Trend(0),Trend1(0),ZigZagTL(0),TX(0),tx1(0); var : TL1(0),TL2(0),TL3(0),TL4(0),TL5(0),TL6(0),TL7(0),TL8(0),t(0); Plot1 (0); HPrice = H; LPrice = L; if Index == 0 or Bdate != Bdate[1] Then { HD[0] = sDate; HT[0] = sTime; HV[0] = HPrice; LD[0] = sDate; LT[0] = sTime; LV[0] = LPrice; trend = 0; trend1 = 0; t = 0; } Else { if Trend == 0 Then { if L < LV[0] Then { LD[0] = sDate; LT[0] = sTime; LV[0] = LPrice; } if H > HV[0] Then { HD[0] = sDate; HT[0] = sTime; HV[0] = HPrice; } } UpTrend = HPrice >= LV[0]+전환포인트; DownTrend = LPrice <= HV[0]-전환포인트; if trend <= 0 and UpTrend == true Then { trend = 1; trend1 = trend[1]; For cnt = 9 DownTo 1 { HD[cnt] = HD[cnt-1]; HT[cnt] = HT[cnt-1]; HV[cnt] = HV[cnt-1]; } HD[0] = sDate; HT[0] = sTime; HV[0] = HPrice; ZigZagTL = TL_New(LD[0],LT[0],LV[0],HD[0],HT[0],HV[0]); TL_SetColor(ZigZagTL,Gold); TL_SetSize(ZigZagTL,1); TX = Text_New(HD[0],HT[0],HV[0],NumToStr(HV[0]-LV[0],2)+" "); Text_SetStyle(TX,1,1); Text_SetColor(TX,Black); Text_SetSize(tx,25); Text_SetBold(tx,1); var2 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(23.6/100)); var3 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(38.2/100)); var4 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(50/100)); var5 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(61.8/100)); var6 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(76.4/100)); TL1 = TL_New(LD[0],LT[0],HV[0],NextBarSdate,NextBarStime,HV[0]); TL2 = TL_New(LD[0],LT[0],var2,NextBarSdate,NextBarStime,var2); TL3 = TL_New(LD[0],LT[0],var3,NextBarSdate,NextBarStime,var3); TL4 = TL_New(LD[0],LT[0],var4,NextBarSdate,NextBarStime,var4); TL5 = TL_New(LD[0],LT[0],var5,NextBarSdate,NextBarStime,var5); TL6 = TL_New(LD[0],LT[0],var6,NextBarSdate,NextBarStime,var6); TL7 = TL_New(LD[0],LT[0],LV[0],NextBarSdate,NextBarStime,LV[0]); TL_SetColor(TL1,Magenta); TL_SetColor(TL2,Gold); TL_SetColor(TL3,Orange); TL_SetColor(TL4,Green); TL_SetColor(TL5,Orange); TL_SetColor(TL6,Gold); TL_SetColor(TL7,Magenta); TL_SetSize(TL1,1); t = t+1; if t == 1 Then { tx1 = Text_New(NextBarSdate,NextBarStime,LV[0]-PriceScale*2,"■"); } } Else if trend >= 0 and DownTrend Then//하락추세 전환 { trend = -1; trend1 = trend[1]; For cnt = 9 DownTo 1 { LD[cnt] = LD[cnt-1]; LT[cnt] = LT[cnt-1]; LV[cnt] = LV[cnt-1]; } LD[0] = sDate; LT[0] = sTime; LV[0] = LPrice; ZigZagTL = TL_New(HD[0],HT[0],HV[0],LD[0],LT[0],LV[0]); TL_SetColor(ZigZagTL,Gold); TL_SetSize(ZigZagTL,1); TX = Text_New(LD[0],LT[0],LV[0],NumToStr(HV[0]-LV[0],2)+" "); Text_SetStyle(TX,1,0); Text_SetColor(TX,Black); Text_SetSize(tx,25); Text_SetBold(tx,1); var2 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(23.6/100)); var3 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(38.2/100)); var4 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(50/100)); var5 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(61.8/100)); var6 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(76.4/100)); TL1 = TL_New(HD[0],HT[0],HV[0],NextBarSdate,NextBarStime,HV[0]); TL2 = TL_New(HD[0],HT[0],var2,NextBarSdate,NextBarStime,var2); TL3 = TL_New(HD[0],HT[0],var3,NextBarSdate,NextBarStime,var3); TL4 = TL_New(HD[0],HT[0],var4,NextBarSdate,NextBarStime,var4); TL5 = TL_New(HD[0],HT[0],var5,NextBarSdate,NextBarStime,var5); TL6 = TL_New(HD[0],HT[0],var6,NextBarSdate,NextBarStime,var6); TL7 = TL_New(HD[0],HT[0],LV[0],NextBarSdate,NextBarStime,LV[0]); TL_SetColor(TL1,Magenta); TL_SetColor(TL2,Gold); TL_SetColor(TL3,Orange); TL_SetColor(TL4,Green); TL_SetColor(TL5,Orange); TL_SetColor(TL6,Gold); TL_SetColor(TL7,Magenta); TL_SetSize(TL7,1); t = t+1; if t == 1 Then { tx1 = Text_New(NextBarSdate,NextBarStime,HV[0]+PriceScale*2,"■"); } } Else { if trend == 1 Then { if trend1 == 0 Then { LV[0] = DayLow; } if HPrice > HV[0] Then { HD[0] = sDate; HT[0] = sTime; HV[0] = HPrice; TL_SetEnd(ZigZagTL,HD[0],HT[0],HV[0]); Text_SetLocation(TX,HD[0],HT[0],HV[0]); Text_SetString(TX,NumToStr(HV[0]-LV[0],2)+" "); var2 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(23.6/100)); var3 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(38.2/100)); var4 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(50/100)); var5 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(61.8/100)); var6 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(76.4/100)); TL_SetBegin(TL1,LD[0],LT[0],HV[0]); TL_SetBegin(TL2,LD[0],LT[0],Var2); TL_SetBegin(TL3,LD[0],LT[0],Var3); TL_SetBegin(TL4,LD[0],LT[0],Var4); TL_SetBegin(TL5,LD[0],LT[0],Var5); TL_SetBegin(TL6,LD[0],LT[0],Var6); TL_SetBegin(TL7,LD[0],LT[0],LV[0]); TL_SetEnd(TL1,Sdate,Stime,HV[0]); TL_SetEnd(TL2,Sdate,Stime,Var2); TL_SetEnd(TL3,Sdate,Stime,Var3); TL_SetEnd(TL4,Sdate,Stime,Var4); TL_SetEnd(TL5,Sdate,Stime,Var5); TL_SetEnd(TL6,Sdate,Stime,Var6); TL_SetEnd(TL7,Sdate,Stime,LV[0]); if t == 1 Then Text_SetLocation(tx1,sDate,sTime,LV[0]-PriceScale*2); } } if trend == -1 Then { if trend1 == 0 Then { HV[0] = DayHigh; } if LPrice < LV[0] Then { LD[0] = sDate; LT[0] = sTime; LV[0] = LPrice; TL_SetEnd(ZigZagTL,LD[0],LT[0],LV[0]); Text_SetLocation(TX,LD[0],LT[0],LV[0]); Text_SetString(TX,NumToStr(HV[0]-LV[0],2)+" "); var2 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(23.6/100)); var3 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(38.2/100)); var4 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(50/100)); var5 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(61.8/100)); var6 = 10^(LOG10(HV[0])-(LOG10(HV[0])-LOG10(LV[0]))*(76.4/100)); TL_SetBegin(TL1,HD[0],HT[0],HV[0]); TL_SetBegin(TL2,HD[0],HT[0],Var2); TL_SetBegin(TL3,HD[0],HT[0],Var3); TL_SetBegin(TL4,HD[0],HT[0],Var4); TL_SetBegin(TL5,HD[0],HT[0],Var5); TL_SetBegin(TL6,HD[0],HT[0],Var6); TL_SetBegin(TL7,HD[0],HT[0],LV[0]); TL_SetEnd(TL1,Sdate,Stime,HV[0]); TL_SetEnd(TL2,Sdate,Stime,Var2); TL_SetEnd(TL3,Sdate,Stime,Var3); TL_SetEnd(TL4,Sdate,Stime,Var4); TL_SetEnd(TL5,Sdate,Stime,Var5); TL_SetEnd(TL6,Sdate,Stime,Var6); TL_SetEnd(TL7,Sdate,Stime,LV[0]); if t == 1 Then Text_SetLocation(tx1,sDate,sTime,HV[0]+PriceScale*2); } } } }
프로필 이미지
아이덜
2024-12-24
572
글번호 186563
지표

살빼고싶다 님에 의해서 삭제되었습니다.

프로필 이미지
살빼고싶다
2024-12-24
81
글번호 186562
검색
답변완료

검색식 부탁 드립니다

기준 시가 A=Valuewhen(1,dayclose()>predayclose()*m,dayopen()); 기준 중심 A=Valuewhen(1,dayclose()>predayclose()*m,dayclose()); B=Valuewhen(1,dayclose()>predayclose()*m,dayopen()); (A+B)/2 기준 종가 A=Valuewhen(1,dayclose()>predayclose()*m,dayclose()); 지표 조건 M 1.10 5이평각도 a=avg(c,기간1); b=(a(0)/c)-(a(1)/c); 10이평각도 a=avg(c,기간2); b=(a(0)/c)-(a(1)/c); 20이평각도 a=avg(c,기간3); b=(a(0)/c)-(a(1)/c); 지표조건 기간1 5 기간2 10 기간3 20 기준 시가 기준 중심 기준종가 를 이평각도5이평이 돌파 하는 종목검색식 부탁 드립니다 상단 당일=(dayClose()+dayHigh()+dayLow())/3; A=당일+npdc(1)+npdc(2)+npdc(3)+npdc(4)+npdc(5)+npdc(6)+ npdc(7)+npdc(8)+npdc(9)+npdc(10)+npdc(11)+npdc(12)+npdc(13)+ npdc(14)+npdc(15)+npdc(16)+npdc(17)+npdc(18)+npdc(19); M=A/20; 편차합= pow(당일-M,2)+pow(npdc(1)-M,2)+pow(npdc(2)-M,2)+ pow(npdc(3)-M,2)+pow(npdc(4)-M,2)+pow(npdc(5)-M,2)+ pow(npdc(6)-M,2)+pow(npdc(7)-M,2)+pow(npdc(8)-M,2)+ pow(npdc(9)-M,2)+pow(npdc(10)-M,2)+pow(npdc(11)-M,2)+ pow(npdc(12)-M,2)+pow(npdc(13)-M,2)+pow(npdc(14)-M,2)+ pow(npdc(15)-M,2)+pow(npdc(16)-M,2)+pow(npdc(17)-M,2)+ pow(npdc(18)-M,2)+pow(npdc(19)-M,2); M-D1*sqrt(편차합/20) 상단중심 M1=M-D1*sqrt(편차합/20); (M+M1)/2 지표조건 D1 2 상단 중심을 돌파하는 종목 검색식 부탁 드립니다
프로필 이미지
구경꾼그림자
2024-12-24
545
글번호 186561
종목검색
답변완료

종목검색식 부탁드림니다.

항상 노고에 감사드림니다. 아래의 수식을 종목검색식으로 부탁드림니다. 1)종목수식 a=ma((npredayclose(2)+npredayclose(1)+ dayclose())/3,3)*0.92.5; crossup(c,a) 2)종목수식 a=ma((npredayclose(2)+npredayclose(1)+ dayclose())/3,3)*0.85; crossup(c,a)
프로필 이미지
존슨비치
2024-12-24
512
글번호 186560
종목검색
답변완료

박스 높이(위-아래)

아래 박스 수식의 위 아래의 높이를 구하는 수식 부탁합니다(위-아래) ================================================================= Input : 기준(-10),p(5); var : Vpower(0),Upper(0),Lower(0),mav(0),T(0); var : hh(0),ll(0),dd(0),tt(0),box(0); Vpower = upVol/(upVol+downVol)*100-50; If Vpower > 0 Then Upper = Vpower; Else Upper = 0; If Vpower <= 0 Then lower = Vpower; Else lower = 0; mav = ma(Vpower,p); if CrossUp(기준,mav) Then { T = 1; hh = h; ll = l; dd = sDate; tt = sTime; box = Box_New(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Blue); Box_SetFill(box,true,100,true); } if CrossDown(기준,mav) Then T = -1; if T == 1 Then { if h > hh Then hh = h; if l < ll Then ll = l; Box_SetBegin(box,dd,tt,hh); Box_SetEnd(box,NextBarSdate,NextBarStime,ll); }
프로필 이미지
팔보채
2024-12-24
497
글번호 186559
지표
답변완료

예스랭귀지 수식 요청합니다

안녕하세요 1봉전보다 0봉전 상승 OBV(10) and CCI(9) 이렇게 수식 가능할까요? 감사합니다
프로필 이미지
당근인생
2024-12-24
542
글번호 186558
종목검색
답변완료

질문드리겠습니다

안녕하세요 crossup,crossdown 을 함수로 만들어 응용하고자 하는데 수식이 어떻게 되는지 알고 싶습니다 랭귀지 편집기에 사용자 함수에는 등재가 안돼있어서요 항상 감사드리며 즐거운 크리스마스 보내시고 한 해 마무리 잘 하시길 바랍니다~
프로필 이미지
yamu
2024-12-24
439
글번호 186557
지표