커뮤니티
시스템 신호
2017-02-16 01:49:17
122
글번호 106879
아래의 지표에 근거한 시스템신호를 만들고자 합니다.
늘 도움 주셔서 감사드리며..
라인에서 위..아래..첫번째 캔들이 돌파후 두번째 캔들에서 신호가 나오도록 부탁드립니다.
LoL=If(L==lowest(l,5),l,if(L(1)==lowest(l,5),L(1),
if(l(2)==lowest(l,5),l(2),if(l(3)==lowest(l,5),l(3),
if(l(4)==lowest(l,5),l(4),0)))));
newh=valuewhen(1,h>highest(h,5,1),h);
box1=highest(h,3)<highest(h,4);
top=valuewhen(1,barssince(h>highest(h,5,1))==3 and
box1==1,newh);
top
UND=ValueWhen(1,BarsSince(H>HIGHEST(H,5,1))==3 AND
box1==1,LoL);
UND
답변 1
예스스탁 예스스탁 답변
2017-02-16 13:26:01
안녕하세요
예스스탁입니다.
var : LoL(0),newh(0),box1(false),ii(0),top(0),UND(0);
LoL=Lowest(L,5);
if h > highest(h,5)[1] Then{
newh = h;
ii = 0;
}
ii = ii+1;
box1 = highest(h,3) < highest(h,4);
if ii == 4 and box1 == true Then
top = newh;
if ii == 4 and box1 == true Then
UND = LoL;
if C > top and crossup(C[1],Top[1]) Then
buy();
if C < UND and CrossDown(C[1],UND[1]) Then
sell();
즐거운 하루되세요
> 알리섬 님이 쓴 글입니다.
> 제목 : 시스템 신호
> 아래의 지표에 근거한 시스템신호를 만들고자 합니다.
늘 도움 주셔서 감사드리며..
라인에서 위..아래..첫번째 캔들이 돌파후 두번째 캔들에서 신호가 나오도록 부탁드립니다.
LoL=If(L==lowest(l,5),l,if(L(1)==lowest(l,5),L(1),
if(l(2)==lowest(l,5),l(2),if(l(3)==lowest(l,5),l(3),
if(l(4)==lowest(l,5),l(4),0)))));
newh=valuewhen(1,h>highest(h,5,1),h);
box1=highest(h,3)<highest(h,4);
top=valuewhen(1,barssince(h>highest(h,5,1))==3 and
box1==1,newh);
top
UND=ValueWhen(1,BarsSince(H>HIGHEST(H,5,1))==3 AND
box1==1,LoL);
UND