커뮤니티

변환 부탁드립니다.

프로필 이미지
예시스
2016-08-03 12:52:59
107
글번호 100665
답변완료
아래는 EL식으로 Barstatus가 선언되지 않은 이름으로 나오는데 예스로 변환 부탁드립니다. inputs: CalcSeconds(NumericSimple); vars: LastTick(0), NextCalcTime(0), NextCalc(CalcSeconds*0.000011574); if CalcSeconds <= 0 then begin _TickSeconds = 2; // trigger each tick if CalcSeconds <= 0 end else if barstatus(1) <= 1 then begin if Time >= NextCalcTime then begin // timed trigger beginning of or intrabar NextCalcTime = Time + NextCalc ; _TickSeconds = 1; end else _TickSeconds = 0;
사용자 함수
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-08-03 13:48:45

안녕하세요 예스스탁입니다. 문의하신 내용 가능하지 않습니다. 아래는 EL의 barstatus에 대한 도움말 내용입니다. This reserved word will return one of four possible values: 2 = the closing tick of a bar 1 = a tick within a bar 0 = the opening tick of a bar (relevant only for strategies using Open Next Bar order actions) -1 = an error occurred while e xecuting the reserved word barstatus가 봉의 시세가 봉의 종가인지 시가인지 중간시세인제 나타내는데 예스랭귀지에는 해당 내용을 리턴해 주는 함수가 없고 수식으로 표현이 되지 않습니다. 도움을 드리지 못해 죄송합니다. 즐거운 하루되세요 > 예시스 님이 쓴 글입니다. > 제목 : 변환 부탁드립니다. > 아래는 EL식으로 Barstatus가 선언되지 않은 이름으로 나오는데 예스로 변환 부탁드립니다. inputs: CalcSeconds(NumericSimple); vars: LastTick(0), NextCalcTime(0), NextCalc(CalcSeconds*0.000011574); if CalcSeconds <= 0 then begin _TickSeconds = 2; // trigger each tick if CalcSeconds <= 0 end else if barstatus(1) <= 1 then begin if Time >= NextCalcTime then begin // timed trigger beginning of or intrabar NextCalcTime = Time + NextCalc ; _TickSeconds = 1; end else _TickSeconds = 0;