커뮤니티
부탁드립니다
2026-03-26 14:03:38
59
글번호 231280
매수 :
1. 스토케스틱 기준선 20을 벗어나고
2. macd가 기준선위에서 상승중일때
3. 60일선 위에서
4 20일선이 상승전환 하는 싯점에 매수신호 발생
매도는 반대로 부탁드립니다
답변 2
예스스탁
2026-03-26 16:01:02
관리자님에 의해 삭제된 답변입니다.
예스스탁 예스스탁 답변
2026-03-26 16:07:52
안녕하세요
예스스탁입니다.
input : p1(20),p2(60);
input : short(12),long(26);
input : sto1(10),sto2(5);
var : m1(0),m2(0),t(0),macdv(0);
var : stok(0),stod(0),s(0);
m1 = ma(C,p1);
m2 = ma(c,p2);
macdv = macd(short,long);
stok = stochasticsK(sto1,sto2);
if m1 > m1[1] Then
t = 1;
if m1 < m1[1] Then
t = -1;
if CrossUp(stok,20) Then
s = 1;
if CrossDown(stok,20) Then
s = -1;
if CrossUp(stok,80) Then
s = 2;
if CrossDown(stok,80) Then
s = -2;
if s == 1 and
macdv > 0 and macdv > macdv[1] and
t == 1 and t != t[1] and
m1 > m2 Then
Buy();
if s == -2 and
macdv < 0 and macdv < macdv[1] and
t == -1 and t != t[1] and
m1 < m2 Then
Sell();
즐거운 하루되세요