커뮤니티
수정부탁드립니다.
2011-03-23 20:42:56
624
글번호 36844
수고 많으십니다.
초보는 용감하다.
동일종목의 챠트3개에서 각기 ma(C, 5) 신호가 일치할때 진입하려합니다.
(기본챠트는 꼭지점 형성 후에 진입)
아래 수식에 에러가 나서 잘 안되는 군요
지도 부탁 드립니다.
Input : Period(5);
// 매수/매도청산
If ma(C, period)[2] > ma(c, period)[1] and
ma(c, period)[1] < ma(c, period)
(data2(ma(c, period))[1] < data2(ma(c, period))) and
(data3(ma(c, period))[1] < data3(ma(c, period)))Then
{
Buy();
}
// 매도/매수청산
If (ma(c, period)[2] < ma(c, period)[1] and
ma(c, period)[1] > ma(c, period))
data2(ma(c, period))[1] > data2(ma(c, period)) and
data3(ma(c, period))[1] > data3(ma(c, period)) Then
{
Sell();
}
답변 1
예스스탁 예스스탁 답변
2011-03-24 10:26:37
안녕하세요
예스스탁입니다.
수정한 식입니다.
()쓰기에 유의하시기 바랍니다.
Input : Period(5);
// 매수/매도청산
If data1(ma(C, period)[2] > ma(c, period)[1] and ma(c, period)[1] < ma(c, period)) and
data2(ma(c, period)[1] < ma(c, period)) and
data3(ma(c, period)[1] < ma(c, period))Then
Buy();
// 매도/매수청산
If data1(ma(c, period)[2] < ma(c, period)[1] and ma(c, period)[1] > ma(c, period)) and
data2(ma(c, period)[1] > ma(c, period)) and
data3(ma(c, period)[1] > ma(c, period)) Then
Sell();
즐거운 하루되세요
> 골드핑거 님이 쓴 글입니다.
> 제목 : 수정부탁드립니다.
> 수고 많으십니다.
초보는 용감하다.
동일종목의 챠트3개에서 각기 ma(C, 5) 신호가 일치할때 진입하려합니다.
(기본챠트는 꼭지점 형성 후에 진입)
아래 수식에 에러가 나서 잘 안되는 군요
지도 부탁 드립니다.
Input : Period(5);
// 매수/매도청산
If ma(C, period)[2] > ma(c, period)[1] and
ma(c, period)[1] < ma(c, period)
(data2(ma(c, period))[1] < data2(ma(c, period))) and
(data3(ma(c, period))[1] < data3(ma(c, period)))Then
{
Buy();
}
// 매도/매수청산
If (ma(c, period)[2] < ma(c, period)[1] and
ma(c, period)[1] > ma(c, period))
data2(ma(c, period))[1] > data2(ma(c, period)) and
data3(ma(c, period))[1] > data3(ma(c, period)) Then
{
Sell();
}
다음글
이전글