커뮤니티

수식추가 요청 드립니다~

프로필 이미지
대구어린울프
2019-01-27 20:19:03
176
글번호 125627
답변완료
안녕하세요? 추운날씨에 수고하십니다. 수식추가 문의 드립니다. 아래의 수식에서 하루2번만 매매하고 끝내는 것으로 추가 및 수정 부탁드립니다. 감사합니다. ps : 혹시나 될까해서 추가질문 드립니다. 하루 몇번 거래만하고 끝내는것을 외부변수로 바꾸게 할수는 없죠? input : n1(1),n2(2), 익절틱수(10),손절틱수(10); if MarketPosition == 0 then { if (C > O and C == C[n1] and C[n1] < O[n1]) or (C > O and C == C[n2] and C[n2] < O[n2]) Then buy(); if (C < O and C == C[n1] and C[n1] > O[n1]) or (C < O and C == C[n2] and C[n2] > O[n2]) Then sell(); } SetStopProfittarget(익절틱수*PriceScale,PointStop); SetStopLoss(손절틱수*PriceScale,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-01-28 14:01:37

안녕하세요 예스스탁입니다. input : n1(1),n2(2), 익절틱수(10),손절틱수(10),당일진입횟수(3); var : T1(0),entry(0); if bdate != bdate[1] Then T1 = TotalTrades[1]; if MarketPosition == 0 Then entry = TotalTrades-t1; Else entry = TotalTrades-t1+1; if MarketPosition == 0 then { if (C > O and C == C[n1] and C[n1] < O[n1]) or (C > O and C == C[n2] and C[n2] < O[n2]) Then { if entry < 당일진입횟수 Then buy(); Else ExitShort(); } if (C < O and C == C[n1] and C[n1] > O[n1]) or (C < O and C == C[n2] and C[n2] > O[n2]) Then { if entry < 당일진입횟수 Then sell(); Else ExitLong(); } } SetStopProfittarget(익절틱수*PriceScale,PointStop); SetStopLoss(손절틱수*PriceScale,PointStop); 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 수식추가 요청 드립니다~ > 안녕하세요? 추운날씨에 수고하십니다. 수식추가 문의 드립니다. 아래의 수식에서 하루2번만 매매하고 끝내는 것으로 추가 및 수정 부탁드립니다. 감사합니다. ps : 혹시나 될까해서 추가질문 드립니다. 하루 몇번 거래만하고 끝내는것을 외부변수로 바꾸게 할수는 없죠? input : n1(1),n2(2), 익절틱수(10),손절틱수(10); if MarketPosition == 0 then { if (C > O and C == C[n1] and C[n1] < O[n1]) or (C > O and C == C[n2] and C[n2] < O[n2]) Then buy(); if (C < O and C == C[n1] and C[n1] > O[n1]) or (C < O and C == C[n2] and C[n2] > O[n2]) Then sell(); } SetStopProfittarget(익절틱수*PriceScale,PointStop); SetStopLoss(손절틱수*PriceScale,PointStop);