커뮤니티

문의 드려요..

프로필 이미지
머니사이언스
2014-07-28 21:59:16
148
글번호 77191
답변완료
문의번호 37308번 대답 감사 드립니다 아래식은 37308번을 매도진입을 고친건데 오류가 뜨네요.. 뭐가 문제인지 모르겠습니다..아래부분에서 오류가 납니다 부탁 드립니다 -------------------------------------------------- Inputs: Len(8), P(60), DiV(40), mult(5); vars: MP(0,data2), stopprice(0,data2), Move(0,data2); var : V3(0,data2),v2(0,data2); If data2(High - Low <> 0) then Move = data2(ema( (C - O) / (H - L) * V, len)); If data2(High > Highest( High, P )[1] and Move < Lowest( Move, P)[1]) then Sell("S2",onclose, def,1); If data2(High > Highest( High, P )[1] AND MRO(Move > Highest( Move, P)[1],20,1) == -1) then { v3 = data2(L); v2 = data2(index); } if data2(index - v2 < 2) then { if data2(CrossDown(C, v3) and C < OpenD(0)) then sell("S1"); } mp = marketposition; if MP == -1 and MP[1] <> -1 then Begin StopPrice = data2(High + ma(range,4)*mult); end; If MP == -1 then data2(H >= stopprice) then begin exitshort ("Exitshort"); stopprice = stopprice - (stopprice-high)/Div; end; setstopendofday(144000);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-07-29 15:32:36

안녕하세요 예스스탁입니다. If MP == -1 then data2(H >= stopprice) then begin if문 중간에 and대신에 then이 들어가 었었습니다. Inputs: Len(8), P(60), DiV(40), mult(5); vars: MP(0,data2), stopprice(0,data2), Move(0,data2); var : V3(0,data2),v2(0,data2); If data2(High - Low <> 0) then Move = data2(ema( (C - O) / (H - L) * V, len)); If data2(High > Highest( High, P )[1] and Move < Lowest( Move, P)[1]) then Sell("S2",onclose, def,1); If data2(High > Highest( High, P )[1] AND MRO(Move > Highest( Move, P)[1],20,1) == -1) then { v3 = data2(L); v2 = data2(index); } if data2(index - v2 < 2) then { if data2(CrossDown(C, v3) and C < OpenD(0)) then sell("S1"); } mp = marketposition; if MP == -1 and MP[1] <> -1 then Begin StopPrice = data2(High + ma(range,4)*mult); end; If MP == -1 and data2(H >= stopprice) then begin exitshort ("Exitshort"); stopprice = stopprice - (stopprice-high)/Div; end; setstopendofday(144000); 즐거운 하루되세요 > 머니사이언스 님이 쓴 글입니다. > 제목 : 문의 드려요.. > 문의번호 37308번 대답 감사 드립니다 아래식은 37308번을 매도진입을 고친건데 오류가 뜨네요.. 뭐가 문제인지 모르겠습니다..아래부분에서 오류가 납니다 부탁 드립니다 -------------------------------------------------- Inputs: Len(8), P(60), DiV(40), mult(5); vars: MP(0,data2), stopprice(0,data2), Move(0,data2); var : V3(0,data2),v2(0,data2); If data2(High - Low <> 0) then Move = data2(ema( (C - O) / (H - L) * V, len)); If data2(High > Highest( High, P )[1] and Move < Lowest( Move, P)[1]) then Sell("S2",onclose, def,1); If data2(High > Highest( High, P )[1] AND MRO(Move > Highest( Move, P)[1],20,1) == -1) then { v3 = data2(L); v2 = data2(index); } if data2(index - v2 < 2) then { if data2(CrossDown(C, v3) and C < OpenD(0)) then sell("S1"); } mp = marketposition; if MP == -1 and MP[1] <> -1 then Begin StopPrice = data2(High + ma(range,4)*mult); end; If MP == -1 then data2(H >= stopprice) then begin exitshort ("Exitshort"); stopprice = stopprice - (stopprice-high)/Div; end; setstopendofday(144000);