커뮤니티

stoploss 관련

프로필 이미지
freeman
2016-06-07 10:56:27
100
글번호 98760
답변완료
수고 많으십니다.^^* stoploss를 쓰지 않고 entryprice를 쓰고 싶은데 안되네요. // 10분봉 atm 연결콜옵션, 당일청산 var:f0(False),f1(False); //스탑로스 SetStopLoss(30); f0=dayindex==0 ; if f0 then sell(); 위식을 setstoploss(30)을 없에고 다음처럼 작성하면 전혀다른결과가 나옵니다.ㅠㅠ // 10분봉 atm 연결콜옵션, 당일청산 var:f0(False),f1(False); f0=dayindex==0 ; f1= c>=EntryPrice*1.3 ;//손절30% if f0 then sell(); if f1 then exitshort(); 뭐가 잘못되었나요?
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-06-08 10:29:42

안녕하세요 예스스탁입니다. if조건 문으로 작성하면 봉완성시 종가기준으로 체크를 합니다. 종가기준으로 체크를 하면 작성하신 식이 맞습니다. exitshort함수를 이용하고 봉미완성시에 신호를 내기 위해서는 atstop신호타입과 함께 아래와 같이 작성하셔야 합니다. var:f0(False); f0=dayindex==0 ; if MarketPosition >= 0 and f0 then sell(); if MarketPosition == -1 then exitshort("xl",AtStop,EntryPrice*1.30); 즐거운 하루되세요 > freeman 님이 쓴 글입니다. > 제목 : stoploss 관련 > 수고 많으십니다.^^* stoploss를 쓰지 않고 entryprice를 쓰고 싶은데 안되네요. // 10분봉 atm 연결콜옵션, 당일청산 var:f0(False),f1(False); //스탑로스 SetStopLoss(30); f0=dayindex==0 ; if f0 then sell(); 위식을 setstoploss(30)을 없에고 다음처럼 작성하면 전혀다른결과가 나옵니다.ㅠㅠ // 10분봉 atm 연결콜옵션, 당일청산 var:f0(False),f1(False); f0=dayindex==0 ; f1= c>=EntryPrice*1.3 ;//손절30% if f0 then sell(); if f1 then exitshort(); 뭐가 잘못되었나요?