커뮤니티

부탁합니다

프로필 이미지
큰바위얼굴
2014-02-18 10:05:19
155
글번호 72661
답변완료
Input : shortPeriod(1), longPeriod(20) ; Var : value(0); value = OSCP(shortPeriod, longPeriod); # 매수/매도청산 If CrossUP(value, 0) Then { Buy(); Exitshort(); } 최대수익대비하락 2p 수익후0.5p 이익실현 # 매도/매수청산 If CrossDown(value, 0) Then { Sell(); Exitlong(); } 최대수익대비하락 2p 수익후0.5p 이익실현
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-02-18 16:01:34

안녕하세요 예스스탁입니다. Input : shortPeriod(1), longPeriod(20) ; Var : value(0); value = OSCP(shortPeriod, longPeriod); # 매수/매도청산 If CrossUP(value, 0) Then { Buy(); Exitshort(); } if MarketPosition == 1 and highest(h,BarsSinceEntry) >= EntryPrice+2 Then ExitLong("bx",AtStop,highest(H,BarsSinceEntry)-0.5); # 매도/매수청산 If CrossDown(value, 0) Then { Sell(); Exitlong(); } if MarketPosition == 1 and Lowest(L,BarsSinceEntry) <= EntryPrice-2 Then ExitShort("sx",AtStop,lowest(L,BarsSinceEntry)+0.5); 즐거운 하루되세요 > 큰바위얼굴 님이 쓴 글입니다. > 제목 : 부탁합니다 > Input : shortPeriod(1), longPeriod(20) ; Var : value(0); value = OSCP(shortPeriod, longPeriod); # 매수/매도청산 If CrossUP(value, 0) Then { Buy(); Exitshort(); } 최대수익대비하락 2p 수익후0.5p 이익실현 # 매도/매수청산 If CrossDown(value, 0) Then { Sell(); Exitlong(); } 최대수익대비하락 2p 수익후0.5p 이익실현