커뮤니티

문의드립니다..

프로필 이미지
호시우보
2015-10-17 16:03:44
107
글번호 91389
답변완료
안녕하십니까... 아래 스토케스틱신호로 3개 진입.. +- 0.3 +- 0.5 +- 0.7에 각각 한개씩 익절 또는 손절하는 식 부탁합니다. 감사합니다. Input : Period(12), Period1(5); Var : value(0); value = StochasticsK(Period,Period1); # 매수/매도청산 If CrossUP(value, 20) Then { Buy(); } # 매도/매수청산 If CrossDown(value, 80) Then { Sell(); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-10-19 11:20:48

안녕하세요 예스스탁입니다. Input : Period(12), Period1(5); Var : value(0); value = StochasticsK(Period,Period1); # 매수/매도청산 If CrossUP(value, 20) Then { Buy("b",OnClose,def,3); } # 매도/매수청산 If CrossDown(value, 80) Then { Sell("s",OnClose,def,3); } if MarketPosition == 1 Then{ exitlong("bl1",AtStop,EntryPrice-0.3,"",1,1); exitlong("bl2",AtStop,EntryPrice-0.5,"",1,1); exitlong("bl3",AtStop,EntryPrice-0.7,"",1,1); exitlong("bp1",AtLimit,EntryPrice+0.3,"",1,1); exitlong("bp2",AtLimit,EntryPrice+0.5,"",1,1); exitlong("bp3",AtLimit,EntryPrice+0.7,"",1,1); } if MarketPosition == -1 Then{ ExitShort("sl1",AtStop,EntryPrice+0.3,"",1,1); ExitShort("sl2",AtStop,EntryPrice+0.5,"",1,1); ExitShort("sl3",AtStop,EntryPrice+0.7,"",1,1); ExitShort("sp1",AtLimit,EntryPrice-0.3,"",1,1); ExitShort("sp2",AtLimit,EntryPrice-0.5,"",1,1); ExitShort("sp3",AtLimit,EntryPrice-0.7,"",1,1); } 즐거운 하루되세요 > 호시우보 님이 쓴 글입니다. > 제목 : 문의드립니다.. > 안녕하십니까... 아래 스토케스틱신호로 3개 진입.. +- 0.3 +- 0.5 +- 0.7에 각각 한개씩 익절 또는 손절하는 식 부탁합니다. 감사합니다. Input : Period(12), Period1(5); Var : value(0); value = StochasticsK(Period,Period1); # 매수/매도청산 If CrossUP(value, 20) Then { Buy(); } # 매도/매수청산 If CrossDown(value, 80) Then { Sell(); }