안녕하세요? 간단한 수식2가지 부탁드립니다.
이평선이 있고없고만 다른부분입니다.
항상 감사합니다.
1)
진입 : 양봉(몸통길이 외부변수) 양봉(몸통길이 외부변수) 출현시 매수
<양봉2개모두다 각각 별개의 외부변수>
음봉(몸통길이 외부변수) 음봉(몸통길이 외부변수) 출현시 매도
<음봉2개모두다 각각 별개의 외부변수>
청산 : 익절/손절 (각 외부변수), 하루매매횟수 (외부변수)
재진입 : 익절손절 되기전까지는 신호발생해도 진입금지
2) 정배열에도 매도, 역배열에서 매수
진입 : 양봉(몸통길이 외부변수) 양봉(몸통길이 외부변수) 출현시 매수
<양봉2개모두다 각각 별개의 외부변수>
음봉(몸통길이 외부변수) 음봉(몸통길이 외부변수) 출현시 매도
<음봉2개모두다 각각 별개의 외부변수>
청산 : 익절/손절 (각 외부변수), 하루매매횟수 (외부변수)
재진입 : 익절손절 되기전까지는 신호발생해도 진입금지
답변 1
예스스탁
예스스탁 답변
2020-08-21 17:57:51
안녕하세요
예스스탁입니다.
1
input : 양1(5),양2(5),음1(5),음2(5);
input : entrycnt(3),profit(50),loss(50);
var : entry(0);
if bdate != bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) then
entry = entry+1;
if entry < entrycnt and MarketPosition == 0 and C == O+양1*PriceScale and C[1] == O[1]+양2*PriceScale then
buy();
if entry < entrycnt and MarketPosition == 0 and C == O-음1*PriceScale and C[1] == O[1]-음2*PriceScale then
sell();
SetStopProfittarget(PriceScale*profit,PointStop);
SetStopLoss(PriceScale*loss,PointStop);
2
input : 양1(5),양2(5),음1(5),음2(5),p1(5),p2(20);
input : entrycnt(3),profit(50),loss(50);
var : entry(0);
var1 = ma(c,p1);
var2 = ma(c,p2);
if bdate != bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) then
entry = entry+1;
if entry < entrycnt and var1 > Var2 and MarketPosition == 0 and C == O+양1*PriceScale and C[1] == O[1]+양2*PriceScale then
buy();
if entry < entrycnt and var1 < Var2 and MarketPosition == 0 and C == O-음1*PriceScale and C[1] == O[1]-음2*PriceScale then
sell();
SetStopProfittarget(PriceScale*profit,PointStop);
SetStopLoss(PriceScale*loss,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다.
> 안녕하세요? 간단한 수식2가지 부탁드립니다.
이평선이 있고없고만 다른부분입니다.
항상 감사합니다.
1)
진입 : 양봉(몸통길이 외부변수) 양봉(몸통길이 외부변수) 출현시 매수
<양봉2개모두다 각각 별개의 외부변수>
음봉(몸통길이 외부변수) 음봉(몸통길이 외부변수) 출현시 매도
<음봉2개모두다 각각 별개의 외부변수>
청산 : 익절/손절 (각 외부변수), 하루매매횟수 (외부변수)
재진입 : 익절손절 되기전까지는 신호발생해도 진입금지
2) 정배열에도 매도, 역배열에서 매수
진입 : 양봉(몸통길이 외부변수) 양봉(몸통길이 외부변수) 출현시 매수
<양봉2개모두다 각각 별개의 외부변수>
음봉(몸통길이 외부변수) 음봉(몸통길이 외부변수) 출현시 매도
<음봉2개모두다 각각 별개의 외부변수>
청산 : 익절/손절 (각 외부변수), 하루매매횟수 (외부변수)
재진입 : 익절손절 되기전까지는 신호발생해도 진입금지