커뮤니티

수식 확인 부탁 드립니다

프로필 이미지
뎅이요
2019-04-26 03:14:35
138
글번호 128137
답변완료
1,2번 수식 확인부탁 드립니다 1. 매수 진입명 "MA" 매수진입 하여 가격(고가) 6틱이상 상승하였다가 하락하여 매수가격에 도달하면 청산되도록 설정한 수식입니다. If IsEntryName("MA", 0) Then SetBreakEven(6 * TIckSize * cUrrentContracts); 매수진입 하여 가격(고가) 6틱이상 상승하였다가 하락하는 경우 매수진입가격에 도달하면 청산되도록 설정한 수식입니다. SetBreakEven(6 * TIckSize * cUrrentContracts); => 예스스탁에 적용되도록 아래의 수식으로 수정한것이 시스템에 적용되지 않습니다. 확인부탁 드립니다. if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+6 * TIckSize *Currentcontracts Then ExitLong("bx",AtStop,EntryPrice); if MarketPosition == 1 and Lowest(L,BarsSinceEntry) <= EntryPrice-6 * TIckSize *Currentcontracts Then ExitShort("sx",AtStop,EntryPrice); 2. 매수 진입 하여 매수 가격에서 5틱 상승하는경우 1계약을 청산하도록 설정한 수식입니다. Vars : SP(0), entryVol(0), ExBlockCOND(False), blockCond(True); SP = SignalPosition; If SP <> SP[1] And SP <> 0 Then entryVol = CurrentContracts; If CurrentContracts = entryVol And (False = ExBlockCOND) And (H < EntryPrice + (5 * TickSize)) Then ExitLong("청산1", Atlimit, EntryPrice + (5 * TickSize), DEF, 1); => 예스스탁에 적용되도록 아래의 수식으로 수정한것이 시스템에 적용되지 않습니다. If (False == ExBlockCOND) And (H < EntryPrice + (5 * TickSize)) Then ExitLong("청산1", Atlimit, EntryPrice + (5 * TickSize),"", 1,1);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-04-26 11:20:27

안녕하세요 예스스탁입니다. 1 아래식 적용해 보시기 바랍니다. bx와 sx신호가 정상적으로 발생하고 있습니다. 매도청산은 포지션 지정이 잘못되어 수정했습니다. var : TIckSize(0); TIckSize = PriceScale; if crossup(c,ma(C,60)) Then buy("b"); if CrossDown(c,ma(C,60)) Then sell("s"); if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+ (6 * TIckSize)*CurrentContracts Then ExitLong("bx",AtStop,EntryPrice); if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice-(6 * TIckSize)*CurrentContracts Then ExitShort("sx",AtStop,EntryPrice); 2 아래식으로 적용해 보시기 바랍니다. var : TIckSize(0); Vars : SP(0), entryVol(0), ExBlockCOND(False), blockCond(True); TIckSize = PriceScale; SP = MarketPosition; If SP <> SP[1] And SP <> 0 Then entryVol = CurrentContracts; if crossup(c,ma(C,60)) Then buy("b"); If CurrentContracts == entryVol And (False == ExBlockCOND) And (H < EntryPrice + (5 * TickSize)) Then ExitLong("청산1", Atlimit, EntryPrice + (5 * TickSize), "",1,1); 즐거운 하루되세요 > 뎅이요 님이 쓴 글입니다. > 제목 : 수식 확인 부탁 드립니다 > 1,2번 수식 확인부탁 드립니다 1. 매수 진입명 "MA" 매수진입 하여 가격(고가) 6틱이상 상승하였다가 하락하여 매수가격에 도달하면 청산되도록 설정한 수식입니다. If IsEntryName("MA", 0) Then SetBreakEven(6 * TIckSize * cUrrentContracts); 매수진입 하여 가격(고가) 6틱이상 상승하였다가 하락하는 경우 매수진입가격에 도달하면 청산되도록 설정한 수식입니다. SetBreakEven(6 * TIckSize * cUrrentContracts); => 예스스탁에 적용되도록 아래의 수식으로 수정한것이 시스템에 적용되지 않습니다. 확인부탁 드립니다. if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+6 * TIckSize *Currentcontracts Then ExitLong("bx",AtStop,EntryPrice); if MarketPosition == 1 and Lowest(L,BarsSinceEntry) <= EntryPrice-6 * TIckSize *Currentcontracts Then ExitShort("sx",AtStop,EntryPrice); 2. 매수 진입 하여 매수 가격에서 5틱 상승하는경우 1계약을 청산하도록 설정한 수식입니다. Vars : SP(0), entryVol(0), ExBlockCOND(False), blockCond(True); SP = SignalPosition; If SP <> SP[1] And SP <> 0 Then entryVol = CurrentContracts; If CurrentContracts = entryVol And (False = ExBlockCOND) And (H < EntryPrice + (5 * TickSize)) Then ExitLong("청산1", Atlimit, EntryPrice + (5 * TickSize), DEF, 1); => 예스스탁에 적용되도록 아래의 수식으로 수정한것이 시스템에 적용되지 않습니다. If (False == ExBlockCOND) And (H < EntryPrice + (5 * TickSize)) Then ExitLong("청산1", Atlimit, EntryPrice + (5 * TickSize),"", 1,1);