커뮤니티

수식 변경 요청드립니다.

프로필 이미지
고박사122
2016-10-13 12:04:47
86
글번호 102897
답변완료
감사합니다. 아래 이격도, 익절틱수 , 손절틱수 부분을 직접 지정할 수 있도록 Input 수식에 넣어주세요 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수정부탁드립니다. > 안녕하세요 예스스탁입니다. 횡보와 같은 부분은 사용자분이 조건내용을 지정해 주셔야 합니다. 아래식에는 N개봉의 20이평 최고가가 최저가 대비 X틱이상 클때만 진입하게 작성해 드렸습니다. input : 거래시간1(1), 시작시간1(150000), 끝시간1(045900); input : P1(5),P2(20),N(20),X(10); var : AA(0),BB(0),DD(0); if 거래시간1 == 1 then condition3 = (stime>=시작시간1 or stime<=끝시간1); Else if 거래시간1 == 2 then condition3 = (stime>=시작시간1 and stime<=끝시간1); Else condition3 = true; AA = ma(C,P1); BB = ma(C,P2); DD = Disparity(P2); if MarketPosition == 0 and TotalTrades == TotalTrades[1] and Condition3 == true and BB > BB[1] and C < AA and C < BB and C < O and DD <= 101 and highest(BB,N) >= Lowest(BB,N)+PriceScale*X Then buy(); SetStopProfittarget(PriceScale*60,PointStop); SetStopLoss(PriceScale*15,PointStop); if stime == 끝시간1 or (stime > 끝시간1 and stime[1] < 끝시간1) Then{ if MarketPosition == 1 Then ExitLong(); if MarketPosition == -1 Then ExitShort(); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-10-13 16:33:36

안녕하세요 예스스탁입니다. input : 거래시간1(1), 시작시간1(150000), 끝시간1(045900),익절틱수(60),손절틱수(15); input : P1(5),P2(20),N(20),X(10); var : AA(0),BB(0),DD(0); if 거래시간1 == 1 then condition3 = (stime>=시작시간1 or stime<=끝시간1); Else if 거래시간1 == 2 then condition3 = (stime>=시작시간1 and stime<=끝시간1); Else condition3 = true; AA = ma(C,P1); BB = ma(C,P2); DD = Disparity(P2); if MarketPosition == 0 and TotalTrades == TotalTrades[1] and Condition3 == true and BB > BB[1] and C < AA and C < BB and C < O and DD <= 101 and highest(BB,N) >= Lowest(BB,N)+PriceScale*X Then buy(); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); if stime == 끝시간1 or (stime > 끝시간1 and stime[1] < 끝시간1) Then{ if MarketPosition == 1 Then ExitLong(); if MarketPosition == -1 Then ExitShort(); } 즐거운 하루되세요 > 고박사122 님이 쓴 글입니다. > 제목 : 수식 변경 요청드립니다. > 감사합니다. 아래 이격도, 익절틱수 , 손절틱수 부분을 직접 지정할 수 있도록 Input 수식에 넣어주세요 > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수정부탁드립니다. > 안녕하세요 예스스탁입니다. 횡보와 같은 부분은 사용자분이 조건내용을 지정해 주셔야 합니다. 아래식에는 N개봉의 20이평 최고가가 최저가 대비 X틱이상 클때만 진입하게 작성해 드렸습니다. input : 거래시간1(1), 시작시간1(150000), 끝시간1(045900); input : P1(5),P2(20),N(20),X(10); var : AA(0),BB(0),DD(0); if 거래시간1 == 1 then condition3 = (stime>=시작시간1 or stime<=끝시간1); Else if 거래시간1 == 2 then condition3 = (stime>=시작시간1 and stime<=끝시간1); Else condition3 = true; AA = ma(C,P1); BB = ma(C,P2); DD = Disparity(P2); if MarketPosition == 0 and TotalTrades == TotalTrades[1] and Condition3 == true and BB > BB[1] and C < AA and C < BB and C < O and DD <= 101 and highest(BB,N) >= Lowest(BB,N)+PriceScale*X Then buy(); SetStopProfittarget(PriceScale*60,PointStop); SetStopLoss(PriceScale*15,PointStop); if stime == 끝시간1 or (stime > 끝시간1 and stime[1] < 끝시간1) Then{ if MarketPosition == 1 Then ExitLong(); if MarketPosition == -1 Then ExitShort(); }