커뮤니티

문의드립니다

프로필 이미지
해피슈
2018-11-28 00:13:55
217
글번호 123938
답변완료
항셍 10시15분 시가 대비 1차 +100틱 매도 1계약 2차 +200틱 매도 2계약 3차 +300틱 매도 3계약 4차 +400틱 매도 4계약 5차 +500틱 매도 5계약 항셍 10시15분 시가 대비 1차 -100틱 매수 1계약 2차 -200틱 매수 2계약 3차 -300틱 매수 3계약 4차 -400틱 매수 4계약 5차 -500틱 매수 5계약 익절 1차 진입은 50틱 2차 진입까지 되면 40틱 3차 진입까지 되면 30틱 4차 진입까지 되면 20틱 5차 진입까지 되면 15틱 매수 매도 한 전략으로 이런 전략 부탁드립니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-11-28 16:29:13

안녕하세요 예스스탁입니다. 피라미딩을 모든진입신호 허용으로 설정하고 적용하시면 됩니다. var : DO(0),Ts(0); if (sdate != sdate[1] and stime >= 103000) or (sdate == sdate[1] and stime >= 103000 and stime[1] < 103000) Then DO = O; Ts = PriceScale*10; if DO > 0 then { if MarketPosition >= 0 and H < DO+Ts*1 Then Sell("s1",AtLimit,DO+Ts*1,1); if MarketPosition == -1 Then { if MaxEntries == 1 Then { ExitShort("sp1",atlimit,AvgEntryPrice-PriceScale*50); if H < DO+Ts*2 Then Sell("s2",AtLimit,DO+Ts*2,2); } if MaxEntries == 2 Then { ExitShort("sp2",atlimit,AvgEntryPrice-PriceScale*40); if H < DO+Ts*3 Then Sell("s3",AtLimit,DO+Ts*3,2); } if MaxEntries == 3 Then { ExitShort("sp3",atlimit,AvgEntryPrice-PriceScale*30); if H < DO+Ts*4 Then Sell("s4",AtLimit,DO+Ts*4,2); } if MaxEntries == 4 Then { ExitShort("sp4",atlimit,AvgEntryPrice-PriceScale*20); if H < DO+Ts*5 Then Sell("s5",AtLimit,DO+Ts*5,2); } if MaxEntries == 5 Then { ExitShort("sp5",atlimit,AvgEntryPrice-PriceScale*10); } } if MarketPosition <= 0 and L > DO-Ts*1 Then Buy("b1",AtLimit,DO-Ts*1,1); if MarketPosition == 1 Then { if MaxEntries == 1 Then { ExitLong("bp1",atlimit,AvgEntryPrice+PriceScale*50); if L > DO-Ts*2 Then Buy("b2",AtLimit,DO-Ts*2,2); } if MaxEntries == 2 Then { ExitLong("bp2",atlimit,AvgEntryPrice+PriceScale*50); if L > DO-Ts*3 Then Buy("b3",AtLimit,DO-Ts*3,3); } if MaxEntries == 3 Then { ExitLong("bp3",atlimit,AvgEntryPrice+PriceScale*50); if L > DO-Ts*4 Then Buy("b4",AtLimit,DO-Ts*4,4); } if MaxEntries == 4 Then { ExitLong("bp4",atlimit,AvgEntryPrice+PriceScale*50); if L > DO-Ts*5 Then Buy("b5",AtLimit,DO-Ts*5,5); } if MaxEntries == 5 Then { ExitLong("bp5",atlimit,AvgEntryPrice+PriceScale*50); } } } 즐거운 하루되세요 > 해피슈 님이 쓴 글입니다. > 제목 : 문의드립니다 > 항셍 10시15분 시가 대비 1차 +100틱 매도 1계약 2차 +200틱 매도 2계약 3차 +300틱 매도 3계약 4차 +400틱 매도 4계약 5차 +500틱 매도 5계약 항셍 10시15분 시가 대비 1차 -100틱 매수 1계약 2차 -200틱 매수 2계약 3차 -300틱 매수 3계약 4차 -400틱 매수 4계약 5차 -500틱 매수 5계약 익절 1차 진입은 50틱 2차 진입까지 되면 40틱 3차 진입까지 되면 30틱 4차 진입까지 되면 20틱 5차 진입까지 되면 15틱 매수 매도 한 전략으로 이런 전략 부탁드립니다