커뮤니티
문의 hpi
2010-09-01 17:29:03
627
글번호 32034
input : Mult(100),Factor(1),Length(10);
var : HPIval(0),CountL(5),CountS(5);
HPIval = HPI(Mult,Factor);
Condition1 = C > Highest(H,Length)[1];
Condition2 = HPIval > Highest(Hpival,Length)[1] and HPIval > 0;
Condition3 = Close < Lowest(L,length)[1];
Condition4 = HPIval < Lowest(HPIval,length)[1] and HPIval < 0;
CountL = CountL+1;
CountS = CountS+1;
if Condition1 and Condition2 and CountL > 5 Then
CountL = 1;
if Condition3 and Condition4 and countS > 5 Then
countS = 1;
if CountL <= 5 Then
buy("매수",atstop,H[countL]+1);
if CountS <= 5 Then
Sell("매도",atstop,L[countL]-1);
exitlong("Tr매수청산",atstop,lowest(L,4));
ExitShort("Tr매도청산",atstop,Highest(H,4));
if HPIval < 0 Then
ExitLong("매수청산");
if HPIval > 0 Then
ExitShort("매도청산");
***************
시스메틱과 인베스트라에 나온것인데요
그대로 복사해서 검증하는데 hpi가 선언되지 않은 이름이라고 나오네요
수정부탁해요
답변 1
예스스탁 예스스탁 답변
2010-09-02 10:53:37
안녕하세요
예스스탁입니다.
사용자함수를 추가하셔야 합니다.
게시판 내용을 제목+내용으로 하시고 HPI로 검색하시면
12912번 답글에 사용자함수가 있습니다.
C:₩예스트레이더31₩YesLang₩Functions
에 다운받으신 후 사용하시면 됩니다.
즐거운 하루되세요
> data 님이 쓴 글입니다.
> 제목 : 문의 hpi
>
input : Mult(100),Factor(1),Length(10);
var : HPIval(0),CountL(5),CountS(5);
HPIval = HPI(Mult,Factor);
Condition1 = C > Highest(H,Length)[1];
Condition2 = HPIval > Highest(Hpival,Length)[1] and HPIval > 0;
Condition3 = Close < Lowest(L,length)[1];
Condition4 = HPIval < Lowest(HPIval,length)[1] and HPIval < 0;
CountL = CountL+1;
CountS = CountS+1;
if Condition1 and Condition2 and CountL > 5 Then
CountL = 1;
if Condition3 and Condition4 and countS > 5 Then
countS = 1;
if CountL <= 5 Then
buy("매수",atstop,H[countL]+1);
if CountS <= 5 Then
Sell("매도",atstop,L[countL]-1);
exitlong("Tr매수청산",atstop,lowest(L,4));
ExitShort("Tr매도청산",atstop,Highest(H,4));
if HPIval < 0 Then
ExitLong("매수청산");
if HPIval > 0 Then
ExitShort("매도청산");
***************
시스메틱과 인베스트라에 나온것인데요
그대로 복사해서 검증하는데 hpi가 선언되지 않은 이름이라고 나오네요
수정부탁해요
다음글