커뮤니티

청산식구조

프로필 이미지
티끌
2017-08-03 11:41:14
79
글번호 111766
답변완료
청산의 기본식은 C[1]>C[0]일때 청산인데 조건이아래와 같을때 atmarket과 atstop으로 부탁드립니다 ? 조건 a,b,c가 있을때 진입후 a조건 발생시 청산을 늦추고 a조건 발생이후 b조건 발생시 다시 청산을 늦추고 스토캐스틱 crossdown(SK20,SD20)으로 청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-08-03 14:27:04

안녕하세요 예스스탁입니다. 1. if MarketPosition == 1 Then if a조건 then Condition1 = true; if B조건 then Condition1 = true; if Condition1 == false and Condition2 == false and C < C[1] Then exitlong("bx11",AtMarket); if Condition1 == true and Condition2 == true and crossdown(SK20,SD20) Then exitlong("bx12"); } Else{ Condition1 = false; Condition2 = false; } 2 if MarketPosition == 1 Then{ if a조건 then Condition1 = true; if B조건 then Condition1 = true; if Condition1 == false and Condition2 == false Then exitlong("bx2",AtStop,C-PriceScale*1); if Condition1 == true and Condition2 == true and crossdown(SK20,SD20) Then exitlong("bx12"); } Else{ Condition1 = false; Condition2 = false; } 즐거운 하루되세요 > 티끌 님이 쓴 글입니다. > 제목 : 청산식구조 > 청산의 기본식은 C[1]>C[0]일때 청산인데 조건이아래와 같을때 atmarket과 atstop으로 부탁드립니다 ? 조건 a,b,c가 있을때 진입후 a조건 발생시 청산을 늦추고 a조건 발생이후 b조건 발생시 다시 청산을 늦추고 스토캐스틱 crossdown(SK20,SD20)으로 청산