답변완료
수식 수정요청
아래 수식은 5분봉 단타신호용입니다.
여기에 다음 사항만 추가하여 검색코자 하니 수정부탁드립니다.
-신호발생봉 앞 120봉 이내(120봉전 ~ 1봉전)에서 저가가 900봉 최저가인 경우
*** 혹시 아래 수식 및 위 요청과는 별도로
"1봉전 저가가 5분봉 900봉의 최저가"인 경우
를 검색할 수식이 가능할까요?***
==============================================================================
input : short(5),mid(20),long(60),percent(3),Multiple(1.5),midperiod(78);
var : 조건(False);
var1 = ma(C,short);
Var2 = ma(C,mid);
Var3 = ma(c,long);
var4 = Highest(H[1],5);
var5 = ma(V,5);
var6 = (highest(high,midPeriod)+lowest(low,midPeriod))/2;
var7 = ma(c,60);
Var8 = BollBandUp(20,2);
조건 = max(var1,Var2,Var3) < min(var1,Var2,Var3) * (1+Percent/100) &&
C > Var4[1] and
Var5 >= 5000 and
V > V[1] * Multiple and
C > var6 and
C > Var7 and
CrossUp(C,Var8) and
O*1.025 <= H;
if 조건==true Then
Find(1);
2024-01-21
1068
글번호 175932
종목검색
답변완료
시스템식 부탁드립니다.
항상 도움주셔서 감사합니다.
종목 : 해외선물
차트 : 60분봉
요청식)
아래 시스템에서
가격이 상승시 물타기와 같은 배수 같은 간격으로 불타기를 하고 싶습니다.
물타기 진입과 청산은 기존과 동일하고
불타기의 청산은 가격이 불타기 평균가격+20$를 아래로 하락할때 청산하고 싶습니다.
포지션 진입이후 가격이 20$ 이상 상승하지 않고
진입가격 아래로 하락하면 물타기 진행합니다.
- 불타기, 물타기 첫번째 진입간격은 20$ 입니다.
그리고 포지션 평균가격 및 청산가격(예상가격)을 라인으로 표시하고 싶습니다.
#------------------------------------
input : Pst(1);
input : gap(20), gapmulti(0.7), multi(0.7), pt(20), sl(200);
var : vol(0),v1(0),t(0);
var : line1(0), line2(0);
value1 = gap/PointValue;
value2 = pt/PointValue;
value3 = sl/PointValue;
line1 = ma(c,10) ;
line2 = ma(c,20) ;
if pst == 1 Then
{
if MarketPosition == 0 and TotalTrades == TotalTrades[1] Then
{
vol = 1;
Buy("b",OnClose,Def,vol);
}
if MarketPosition == 1 Then
{
if CurrentContracts > CurrentContracts[1] Then
{
v1 = CurrentContracts-CurrentContracts[1];
if MaxEntries == 1 Then
t = value1 ;
Else
t = t+Round(t*gapmulti,0);
}
vol = Round(v1+v1*multi,0);
Buy("bb",AtLimit,EntryPrice(0)-PriceScale*(value1*MaxEntries),vol);
ExitLong("bp",AtLimit,AvgEntryPrice+PriceScale*Value2);
}
}
if pst == -1 Then
{
if MarketPosition == 0 and TotalTrades == TotalTrades[1] Then
{
vol = 1;
Sell("s",OnClose,Def,vol);
}
if MarketPosition == -1 Then
{
if CurrentContracts > CurrentContracts[1] Then
{
v1 = CurrentContracts-CurrentContracts[1];
if MaxEntries == 1 Then
t = value1 ;
Else
t = t+Round(t*gapmulti,0);
}
vol = Round(v1+v1*multi,0);
Sell("ss",AtLimit,EntryPrice(0)+PriceScale*(value1*MaxEntries),vol);
ExitShort("sp",AtLimit,AvgEntryPrice-PriceScale*Value2);
}
}
감사합니다.
2024-01-22
781
글번호 175930
시스템
답변완료
부탁드립니다
1. 20분마다 전전전시간대 최고가와 최저가, 전전시간대 최고가와 최저가 및 전시간대 최고가, 최저가, 종가, 그리고 현시간대 시가를 우측 연장 추세선으로 구현해 주세요
2. 20분마다 현시간대 종가가 중간값 위로 오르면 빨강색 봉으로, 아래로 내리면 파란색 봉으로 구현해 주세요
3. 20분마다 현시간대 중간값 추세선이 전시간대 중간값 추세선보다 높으면 빨강 추세선으로, 낮으면 파란 추세선으로 구현해 주세요
고맙습니다.
2024-01-21
589
글번호 175926
지표
답변완료
문의 드립니다.
study("Overbought Oversold Indicator")
n = input(5, title="Length")
Barcolor=input(true,title="Barcolor")
ys1 = (high + low + close * 2) / 4
rk3 = ema(ys1, n)
rk4 = stdev(ys1, n)
rk5 = (ys1 - rk3) * 100 / rk4
rk6 = ema(rk5, n)
up = ema(rk6, n)
down = ema(up, n)
Oo = iff(up < down, up, down)
Hh = Oo
Ll = iff(up < down, down, up)
Cc = Ll
b_color = iff(Oo[1] < Oo and Cc < Cc[1], #FFFF00, iff(up > down, #008000, #FF0000))
barcolor(Barcolor ? b_color : na)
hline(0)
plot(Oo, style=plot.style_histogram, color=b_color)
plot(Ll, style=plot.style_histogram, color=b_color)
plot(up, color=b_color,title="Up")
plot(down, color=b_color,title="Down")
Buy = crossover(up, down)
Sell = crossunder(up, down)
plotshape(Buy, title="Buy", color=#008000, style=shape.triangleup, location=location.bottom, text="Buy",size=size.tiny)
plotshape(Sell, title="Sell", color=#FF0000, style=shape.triangledown, location=location.top, text="Sell",size=size.tiny)
alertcondition(Buy, title="Buy Signal", message="Buy")
alertcondition(Sell, title="Sell Signal", message="Sell")
트레이딩뷰 지표인데 바이/셀 신호는 제외하고 지표 수식만 예스로 좀 바꿔주세요.
2024-01-19
693
글번호 175925
지표