안녕하세요?
아래수식이 상승형을 위한식이였는데 반대로 하락형을위한 반대식을 구합니다
감사합니다
var : sindex1(0), sindex2(0), Lindex1(0), Lindex2(0);
var : bi(0),si(0);
value1 = stochasticsD(12,5,5);
Condition1 = value1 > value1[1] and value1[1] <= value1[2];
Condition2 = L > L[1] and L[1] <= L[2];
sindex1 = MRO(Condition1,15,1);
sindex2 = MRO(Condition1,15,2);
Lindex1 = MRO(Condition2,15,1);
Lindex2 = MRO(Condition2,15,2);
if value1[sindex1+1] > value1[sindex2+1] and
L[Lindex1+1] < L[Lindex2+1] and
Condition1 and
lowest(L,5) == lowest(L,15)
then
bi = Index;
if bi > 0 and Index == bi+1 Then
buy();
////
var : sindex3(0), sindex4(0), Hindex1(0), Hindex2(0);
Condition11 = value1 < value1[1] and value1[1] >= value1[2];
Condition12 = H < H[1] and H[1] >= H[2];
sindex3 = MRO(Condition11,15,1);
sindex4 = MRO(Condition11,15,2);
Hindex1 = MRO(Condition12,15,1);
Hindex2 = MRO(Condition12,15,2);
if value1[sindex3+1] < value1[sindex4+1] and
H[Hindex1+1] > H[Hindex2+1] and
Condition11 and
Highest(H,5) == Highest(H,15)
then
si = Index;
if Index == si+1 Then
sell();
답변 1
예스스탁
예스스탁 답변
2022-02-17 13:27:12
안녕하세요
예스스탁입니다.
하락형을 위한 반대식이 어떤 내용인지 알수 없습니다.
올려주신 내용에서 매도식은 매수식의 반대내용으로 작성이 되어 있습니다.
매도식 자체는 수정해 드릴부분이 없습니다.
즐거운 하루되세요
> 새벽에 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 안녕하세요?
아래수식이 상승형을 위한식이였는데 반대로 하락형을위한 반대식을 구합니다
감사합니다
var : sindex1(0), sindex2(0), Lindex1(0), Lindex2(0);
var : bi(0),si(0);
value1 = stochasticsD(12,5,5);
Condition1 = value1 > value1[1] and value1[1] <= value1[2];
Condition2 = L > L[1] and L[1] <= L[2];
sindex1 = MRO(Condition1,15,1);
sindex2 = MRO(Condition1,15,2);
Lindex1 = MRO(Condition2,15,1);
Lindex2 = MRO(Condition2,15,2);
if value1[sindex1+1] > value1[sindex2+1] and
L[Lindex1+1] < L[Lindex2+1] and
Condition1 and
lowest(L,5) == lowest(L,15)
then
bi = Index;
if bi > 0 and Index == bi+1 Then
buy();
////
var : sindex3(0), sindex4(0), Hindex1(0), Hindex2(0);
Condition11 = value1 < value1[1] and value1[1] >= value1[2];
Condition12 = H < H[1] and H[1] >= H[2];
sindex3 = MRO(Condition11,15,1);
sindex4 = MRO(Condition11,15,2);
Hindex1 = MRO(Condition12,15,1);
Hindex2 = MRO(Condition12,15,2);
if value1[sindex3+1] < value1[sindex4+1] and
H[Hindex1+1] > H[Hindex2+1] and
Condition11 and
Highest(H,5) == Highest(H,15)
then
si = Index;
if Index == si+1 Then
sell();