예스스탁
예스스탁 답변
2025-06-09 15:52:05
안녕하세요
예스스탁입니다.
1. 시스템
input : short(12),long(26),sig(9),N(10);
var : osc(0),hh(0),ll(0);
osc = MACD_OSC(short,long,sig);
hh = highest(osc,N);
ll = lowest(osc,N);
if osc > hh[1] then
buy();
if osc < ll[1] then
sell();
2 강조
input : short(12),long(26),sig(9),N(10);
var : osc(0),hh(0),ll(0);
osc = MACD_OSC(short,long,sig);
hh = highest(osc,N);
ll = lowest(osc,N);
if osc > hh[1] then
PlotPaintBar(H,L,"강조",Magenta);
if osc < ll[1] then
PlotPaintBar(H,L,"강조",Cyan);
즐거운 하루되세요
> 부기곰 님이 쓴 글입니다.
> 제목 : macd 히스토그램
> 최근 10거래일 동안의 macd 히스토그램 막대차트의 max와 min을 구하여
진입, 청산하는 전략을 구현하고 싶습니다.
1. max, min을 화살표 혹은 바 색상을 다르게 표시하는법
2. max, min을 구하여 진입, 청산하는 수식
2가지 알려주시면 감사하겠습니다.