답변완료
수정부탁드립니다.
안녕하세요?
아래의 수식에서 진입부분에서 일부 수정부탁드립니다.
***현재 : 음봉+음봉 에 매도 (외변수1개로 음봉모두 값 바뀜)
양봉+양봉 에 매수 (외변수1개로 양봉모두 값 바뀜)
***수정 : 몸통길이2틱이상 짜리의 음봉 + 음봉(외부변수) 에 매도
몸통길이2틱이상 짜리의 양봉 + 양봉(외부변수) 에 매수
감사합니다.
input : 음봉(5),양봉(5);
input : P1(5),P2(20);
input : 익절틱수(50),손절틱수(50),진입횟수(3);
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 VAR1 > Var2 and MarketPosition == 0 and
entry < 진입횟수 and
C[1] == O[1]-음봉*PriceScale and
C == O-음봉*PriceScale Then
Sell();
if VAR1 < Var2 and MarketPosition == 0 and
entry < 진입횟수 and
C[1] == O[1]+양봉*PriceScale and
C == O+양봉*PriceScale Then
Buy();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2022-01-26
982
글번호 155778
시스템