커뮤니티

시스템식 부탁드립니다.

프로필 이미지
양치기
2019-07-24 17:12:39
136
글번호 130591
답변완료
항상 도움 주셔서 감사합니다. 첨부파일에 요청드리는 시스템식 작성 부탁드립니다. 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-07-24 16:54:01

안녕하세요 예스스탁입니다. 랭귀지에는 실제 주문가격을 지정하는 부분이 없습니다. 시장가등은 시스템 트레이딩 설정창의 매매가격에서 지정하셔야 합니다. 실제 잔고와 연동되지 않습니다. 차트 신호상의 포지션만 인식됩니다. 1 var : entry(0); if sdate != sdate[1] Then SetStopEndofday(055900); if bdate != bdate[1] Then { SetStopEndofday(0); entry = 0; } if MarketPosition(0) != 0 and MarketPosition(0) == MarketPosition(0)[1] Then entry = entry + 1; if MarketPosition == 0 and entry < 1 Then buy("b",AtStop,DayHigh(1)); if MarketPosition == 0 and entry < 1 Then sell("s",AtStop,DayLow(1)); if MarketPosition == 1 then ExitLong("bx",AtStop,DayLow(1)); if MarketPosition == -1 then ExitShort("sx",AtStop,DayHigh(1)); SetStopLoss(PriceScale*100,PointStop); 2 var : entry(0); if NextBarStime >= 70000 and time < 70000 Then { if MarketPosition == 1 Then ExitLong("bx1",AtMarket); if MarketPosition == -1 Then ExitShort("sx1",AtMarket); } if MarketPosition(0) != 0 and MarketPosition(0) == MarketPosition(0)[1] Then entry = entry + 1; if MarketPosition == 0 and entry < 1 Then buy("b",AtStop,DayHigh(1)); if MarketPosition == 0 and entry < 1 Then sell("s",AtStop,DayLow(1)); if MarketPosition == 1 then ExitLong("bx",AtStop,DayLow(1)); if MarketPosition == -1 then ExitShort("sx",AtStop,DayHigh(1)); SetStopLoss(PriceScale*100,PointStop); 즐거운 하루되세요 > 양치기 님이 쓴 글입니다. > 제목 : 시스템식 부탁드립니다. > 항상 도움 주셔서 감사합니다. 첨부파일에 요청드리는 시스템식 작성 부탁드립니다. 감사합니다.