예스스탁
예스스탁 답변
2022-02-21 15:57:23
안녕하세요
예스스탁입니다.
input : T3FiboLine(false),length1(8),a1(0.7);
var : e1(0),e2(0),e3(0),e4(0),e5(0),e6(0);
var : c1(0),c2(0),c3(0),c4(0),t3(0),col1(False),col3(False),color_1(0);
var : e12(0),e22(0),e32(0),e42(0),e52(0),e62(0);
var : c12(0),c22(0),c32(0),c42(0),t32(0),col12(False),col32(False),color2(0);
e1 = ema((high + low + 2 * close) / 4, length1);
e2 = ema(e1, length1);
e3 = ema(e2, length1);
e4 = ema(e3, length1);
e5 = ema(e4, length1);
e6 = ema(e5, length1);
c1 = -a1 * a1 * a1;
c2 = 3 * a1 * a1 + 3 * a1 * a1 * a1;
c3 = -6 * a1 * a1 - 3 * a1 - 3 * a1 * a1 * a1;
c4 = 1 + 3 * a1 + a1 * a1 * a1 + 3 * a1 * a1;
T3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3;
col1 = T3 > T3[1];
col3 = T3 < T3[1];
input : length12(5),a12(0.618);
e12 = ema((high + low + 2 * close) / 4, length12);
e22 = ema(e12, length12);
e32 = ema(e22, length12);
e42 = ema(e32, length12);
e52 = ema(e42, length12);
e62 = ema(e52, length12);
c12 = -a12 * a12 * a12;
c22 = 3 * a12 * a12 + 3 * a12 * a12 * a12;
c32 = -6 * a12 * a12 - 3 * a12 - 3 * a12 * a12 * a12;
c42 = 1 + 3 * a12 + a12 * a12 * a12 + 3 * a12 * a12;
T32 = c12 * e62 + c22 * e52 + c32 * e42 + c42 * e32;
col12 = T32 > T32[1];
col32 = T32 < T32[1];
Condition1 = col1 and col12;
Condition2 = col3 and col32;
if Condition1 == true and Condition1[1] == False Then
Buy();
if Condition2 == true and Condition2[1] == False Then
Sell();
즐거운 하루되세요
> 새벽에 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 안녕하세요?
아래수식을씨스템식을구합니다
매수조건 :지표식에 표현되는 2가지이평의 색상 기울기가 동일봉에서 동일색상으로
동시에 변할시만 매수 ,매도는그반대
감사합니다
input : T3FiboLine(false),length1(8),a1(0.7);
var : e1(0),e2(0),e3(0),e4(0),e5(0),e6(0);
var : c1(0),c2(0),c3(0),c4(0),t3(0),col1(False),col3(False),color_1(0);
var : e12(0),e22(0),e32(0),e42(0),e52(0),e62(0);
var : c12(0),c22(0),c32(0),c42(0),t32(0),col12(False),col32(False),color2(0);
e1 = ema((high + low + 2 * close) / 4, length1);
e2 = ema(e1, length1);
e3 = ema(e2, length1);
e4 = ema(e3, length1);
e5 = ema(e4, length1);
e6 = ema(e5, length1);
c1 = -a1 * a1 * a1;
c2 = 3 * a1 * a1 + 3 * a1 * a1 * a1;
c3 = -6 * a1 * a1 - 3 * a1 - 3 * a1 * a1 * a1;
c4 = 1 + 3 * a1 + a1 * a1 * a1 + 3 * a1 * a1;
T3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3;
col1 = T3 > T3[1];
col3 = T3 < T3[1];
color_1 = iff(col1 ,REd,IFf(col3,GREEN,yellow));
plot1(T3,"T3",color_1);
input : length12(5),a12(0.618);
e12 = ema((high + low + 2 * close) / 4, length12);
e22 = ema(e12, length12);
e32 = ema(e22, length12);
e42 = ema(e32, length12);
e52 = ema(e42, length12);
e62 = ema(e52, length12);
c12 = -a12 * a12 * a12;
c22 = 3 * a12 * a12 + 3 * a12 * a12 * a12;
c32 = -6 * a12 * a12 - 3 * a12 - 3 * a12 * a12 * a12;
c42 = 1 + 3 * a12 + a12 * a12 * a12 + 3 * a12 * a12;
T32 = c12 * e62 + c22 * e52 + c32 * e42 + c42 * e32;
col12 = T32 > T32[1];
col32 = T32 < T32[1];
color2 = iff(col12 ,RED,IFf(col32 , WHITE,yellow));
plot2(T32,"T3fibo",color2);