답변완료
수식작성 부탁드립니다.
안녕하세요.
아래 수식은 트레이딩뷰 수식인데 예스트레이더에 맞게 변환 부탁드립니다.
//@version=5
indicator("Heikin Ashi Bar Overlay", overlay=true, shorttitle="HABO")
vo = input(1.04, "Vertical offset")
ha_o = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, open)
ha_h = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, high)
ha_l = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, low)
ha_c = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close)
ha_col = ha_o < ha_c ? color.new(#22ab94, 60) : color.new(#eb4d5c, 60)
plotcandle(ha_o*vo, ha_h*vo, ha_l*vo, ha_c*vo, color=ha_col, wickcolor=ha_col, bordercolor=ha_col)
2022-01-27
799
글번호 155837
지표
답변완료
수식작성 부탁드립니다.
안녕하세요.
아래 수식은 트레이딩뷰 수식인데 예스트레이더에 맞게 변환 부탁드립니다.
//@version=5
indicator("Heikin Ashi Bar Overlay", overlay=true, shorttitle="HABO")
vo = input(1.04, "Vertical offset")
ha_o = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, open)
ha_h = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, high)
ha_l = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, low)
ha_c = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close)
ha_col = ha_o < ha_c ? color.new(#22ab94, 60) : color.new(#eb4d5c, 60)
plotcandle(ha_o*vo, ha_h*vo, ha_l*vo, ha_c*vo, color=ha_col, wickcolor=ha_col, bordercolor=ha_col)
2022-01-27
801
글번호 155836
지표
답변완료
시스템 주석 및 수정 부탁 드립니다
안녕하세요?
아래의 시스템에 문제가 있는지 신호가 생성되지 않습니다
주석과 신호 생성될 수 있도록 수정 부탁드립니다
감사합니다
Var : mav1(0), mav2(0), mav3(0), T1(0), T2(0), T3(0);
mav1 = ma(C,5);
mav2 = ma(C,20);
mav3 = ma(C,60);
if mav1 > mav1[1] Then
T1 = 1;
if mav1 < mav1[1] Then
T1 = -1;
if T1 == 1 and T1[1] != 1 Then
var1 = 0;
if T1 == 1 and c > 0 and (c+0)/2 >= mav1 and mav2 > mav2[1] and mav1 > mav2 Then{
var1 = var1+1;
if var1 == 1 Then
Buy("5매수");
}
if T1 == -1 and T1[1] != 1 Then
var2 = 0;
if T1 == -1 and c < 0 and (c+0)/2 <=mav1 and mav2 < mav2[1] and mav1 < mav2 Then{
var2 = var2+1;
if var2 == 1 Then
Sell("5매도");
}
2022-01-26
968
글번호 155833
시스템
답변완료
문의드립니다
코로나시국에 고생하십니다
input : period(20) , midperiod(40),d(2)
중앙 shift((eavg((c+H+L)/3,Period)),midperiod-1 )
상단 shift((eavg((c+H+L)/3,Period)+D1*stdev((c+H+L)/3,Period)),midperiod-1 )
하단 shift((eavg((c+H+L)/3,Period)-D1*stdev((c+H+L)/3,Period)),midperiod-1 )
여기에서 가운데 상단을 이용할 예정인데
주가가 상단을 돌파하는 검색식은 어떤방법으로 해야하나요???
2022-01-26
869
글번호 155831
종목검색
답변완료
문의드립니다
수고하십니다 트레이딩뷰 변환가능할지부탁드립니다
차트쉐어 파동지지와저항 비슷한데 색이전환되는것 같습니다
노고에 감사드리며 건강조심하세요
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © CryptoComrade
//@version=4
avg_candle(n)=> sma(abs(high - low), n)
is_support(c, level)=> c > level
prox_check(x, up_levels, down_levels, multiplier)=>abs(x - array.get(up_levels, 0)) > multiplier * avg_candle(100) and abs(x - array.get(down_levels, 0)) > multiplier * avg_candle(100)
study("Median CrossOver Levels", overlay=true)
n = input(100)
prox_mult = input(2.5)
var float[] cross_up_points = array.new_float(3, 0.0)
var float[] cross_dn_points = array.new_float(3, 0.0)
// Check if price has closed above median.
med = percentile_nearest_rank(high, n, 50)
above_med = close > med
// Crossed over median.
cross_above = not above_med[1] and above_med
// Crossed below median.
cross_below = above_med[1] and not above_med
if cross_above and prox_check(low, cross_up_points, cross_dn_points, prox_mult)
array.unshift(cross_up_points, low)
if cross_below and prox_check(high, cross_up_points, cross_dn_points, prox_mult)
array.unshift(cross_dn_points, high)
barcolor(close > med ? color.green : color.red)
plot(array.get(cross_up_points, 0), color=is_support(close, array.get(cross_up_points, 0)) ? color.green : color.red, linewidth=2, style=plot.style_cross, transp=0)
plot(array.get(cross_dn_points, 0), color=is_support(close, array.get(cross_dn_points, 0)) ? color.green : color.red, linewidth=2, style=plot.style_cross, transp=0)
plot(array.get(cross_up_points, 1), color=is_support(close, array.get(cross_up_points, 1)) ? color.green : color.red, style=plot.style_cross, transp=0)
plot(array.get(cross_dn_points, 1), color=is_support(close, array.get(cross_dn_points, 1)) ? color.green : color.red, style=plot.style_cross, transp=0)
2022-01-26
996
글번호 155829
지표