예스스탁
예스스탁 답변
2016-03-08 13:27:00
안녕하세요
예스스탁입니다.
문의하신 내용이시면
골드나 데드크로스시 지표값만으로 비교를 해야 합니다.
가격비교는 제외하고 지표비교만으로 신호가 발생하게 수정해 드립니다.
Input : TRIXP(7), TRIXsig(9),short(12),long(26),sto11(12),sto12(5),sto21(5),sto22(3);
var : TRIXv(0),TRIXs(0),MACDV(0),stok1(0),stok2(0);
TRIXv = TRIX(TRIXP);
TRIXs = ema(TRIXv,TRIXsig);;
MACDV = MACD(short,long);
stok1 = StochasticsK(sto11,sto12);
stok2 = StochasticsK(sto21,sto22);
if crossup(TRIXV,TRIXS) Then{
value11 = TRIXV;
value12 = value11[1];
value13 = c;
value14 = value13[1];
if value11 > value12 and value12 > 0 and
TRIXV < 0 and
MACDV > lowest(MACDV,30) and
stok1 > lowest(stok1,30) and
stok2 > lowest(stok2,30) and
(stime >= 090000 or stime < 040000) then
buy();
}
if CrossDown(TRIXV,TRIXS) Then{
value21 = TRIXV;
value22 = value21[1];
value23 = c;
value24 = value23[1];
if value21 < value22 and value22 > 0 and
TRIXV > 0 and
MACDV < Highest(MACDV,30) and
stok1 < Highest(stok1,30) and
stok2 < Highest(stok2,30) and
(stime >= 090000 or stime < 040000) then
sell();
}
if stime == 040000 or (stime > 040000 and stime[1] < 040000) Then{
exitlong();
exitshort();
}
SetStopProfittarget(PriceScale*30,PointStop);
SetStoploss(PriceScale*30,PointStop);
즐거운 하루되세요
> 수원 님이 쓴 글입니다.
> 제목 : 46727번 문의에 대한 재문의
> 46727 질문 아래 리플로 재문의 드렷습니다 수식 부탁드립니다