예스스탁
예스스탁 답변
2024-01-03 09:09:37
안녕하세요
예스스탁입니다.
1
input : P1(50),af(0.02),maxaf(0.2),short(12),long(26),signal(9);
var : Emav(0),sarv(0),macdv(0),macds(0);
Emav = Ema(C,P1);
sarv = sar(af,maxaf);
macdv = macd(short,long);
macds = Ema(macdv,signal);
if MarketPosition <= 0 and c > Emav and C > sarv and CrossUp(macdv,macds) Then
Buy();
if MarketPosition >= 0 and c < Emav and C < sarv and CrossDown(macdv,macds) Then
Sell();
if MarketPosition == 1 Then
{
ExitLong("bx1",AtStop,lowest(L,5)[BarsSinceEntry]);
ExitLong("bx2",AtStop,highest(H,BarsSinceEntry)-PriceScale*10);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtStop,highest(H,5)[BarsSinceEntry]);
ExitShort("sx2",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*10);
}
2
input : P1(50),Period1(7),Period2(14),Period3(21),ADXP(10);
var : Emav(0),R1(0),R2(0),R3(0),A(0);
Emav = Ema(C,P1);
R1 = RSI(Period1);
R2 = RSI(Period2);
R3 = RSI(Period3);
A = ADX(ADXP);
if MarketPosition <= 0 and c > Emav and R1 > R2 and R2 > R3 and R3 > 50 and A >= 20 Then
Buy();
if MarketPosition >= 0 and c < Emav and R1 < R2 and R2 < R3 and R3 < 50 and A >= 20 Then
Sell();
if MarketPosition == 1 Then
{
ExitLong("bx1",AtStop,lowest(L,5)[BarsSinceEntry]);
ExitLong("bx2",AtStop,highest(H,BarsSinceEntry)-PriceScale*10);
}
if MarketPosition == -1 Then
{
ExitShort("sx1",AtStop,highest(H,5)[BarsSinceEntry]);
ExitShort("sx2",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*10);
}
즐거운 하루되세요
> 가날 님이 쓴 글입니다.
> 제목 : 시스템식 2개 부탁드려요
> 1번식
지수이동 평균(ema)50이평
파라볼릭 sra(parabolic sar)
macd 지표를 이용해서
지수이평선 50일선 위에 있고
파라볼릭 신호 sar 신호 아래쪽 점이 있을때
macd 파란선이 주황선 상향돌파 골든크로스일때
매수 신호 (1번사진)
지수이평선 50일선 아래에 있고
파라볼릭 신호 sar 신호 위에 점이 있을때
macd 파란선이 주황선 하향돌파 데드크로스일때
매수 신호 (2번 사진)
2번
지수이동 평균(ema)50이평
상대강도지수rsi 3개(기준 7,14,21)+rsi 50미들선
평균방향성지수 adx 지표를 이용해서
매수는(3번사진)
rsi 미들 50선위 7,14,21선이 정배열
50이평위
adx 수치가 20이상일때
매도는(4번사진)
rsi 미들 50선아래 7,14,21선이 역배열
50이평아래
adx 수치가 20이상일때
손절라인은 진입전 5개봉의 최저가
익절라인은 트레이딩스탑 최고점에서 10틱이상 하락시 청산