예스스탁
예스스탁 답변
2023-12-01 14:55:25
안녕하세요
예스스탁입니다.
수식은 예스랭귀지 편집기에서 입력하시면 됩니다.
예스랭귀지 편집기는 프로그램 상단의 시스템트레이딩 메뉴에서 선택하면 실행됩니다.
편집기가 실행되면 예스랭귀지 편집기 상단의 파일 메뉴에서
새로만들기 선택하면 새로만들기창이 나타납니다.
전략식이므로 일반탭에서 시스템을 선택 후 확인을 누르면
시스템 새로작성화면이 나타나고 시스템의 이름을 지정 후 확인 클릭하면 시스템 편집창이 나타납니다.
편집창에 아래 내용 복사해서 붙여 넣으시고 f4키를 눌러 검증하시면 완료됩니다.
이후에는 차트에서 시스템 목록에서 선택후 해당 이름 선택해 적용하시면 됩니다.
1
input : short(12),long(26),sig(9);
input : sto1(10),sto2(5),sto3(5);
var : macdv(0),macds(0);
var : stok(0),stod(0);
macdv = macd(short,long);
macds = ema(macdv,sig);
stok = stochasticsK(sto1,sto2);
stod = stochasticsD(sto1,sto2,sto3);
if MarketPosition <= 0 and CrossUp(MACDV,0) Then
Buy();
if MarketPosition == 1 and CrossDown(stok,stod) and stok >= 80 Then
ExitLong();
if MarketPosition >= 0 and CrossDown(MACDV,0) Then
Sell();
if MarketPosition == -1 and CrossUp(stok,stod) and stok <= 20 Then
ExitShort();
2
input : short(12),long(26),sig(9);
input : sto1(10),sto2(5),sto3(5);
var : macdv(0),macds(0);
var : stok(0),stod(0);
macdv = macd(short,long);
macds = ema(macdv,sig);
stok = stochasticsK(sto1,sto2);
stod = stochasticsD(sto1,sto2,sto3);
if MarketPosition <= 0 and CrossUp(MACDV,MACDS) Then
Buy();
if MarketPosition == 1 and CrossDown(stok,stod) and stok >= 80 Then
ExitLong();
if MarketPosition >= 0 and CrossDown(MACDV,MACDS) Then
Sell();
if MarketPosition == -1 and CrossUp(stok,stod) and stok <= 20 Then
ExitShort();
즐거운 하루되세요
> 김대리 님이 쓴 글입니다.
> 제목 : 수식문의
> 안녕하세요
1번
macd 기준선 상향돌파시 매수
stock slow 80 이상에서 데드크로스 청산
macd 기준선 하향돌파시 매도
stock slow 20 이하에서 골드크로스 청산
2번
macd 시그널 골든크로스 매수
stock slow 80 이상에서 데드크로스 청산
macd 시그널 데드크로스 매도
stock slow 20 이하에서 골드크로스 청산
감사합니다
너무 오랜만이라 수식을 예스트레이더에 넣으려면 어떻게 하는지 기억이 잘 안나는데
좀 알려주시면 감사하겠습니다
고맙습니다~~