// 항셍 방향타 매매
var : i(0), j(0); // 임시변수
var : intMx(22035), intDt(100); //
var : intOneTick(1);
array : int35L[200](0); // 35선을 저장하는 배열
array : intUp[10](0), intDown[10](0.0);
for i = 0 to 180 {
int35L[i] = intMx - i * intDt;
}
For j = 0 to 180 {
// 상승방향타
Condition10 = (L == int35L[j]);
condition12 = (O - C) < 0; // 양봉
condition13 = (O - L) >= 2 * intOnetick;
condition14 = (O - C) >= 0; // 음봉
condition15 = (C - L) >= 2 * intOnetick;
// 하락방향타
Condition20 = (H == int35L[j]);
condition22 = (O - C) < 0; // 양봉
condition23 = (H - C) >= 2 * intOnetick;
condition24 = (O - C) >= 0; // 음봉
condition25 = (H - O) >= 2 * intOnetick;
// MessageLog("j: %.0f int8535L[%.0f]: %.2f ",j,j, int8535L[j]);
if condition10 Then
{
if (condition12 and condition13) or (condition14 and condition15) Then
{
Plot1(int35L[j], "Down-rudder",Magenta,1,2);
}
}
if condition20 Then
{
if (condition22 and condition23) or (condition24 and Condition25) Then
{
Plot3(int35L[j], "Up-rudder",Blue,1,2);
}
}
}
답변 1
예스스탁
예스스탁 답변
2023-08-09 09:30:05
안녕하세요
예스스탁입니다.
저희는 타사 언어로는 작성해 드리지 않습니다.
해당문의는 키움쪽에 문의하시기 바랍니다.
즐거운 하루되세요
> 쫑혀니 님이 쓴 글입니다.
> 제목 : 이 수식을 키움 수식으로도 변경해주실수 있나요?
>
// 항셍 방향타 매매
var : i(0), j(0); // 임시변수
var : intMx(22035), intDt(100); //
var : intOneTick(1);
array : int35L[200](0); // 35선을 저장하는 배열
array : intUp[10](0), intDown[10](0.0);
for i = 0 to 180 {
int35L[i] = intMx - i * intDt;
}
For j = 0 to 180 {
// 상승방향타
Condition10 = (L == int35L[j]);
condition12 = (O - C) < 0; // 양봉
condition13 = (O - L) >= 2 * intOnetick;
condition14 = (O - C) >= 0; // 음봉
condition15 = (C - L) >= 2 * intOnetick;
// 하락방향타
Condition20 = (H == int35L[j]);
condition22 = (O - C) < 0; // 양봉
condition23 = (H - C) >= 2 * intOnetick;
condition24 = (O - C) >= 0; // 음봉
condition25 = (H - O) >= 2 * intOnetick;
// MessageLog("j: %.0f int8535L[%.0f]: %.2f ",j,j, int8535L[j]);
if condition10 Then
{
if (condition12 and condition13) or (condition14 and condition15) Then
{
Plot1(int35L[j], "Down-rudder",Magenta,1,2);
}
}
if condition20 Then
{
if (condition22 and condition23) or (condition24 and Condition25) Then
{
Plot3(int35L[j], "Up-rudder",Blue,1,2);
}
}
}