커뮤니티
수식좀 요청 드립니다.(즐거운 주말 되십시요^^)
2019-05-17 09:27:31
236
글번호 128736
* 많은 도움에 고맙 습니다.
* 60분봉 차트로 정해진 시간에 매매 방법 좀 알려 주십시요.
* 해선 한국 시간 기준 9시,12시 정각에 진입(매수,매도) 할수 있도록 수식좀 부탁 좀 드립니다.
var : ttt1(090000),ttt2(120000) ;
if stime = ttt1 and c > o then buy();
if stime = ttt1 and o < c then sell();
그리고 10분봉 차트에서 위기준 가지고
9시 10분
12시10분에도 매매 가능 하도록 부탁 좀 드립니다.
60분봉 으로 매매가 안되면 10분봉 차트 에서
60분봉 조건이 맞으면 매매 할려고 합니다.
* 좋은 주말 되십시요. 고맙습니다.
답변 1
예스스탁 예스스탁 답변
2019-05-17 13:20:34
안녕하세요
예스스탁입니다.
1
var : ttt1(090000),ttt2(120000) ;
if (sdate != sdate[1] and stime >= ttt1) or
(sdate == sdate[1] and stime >= ttt1 and stime[1] < ttt1) Then
{
if c > o then
buy();
if o < c then
sell();
}
if (sdate != sdate[1] and stime >= ttt2) or
(sdate == sdate[1] and stime >= ttt2 and stime[1] < ttt2) Then
{
if c > o then
buy();
if o < c then
sell();
}
2
input : 타주기분(60),ttt1(091000),ttt2(121000) ;
var : cnt(0),S1(0),D1(0),TM(0),TF(0);
Array : OO[10](0),CC[10](0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%타주기분;
if Bdate != Bdate[1] or (Bdate == Bdate[1] and TF < TF[1]) Then
{
OO[0] = H;
for cnt = 1 to 9
{
OO[cnt] = OO[cnt-1][1];
CC[cnt] = CC[cnt-1][1];
}
}
CC[0] = C;
if (sdate != sdate[1] and stime >= ttt1) or
(sdate == sdate[1] and stime >= ttt1 and stime[1] < ttt1) Then
{
if cc[1] > oo[1] then
buy();
if OO[1] < CC[1] then
sell();
}
if (sdate != sdate[1] and stime >= ttt2) or
(sdate == sdate[1] and stime >= ttt2 and stime[1] < ttt2) Then
{
if cc[1] > oo[1] then
buy();
if OO[1] < CC[1] then
sell();
}
}
즐거운 하루되세요
> 요타 님이 쓴 글입니다.
> 제목 : 수식좀 요청 드립니다.(즐거운 주말 되십시요^^)
> * 많은 도움에 고맙 습니다.
* 60분봉 차트로 정해진 시간에 매매 방법 좀 알려 주십시요.
* 해선 한국 시간 기준 9시,12시 정각에 진입(매수,매도) 할수 있도록 수식좀 부탁 좀 드립니다.
var : ttt1(090000),ttt2(120000) ;
if stime = ttt1 and c > o then buy();
if stime = ttt1 and o < c then sell();
그리고 10분봉 차트에서 위기준 가지고
9시 10분
12시10분에도 매매 가능 하도록 부탁 좀 드립니다.
60분봉 으로 매매가 안되면 10분봉 차트 에서
60분봉 조건이 맞으면 매매 할려고 합니다.
* 좋은 주말 되십시요. 고맙습니다.
다음글
이전글