답변완료
안녕하세요
study(title="W", shorttitle="B")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")
ap = hlc3
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)
wt1 = tci
wt2 = sma(wt1,4)
plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red, style=3)
plot(osLevel2, color=green, style=3)
plot(wt1, color=green)
plot(wt2, color=red, style=3)
plot(wt1-wt2, color=blue, style=3)
문의드립니다. 감사합니다.
2020-02-26
433
글번호 136363
지표
답변완료
키움신호문의드립니다.
키움에서 macd 골든데드 신호문의드립니다.
CrossUp(MACD(shortPeriod,longPeriod),eavg(MACD(shortPeriod,longPeriod),sigPeriod))
매수표시와색깔.
CrossDown(MACD(shortPeriod,longPeriod),eavg(MACD(shortPeriod,longPeriod),sigPeriod))
매도표시와 색깔.
수정할 수 있게도 부탁드립니다.
지표변수
short long sig
변수또한이요. 만약 적용시 어디서 적용하는지도 궁금합니다.
2020-02-26
457
글번호 136347
지표
답변완료
질문드립니다.
아래 질문드립니다.
1. 분봉에서 countif(조건 , 10) 사용시 10봉을
10일로 해서 사용하는 방법좀 부탁합니다.
2. 청산식에서 진입명을 불러오는데,,포지션횟수 상관없이 불러서 사용하는 방법이 있나요.
종목당 진입,청산이 여러개 있고...청산조건이 전체청산과 진입별 개별청산조건 달라서
손절이나 기타조건을 설정하기가 힘드네요..
3. 기존에 시스템식과 검색식을 병행해서 사용하는데, 같은 내용의 수식(일부)를
검색식에서는 챠트에 검색되는데 시스템식에서는 반응이 없네요....
시스템식의 다른에러가 있으서 그런가요..
기존에 잘 반응했고 다른 종목에서는 지금도 반응하는데..
2020-02-26
392
글번호 136335
시스템
답변완료
안녕하세요
study("EIS", shorttitle="B")
useCustomResolution=input(false, type=bool)
customResolution=input("D", type=resolution)
source = security(tickerid, useCustomResolution ? customResolution : period, close)
showColorBars=input(false, type=bool)
lengthEMA = input(13)
fastLength = input(12, minval=1), slowLength=input(26,minval=1)
signalLength=input(9,minval=1)
calc_hist(source, fastLength, slowLength) =>
fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)
macd = fastMA - slowMA
signal = sma(macd, signalLength)
macd - signal
get_color(emaSeries, macdHist) =>
g_f = (emaSeries > emaSeries[1]) and (macdHist > macdHist[1])
r_f = (emaSeries < emaSeries[1]) and (macdHist < macdHist[1])
g_f ? green : r_f ? red : blue
b_color = get_color(ema(source, lengthEMA), calc_hist(source, fastLength, slowLength))
bgcolor(b_color, transp=0)
barcolor(showColorBars ? b_color : na)
예스수식으로 변환 문의드립니다. 감사합니다.
2020-02-26
457
글번호 136334
지표