예스스탁
예스스탁 답변
2020-01-17 11:22:47
안녕하세요
예스스탁입니다.
일반해외선물과 국내선물은 로직이 동일합니다.
항생과 같이 거래소의 하루의 시작시간과 다른 기준으로 하루를 보는 종목만 별도로
시간지정해 작성하시면 됩니다
1,3
Input : Period(30), Percent(5);
input : 익절틱수(50),손절틱수(50);
var : center(0),UPline(0),DNline(0),entry(0);
center = ma(C, Period);
UPline = EnvelopeUp(Period, Percent);
Dnline = EnvelopeDown(Period, Percent);
if bdate != bdate[1] Then
entry = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if entry < 1 and CrossDown(c,DNLine) Then
sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2
Input : Period(30), Percent(5);
input : 익절틱수(50),손절틱수(50);
var : center(0),UPline(0),DNline(0),entry(0);
center = ma(C, Period);
UPline = EnvelopeUp(Period, Percent);
Dnline = EnvelopeDown(Period, Percent);
if (sdate != sdate[1] and stime >= 101500) or
(sdate == sdate[1] and stime >= 101500 and stime[1] < 101500) Then
entry = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if entry < 1 and CrossDown(c,DNLine) Then
sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 엔벨로프 수식 부탁드림니다.
> 각각 일반 해외선물/ 항생 / 국내 선물 별로 수식 부탁드릴께요~~
[1] 일반 해외선물
1.envlope (기간:30일 퍼센트 5%) 하한선 이탈시 진입
2. 진입후 50틱 수익시 청산 - 50틱 손실시 청산
3.하루에 1회만 거래 진행
[2] 항생 해외 선물
1.envlope (기간:30일 퍼센트 5%) 하한선 이탈시 진입
2. 진입후 50틱 수익시 청산 - 50틱 손실시 청산
3.하루에 1회만 거래 진행
[3] 국내 선물
1.envlope (기간:30일 퍼센트 5%) 하한선 이탈시 진입
2. 진입후 50틱 수익시 청산 - 50틱 손실시 청산
3.하루에 1회만 거래 진행