커뮤니티
수식작성부탁드립니다
2014-08-27 17:27:17
156
글번호 78136
1. 1분봉기준 호가잔량차의 값이 주문전 이전10봉의 최고값이 120분동안의 최고값이고,
2. 1분봉기준 호가잔량차의 값이 +2000이상인 경우가 주문전 10분동안 2회이상이고,
3. 주문시 호가잔량차의 값이 -500이하이면, 매도!
Var : value(0);
value = (bids-asks);
if (Highest(value,10) == Highest(value,120) or Highest(value,10) == Highest
(value,BarsSinceEntry+1)) and
(dayindex <= 10 and countif(value >= 2000,dayindex+1) >= 2 or
dayindex > 10 and countif(value >= 2000,10) >= 2) and
value < -500
then sell();
답변 1
예스스탁 예스스탁 답변
2014-08-28 09:20:09
안녕하세요
예스스탁입니다.
Var : value(0);
var : H10(0),H120(0),cnt(0);
value = (bids-asks);
if dayindex < 10 Then{
H10 = highest(value,dayindex+1);
cnt = countif(value >= 2000,dayindex+1);
}
Else{
H10 = highest(value,10);
cnt = countif(value>=2000,10);
}
if dayindex < 120 Then
H120 = highest(value,dayindex+1);
Else
H120 = highest(value,120);
if H10 == H120 and cnt >= 2 and value <= -500 then
sell();
즐거운 하루되세요
> 세종대왕 님이 쓴 글입니다.
> 제목 : 수식작성부탁드립니다
> 1. 1분봉기준 호가잔량차의 값이 주문전 이전10봉의 최고값이 120분동안의 최고값이고,
2. 1분봉기준 호가잔량차의 값이 +2000이상인 경우가 주문전 10분동안 2회이상이고,
3. 주문시 호가잔량차의 값이 -500이하이면, 매도!
Var : value(0);
value = (bids-asks);
if (Highest(value,10) == Highest(value,120) or Highest(value,10) == Highest
(value,BarsSinceEntry+1)) and
(dayindex <= 10 and countif(value >= 2000,dayindex+1) >= 2 or
dayindex > 10 and countif(value >= 2000,10) >= 2) and
value < -500
then sell();
다음글
이전글