커뮤니티
문의드립니다.
2019-09-18 07:12:54
198
글번호 132028
늘 감사합니다.
해선입니다.
매수 이평선5,이평선10이 이평선20을 를 크로스업후 n봉이내 봉의 고가가 이평선 10을 터치시
청산 : 이평선 20 터치시 청산
매도 : 이평선5,이평선10이 이평선20을 크로스다운후 n봉이내 봉의 고가가 이평선 10을 터치시
답변 1
예스스탁 예스스탁 답변
2019-09-18 14:45:44
안녕하세요
예스스탁입니다.
input : p1(5),P2(10),P3(20),n(5);
var1 = ma(C,P1);
var2 = ma(C,P2);
var3 = ma(C,P3);
Condition1 = var1 > var3 and var2 > var3;
Condition2 = var1 < var3 and var2 < var3;
if Condition1 == true and Condition1[1] == false Then
value1 = index;
if Condition2 == true and Condition2[1] == false Then
value2 = index;
if value1 > 0 and index < value1+n and H < var2 Then
buy("b",AtStop,var2);
if MarketPosition == 1 and L > var3 Then
ExitLong("bx",AtStop,var3);
if value2 > 0 and index < value2+n and L > var2 Then
sell("s",AtStop,var2);
if MarketPosition == -1 and H < var3 Then
ExitShort("sx",AtStop,var3);
즐거운 하루되세요
> 하늘북 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 늘 감사합니다.
해선입니다.
매수 이평선5,이평선10이 이평선20을 를 크로스업후 n봉이내 봉의 고가가 이평선 10을 터치시
청산 : 이평선 20 터치시 청산
매도 : 이평선5,이평선10이 이평선20을 크로스다운후 n봉이내 봉의 고가가 이평선 10을 터치시
다음글