커뮤니티
함수변환요청(251호)
2016-01-27 18:52:23
101
글번호 94880
안녕하세요?
아래는 SK증권에서 사용했던 함수입니다.
예스랭귀지로 변화요청드립니다.
감사합니다.
-----------------------------------------------------------------------------------
input : xtime(60000);
var : tcond(false),condA(false),condB(false), sTimeValue(0);
sTimeValue = sTime;
If IntPortion(time/10000) > 7 // 7시 이후 Tconde = true
Then
Begin
Tcond = true;
Condition1 = false;
Condition2 = false;
end;
If sTimeValue == xtime or (sTimeValue > xtime and sTimeValue[1] < Xtime)
Then
Begin
Tcond = false;
End;
var1 = ma(c,9);
var2 = ma(c,18);
condA = C > var1 and var1 > var2;
condB = C < var1 and var1 < var2;
if condA == true and condA[1] == false then
Condition1 = true;
if condB == true and condB[1] == false then
Condition2 = true;
if Tcond == true And
Condition1 == true and condA == true and
var1 > var1[1] and var2 > var2[1] Then
buy("B");
if Tcond == true And
Condition2 == true and condB == true and
var1 < var1[1] and var2 < var2[1] Then
sell("S");
답변 1
예스스탁 예스스탁 답변
2016-01-28 08:41:05
안녕하세요
예스스탁입니다.
올려주신식 저희 랭귀지로 그대로 사용가능합니다.
그대로 시스템 편집창에 붙여넣으시고 검증후 사용하시면 됩니다.
즐거운 하루되세요
> 통큰베팅 님이 쓴 글입니다.
> 제목 : 함수변환요청(251호)
>
안녕하세요?
아래는 SK증권에서 사용했던 함수입니다.
예스랭귀지로 변화요청드립니다.
감사합니다.
-----------------------------------------------------------------------------------
input : xtime(60000);
var : tcond(false),condA(false),condB(false), sTimeValue(0);
sTimeValue = sTime;
If IntPortion(time/10000) > 7 // 7시 이후 Tconde = true
Then
Begin
Tcond = true;
Condition1 = false;
Condition2 = false;
end;
If sTimeValue == xtime or (sTimeValue > xtime and sTimeValue[1] < Xtime)
Then
Begin
Tcond = false;
End;
var1 = ma(c,9);
var2 = ma(c,18);
condA = C > var1 and var1 > var2;
condB = C < var1 and var1 < var2;
if condA == true and condA[1] == false then
Condition1 = true;
if condB == true and condB[1] == false then
Condition2 = true;
if Tcond == true And
Condition1 == true and condA == true and
var1 > var1[1] and var2 > var2[1] Then
buy("B");
if Tcond == true And
Condition2 == true and condB == true and
var1 < var1[1] and var2 < var2[1] Then
sell("S");
다음글
이전글