커뮤니티
문의 드립니다.
2019-10-01 18:03:05
236
글번호 132432
키움수식인데요...
예스로 변환좀 부탁드립니다.
수식2
t1=tema(c,period1);
x=valuewhen(1,crossdown(c,t1),
highestsince(1,crossup(c,t1),t1));
수식3
t1=tema(c,period1);
y=valuewhen(1,crossup(c,,t1),
lowestsince(1,crossdown(c,t1),t1));
수식4
t1=tema(c,period1);
x=valuewhen(1,crossdown(c,t1),
highestsince(1,crossup(c,t1),t1));
수식5
t1=tema(c,period1);
y=valuewhen(1,crossup(c,,t1),
lowestsince(1,crossdown(c,t1),t1));
지표조건
period1 20
period2 10
p1 5
period3 3
이수식을 지표식으로 변환 부탁드립니다..
해당지표의 신호식도 같이좀 부탁드립니다.
매번 감사드립니다.
답변 1
예스스탁 예스스탁 답변
2019-10-02 09:36:24
안녕하세요
예스스탁입니다.
1
수식2,수식3과 수식4,수식5의 내용이 같습니다.
수식4,수식5는 period2를 사용하게 작성해 드립니다.
나머지 외부변수는 사용하는 부분이 없어 제외했습니다.
input : Period1(20),Period2(10);
var : t1(0),x1(0),y1(0),h1(0),l1(0);
var : t2(0),x2(0),y2(0),h2(0),l2(0);
t1 = ema(ema(ema(c,period1),period1),period1);
t2 = ema(ema(ema(c,period2),period2),period2);
if crossup(c,t1) Then
{
y1 = l1;
h1 = t1;
}
if CrossDown(c,t1) Then
{
X1 = t1;
l1 = t1;
}
if h1 > 0 and t1 > h1 Then
h1 = t1;
if l1 > 0 and t1 < l1 Then
l1 = t1;
if crossup(c,t2) Then
{
y2 = l2;
h2 = t2;
}
if CrossDown(c,t2) Then
{
X2 = t2;
l2 = t2;
}
if h2 > 0 and t2 > h2 Then
h2 = t2;
if l2 > 0 and t2 < l2 Then
l2 = t2;
plot1(x1);
plot2(y1);
plot3(x2);
plot4(y2);
2
지표만으로는 진입청산 내용을 알수 없습니다.
진입청산 조건내용을 올려주셔야 시스템식으로 작성해 드릴수 있습니다.
즐거운 하루되세요
> 로꼬로꼬 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 키움수식인데요...
예스로 변환좀 부탁드립니다.
수식2
t1=tema(c,period1);
x=valuewhen(1,crossdown(c,t1),
highestsince(1,crossup(c,t1),t1));
수식3
t1=tema(c,period1);
y=valuewhen(1,crossup(c,,t1),
lowestsince(1,crossdown(c,t1),t1));
수식4
t1=tema(c,period1);
x=valuewhen(1,crossdown(c,t1),
highestsince(1,crossup(c,t1),t1));
수식5
t1=tema(c,period1);
y=valuewhen(1,crossup(c,,t1),
lowestsince(1,crossdown(c,t1),t1));
지표조건
period1 20
period2 10
p1 5
period3 3
이수식을 지표식으로 변환 부탁드립니다..
해당지표의 신호식도 같이좀 부탁드립니다.
매번 감사드립니다.
이전글