커뮤니티

문의드립니다

프로필 이미지
epn
2017-03-18 16:56:52
111
글번호 107962
답변완료
n값을 하회하던 지수가 n값을 상회하면 종가상 매수 진입 수량은 aa 손절은 5틱 익절은 10틱/20틱/30틱/50틱/100틱 또한 9틱 이상 가던 지수가 n값 -1틱 오면 손절. 13시30분이후 신규 진입금지. n값 과 수량 은 input로 작성 부탁 합니다. 항상 감사 인사 드립니다.. 고맙습니다.
사용자 함수
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-03-20 16:30:43

안녕하세요 예스스탁입니다. input : n(100),aa(5); if crossup(c,n) and stime < 132000 Then buy("b",OnClose,def,aa); if MarketPosition == 1 Then{ ExitLong("bx1",atlimit,EntryPrice+PriceScale*10,"",1,1); ExitLong("bx2",atlimit,EntryPrice+PriceScale*20,"",1,1); ExitLong("bx3",atlimit,EntryPrice+PriceScale*30,"",1,1); ExitLong("bx4",atlimit,EntryPrice+PriceScale*50,"",1,1); ExitLong("bx5",atlimit,EntryPrice+PriceScale*100,"",1,1); if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*9 Then exitlong("bx",AtStop,n-PriceScale*1); } SetStopLoss(PriceScale*5,PointStop); 즐거운 하루되세요 > epn 님이 쓴 글입니다. > 제목 : 문의드립니다 > n값을 하회하던 지수가 n값을 상회하면 종가상 매수 진입 수량은 aa 손절은 5틱 익절은 10틱/20틱/30틱/50틱/100틱 또한 9틱 이상 가던 지수가 n값 -1틱 오면 손절. 13시30분이후 신규 진입금지. n값 과 수량 은 input로 작성 부탁 합니다. 항상 감사 인사 드립니다.. 고맙습니다.