답변완료
종목검색식 부탁 드립니다
A=BBandsUp(17,2);
B=BBandsUp(40,2);
D=Disparity(20);
E=EnvelopeUP(20,6);
P=EnvelopeUp(50,3);
c>SAR(0.015,0.15) and
DIPlus(14)>=DIMinus(14) and
ma(c,20)>=ma(c,60) and
(o<c and c>P(19) and D<150 and D>D(1) and
((c>ma(h,5) and Crossup(A,E))
or
(c>ma(h,5) and B>E and A(1)<B(1) and CrossUp(A,B))
or
(A>B and B>E and CrossUp(C,A))
or
(CrossUp(C,A) and CrossUp(C,E))
or
(CrossUp(C,A) and CrossUp(C,B) and
CrossUp(C,E))))
or
(o<c and c<P(19) and D>D(1) and v>ma(v,5)*2 and
((c>ma(h,5) and Crossup(A,E))
or
(c>ma(h,5) and B>E and A(1)<B(1) and CrossUp(A,B))
or
(A>B and B>E and CrossUp(C,A))
or
(CrossUp(C,A) and CrossUp(C,E))
or
(CrossUp(C,A) and CrossUp(C,B) and
CrossUp(C,E))))
2024-06-24
741
글번호 180906
종목검색
답변완료
문의 드립니다.
아래는 트레이딩 뷰 지표인데요,
지표 전환 가능하실까요?
답변 항상 감사드립니다.
//@version=5
indicator("Larry Williams Large Trade Index (LWTI) [Loxx]",
shorttitle="LWTI [Loxx]",
overlay = false,
timeframe="",
timeframe_gaps = true)
greencolor = #2DD204
redcolor = #D2042D
variant(type, src, len) =>
sig = 0.0
if type == "SMA"
sig := ta.sma(src, len)
else if type == "EMA"
sig := ta.ema(src, len)
else if type == "WMA"
sig := ta.wma(src, len)
else if type == "RMA"
sig := ta.rma(src, len)
sig
per = input.int(8, "Period", group = "Basic Settings")
smthit = input.bool(false, "Smooth LWPI?", group = "Basic Settings")
type = input.string("SMA", "Smoothing Type", options = ["EMA", "WMA", "RMA", "SMA"], group = "BasicR Settings")
smthper = input.int(5, "Smoothing Period", group = "Basic Settings")
colorbars = input.bool(false, "Color bars?", group = "UI Options")
showsignals = input.bool(false, "Show signals?", group = "UI Options")
ma = ta.sma(close - nz(close[per]), per)
atr = ta.atr(per)
out = ma/atr * 50 + 50
out := smthit ? variant(type, out, smthper) : out
colorout = out > 50 ? greencolor : redcolor
plot(out, color = colorout, linewidth = 2)
barcolor(colorbars ? colorout : na)
middle = 50
plot(middle, color = bar_index % 2 ? color.gray : na)
goLong = ta.crossover(out, middle)
goShort = ta.crossunder(out, middle)
plotshape(goLong and showsignals, title = "Long", color = greencolor, textcolor = greencolor, text = "L", style = shape.triangleup, location = location.bottom, size = size.auto)
plotshape(goShort and showsignals, title = "Short", color = redcolor, textcolor = redcolor, text = "S", style = shape.triangledown, location = location.top, size = size.auto)
alertcondition(goLong, title="Long", message="Larry Williams Large Trade Index (LWTI) [Loxx]: Long₩nSymbol: {{ticker}}₩nPrice: {{close}}")
alertcondition(goShort, title="Short", message="Larry Williams Large Trade Index (LWTI) [Loxx]: Short₩nSymbol: {{ticker}}₩nPrice: {{close}}")
2024-06-24
865
글번호 180905
지표
답변완료
질문 요청 드립니다. 점찍기
안영 하세요.
아래 수식좀 수정 요청 드립니다.
* 점찍기가 안되네요...
## 50봉전 고가 와 0.7% 이상 하락 했을경우 점찍기
value91 = highest(H,70) ;
value92 = lowest(L,70) ;
value93 = value92 / value91 ;
var : TX93(0);
if CrossUp( value93 , 100.2) Then
{
TX93 = Text_New(sdate,stime,L,"◆");
Text_SetStyle(TX93,2,2);
Text_SetColor(TX93, Blue );
Text_SetSize(TX93,20);
}
* 아래 수식에서 보조 지표와 매인 지표 색상을 틀리게 할수 있나요?
즉 매인 지표는 이평선 보조 지표는 스톡케스터 일 경우
상단(매인차트) 하단(스톡) 색상을 틀리게 할수 있나요?
Input: aa(5) , bb(15) ;
input: n(1), hh(60) ;
var : box(0);
var : dd1(0),cnt2(0);
var : TL1(0),TL2(0),TX1(0),TX2(0);
var1 = ma(c,aa) ;
var2 = ma(c,bb) ;
if CrossUp( var1 , var2[5]) Then
{
box = Box_New(sDate,sTime,h,NextBarSdate,NextBarStime,l);
Box_SetColor(box,Rgb(255,255,50));
Box_SetFill(box,true);
Box_SetExtFill(box,true);
Box_SetSize(box,5);
value1 = H;
Value2 = L;
TL1 = TL_New(sDate,sTime,value1,NextBarSdate,NextBarStime,value1);
TL2 = TL_New(sDate,sTime,value2,NextBarSdate,NextBarStime,value2);
TL_SetColor(TL1,Rgb(255,0,55));
TL_SetColor(TL2,Rgb(255,0,55));
TL_SetSize(TL1,2);
TL_SetSize(TL2,2);
TX1 = Text_New(NextBarSdate,NextBarStime,value1,NumToStr(value1,2));
TX2 = Text_New(NextBarSdate,NextBarStime,value2,NumToStr(Value2,2));
Text_SetStyle(TX1,0,2);
Text_SetStyle(TX2,0,2);
Text_SetSize(TX1,13);
Text_SetSize(TX2,13);
}
Else
{
TL_SetEnd(TL1,NextBarSdate,NextBarStime,value1);
TL_SetEnd(TL2,NextBarSdate,NextBarStime,value2);
}
* 항상 고맙습니다 좋은 한주 되십시요.
2024-06-25
863
글번호 180890
지표