커뮤니티

수정 부탁드립니다.

프로필 이미지
대구어린울프
2019-08-14 11:57:32
175
글번호 131158
답변완료
안녕하세요? 아래 시스템2가지는 어제받은 답변인데요, 2가지 모두 시작하는 시간을 지정할수있게 외부변수로 빼주시면 감사하겠습니다. 부탁드립니다. 1 input : 손절틱수(15),익절틱수(15); if MarketPosition == 0 and C > O and O > C[1] and C[1] < O[1] Then buy(); if MarketPosition == 0 and C < O and O < C[1] and C[1] > O[1] Then sell(); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); 2 if C > O and O > C[1] and C[1] < O[1] Then buy(); if C < O and O < C[1] and C[1] > O[1] Then sell();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-08-16 10:21:51

안녕하세요 예스스탁입니다. 1 input : 손절틱수(15),익절틱수(15),starttime(100000); var : Tcond(false); if bdate != bdate[1] Then Tcond = false; if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; } if Tcond == true then { if MarketPosition == 0 and C > O and O > C[1] and C[1] < O[1] Then buy(); if MarketPosition == 0 and C < O and O < C[1] and C[1] > O[1] Then sell(); } SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); 2 input : 손절틱수(15),익절틱수(15),starttime(100000); var : Tcond(false); if bdate != bdate[1] Then Tcond = false; if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; } if Tcond == true then { if C > O and O > C[1] and C[1] < O[1] Then buy(); if C < O and O < C[1] and C[1] > O[1] Then sell(); } 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 수정 부탁드립니다. > 안녕하세요? 아래 시스템2가지는 어제받은 답변인데요, 2가지 모두 시작하는 시간을 지정할수있게 외부변수로 빼주시면 감사하겠습니다. 부탁드립니다. 1 input : 손절틱수(15),익절틱수(15); if MarketPosition == 0 and C > O and O > C[1] and C[1] < O[1] Then buy(); if MarketPosition == 0 and C < O and O < C[1] and C[1] > O[1] Then sell(); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopProfittarget(PriceScale*익절틱수,PointStop); 2 if C > O and O > C[1] and C[1] < O[1] Then buy(); if C < O and O < C[1] and C[1] > O[1] Then sell();