커뮤니티
시스탬식 수식 부탁드립니다
2025-12-12 09:51:30
186
글번호 228916
3개의 macd를 이용해서 0선아래서 1개의 macd가 골든크로스 발생시는 가짜신호라 무시
2~3개가 동시에 0선 아래서 골든크로스 발생시
매수해서 매수유지 0선 진입 및 살짝 돌파시
추가매수해서 매수유지하면서
0선 위에서 상승중 2~3개의 macd가 동시에
데드크로스 발생시에만 매도 할수 있게
시스템 수식 부탁드리겠습니다
1.macd (6,18,7)
2.macd (7,21,7)
3.macd (9,27,7)
- 1. AISelect_20251212_094941_Samsung capture.jpg (0.60 MB)
답변 3
예스스탁 예스스탁 답변
2025-12-12 14:07:37
안녕하세요
예스스탁입니다.
input : short1(6),long1(18),sig1(7);
input : short2(6),long2(21),sig2(7);
input : short3(6),long3(27),sig3(7);
var : macdv1(0),macds1(0);
var : macdv2(0),macds2(0);
var : macdv3(0),macds3(0);
macdv1 = macd(short1,long1);
macds1 = ema(macdv1,sig1);
macdv2 = macd(short2,long2);
macds2 = ema(macdv2,sig2);
macdv3 = macd(short3,long3);
macds3 = ema(macdv3,sig3);
if macdv1 < 0 and CrossUp(macdv1,macds1) and
macdv2 < 0 and CrossUp(macdv2,macds2) and
macdv3 < 0 and CrossUp(macdv3,macds3) Then
Buy();
if MarketPosition == 0 and
macdv1 > 0 and CrossDown(macdv1,macds1) and
macdv2 > 0 and CrossDown(macdv2,macds2) and
macdv3 > 0 and CrossDown(macdv3,macds3) Then
ExitLong();
즐거운 하루되세요
코인대박나자
2025-12-15 10:26:16
답변 감사합니다
매수는 그런대로 비슷한 지점에서 신호가 나오는거 같은데 매도는 어떨때는 0선 아래서 데드크로스에서 매도가 되거나 아니면 0선 위에라도 너무 일찍 매도를 해버리는 신호가 나오는데
0선 위에서 macd 데드크로스일때 2개의 macd가 모두 데드크로스일때면 더 좋지만 1개의 macd가 데드크로스일때도 그 비슷지점에서 매도가 되게 할수 있게 부탁드립니다. ^^
예스스탁 예스스탁 답변
2025-12-15 17:53:47
안녕하세요
예스스탁입니다.
3개 중 하나라도 0선 위에서 데드발생하면 청산하게 수정해 드립니다.
input : short1(6),long1(18),sig1(7);
input : short2(6),long2(21),sig2(7);
input : short3(6),long3(27),sig3(7);
var : macdv1(0),macds1(0);
var : macdv2(0),macds2(0);
var : macdv3(0),macds3(0);
macdv1 = macd(short1,long1);
macds1 = ema(macdv1,sig1);
macdv2 = macd(short2,long2);
macds2 = ema(macdv2,sig2);
macdv3 = macd(short3,long3);
macds3 = ema(macdv3,sig3);
if macdv1 < 0 and CrossUp(macdv1,macds1) and
macdv2 < 0 and CrossUp(macdv2,macds2) and
macdv3 < 0 and CrossUp(macdv3,macds3) Then
Buy();
if MarketPosition == 1 and
(macdv1 > 0 and CrossDown(macdv1,macds1) or
macdv2 > 0 and CrossDown(macdv2,macds2) or
macdv3 > 0 and CrossDown(macdv3,macds3)) Then
ExitLong();
즐거운 하루되세요