커뮤니티
수식부탁드려요
2018-12-14 13:36:44
181
글번호 124441
-
답변 3
예스스탁 예스스탁 답변
2018-12-14 11:40:01
안녕하세요
예스스탁입니다.
Input : sto1(15), sto2(5);
var : StoK(0),l1(0),l2(0),h1(0),h2(0),dncount(0),upcount(0);
var : li1(0),li2(0),hi1(0),hi2(0);
StoK = StochasticsK(sto1,sto2);
if stok <= 20 Then
upcount = 0;
if stok >= 80 Then
dncount = 0;
if CrossDown(stok,20) Then
{
dncount = dncount+1;
l1 = stok;
l2 = l1[1];
li1 = index;
li2 = li1[1];
}
if stok < 20 Then
{
if stok < l1 Then
l1 = stok;
}
if CrossUp(stok,80) Then
{
upcount = upcount +1;
h1 = stok;
h2 = h1[1];
hi1 = index;
hi2 = hi1[1];
}
if stok > 80 Then
{
if stok > h1 Then
h1 = stok;
}
if crossup(stok,20) and l1 > l2 and
dncount >= 2 and index <= li2+50 and
highest(stok,index-li2) < 60 Then
buy("b");
if CrossDown(stok,80) Then
ExitLong("bx");
if CrossDown(stok,80) and h1 < h2 and
upcount >= 2 and index <= hi2+50 and
Lowest(stok,index-hi2) > 40 Then
sell("s");
if Crossup(stok,20) Then
ExitShort("sx");
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 수식부탁드려요
> -
이형지
2018-12-14 13:36:35
추가로 부탁드려요...첨부화일을 참조바람니낟.
스토케스틱 저점을 우상향하는 반면에 실제 가격은 하락했을때로 수식부탁드려요~~~
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수식부탁드려요
>
안녕하세요
예스스탁입니다.
Input : sto1(15), sto2(5);
var : StoK(0),l1(0),l2(0),h1(0),h2(0),dncount(0),upcount(0);
var : li1(0),li2(0),hi1(0),hi2(0);
StoK = StochasticsK(sto1,sto2);
if stok <= 20 Then
upcount = 0;
if stok >= 80 Then
dncount = 0;
if CrossDown(stok,20) Then
{
dncount = dncount+1;
l1 = stok;
l2 = l1[1];
li1 = index;
li2 = li1[1];
}
if stok < 20 Then
{
if stok < l1 Then
l1 = stok;
}
if CrossUp(stok,80) Then
{
upcount = upcount +1;
h1 = stok;
h2 = h1[1];
hi1 = index;
hi2 = hi1[1];
}
if stok > 80 Then
{
if stok > h1 Then
h1 = stok;
}
if crossup(stok,20) and l1 > l2 and
dncount >= 2 and index <= li2+50 and
highest(stok,index-li2) < 60 Then
buy("b");
if CrossDown(stok,80) Then
ExitLong("bx");
if CrossDown(stok,80) and h1 < h2 and
upcount >= 2 and index <= hi2+50 and
Lowest(stok,index-hi2) > 40 Then
sell("s");
if Crossup(stok,20) Then
ExitShort("sx");
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 수식부탁드려요
> -
예스스탁 예스스탁 답변
2018-12-14 13:35:17
안녕하세요
예스스탁입니다.
Input : sto1(15), sto2(5);
var : StoK(0),dncount(0),upcount(0);
var : l1(0),l2(0),h1(0),h2(0);
var : li1(0),li2(0),hi1(0),hi2(0);
var : lc1(0),lc2(0),hc1(0),hc2(0);
StoK = StochasticsK(sto1,sto2);
if stok <= 20 Then
upcount = 0;
if stok >= 80 Then
dncount = 0;
if CrossDown(stok,20) Then
{
dncount = dncount+1;
l1 = stok;
l2 = l1[1];
li1 = index;
li2 = li1[1];
lc1 = l;
lc2 = lc1[1];
}
if stok < 20 Then
{
if stok < l1 Then
{
l1 = stok;
}
if l < lc1 Then
lc1 = l;
}
if CrossUp(stok,80) Then
{
upcount = upcount +1;
h1 = stok;
h2 = h1[1];
hi1 = index;
hi2 = hi1[1];
hc1 = h;
hc2 = hc1[1];
}
if stok > 80 Then
{
if stok > h1 Then
h1 = stok;
if h > hc1 Then
hc1 = h;
}
if crossup(stok,20) and
l1 > l2 and
dncount >= 2 and
index <= li2+50 and
highest(stok,index-li2) < 60 and
lc1 > lc2 Then
buy("b");
if CrossDown(stok,80) Then
ExitLong("bx");
if CrossDown(stok,80) and
h1 < h2 and
upcount >= 2 and
index <= hi2+50 and
Lowest(stok,index-hi2) > 40 and
hc1 < hc2 Then
sell("s");
if Crossup(stok,20) Then
ExitShort("sx");
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : Re : Re : 수식부탁드려요
> 추가로 부탁드려요...첨부화일을 참조바람니낟.
스토케스틱 저점을 우상향하는 반면에 실제 가격은 하락했을때로 수식부탁드려요~~~
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수식부탁드려요
>
안녕하세요
예스스탁입니다.
Input : sto1(15), sto2(5);
var : StoK(0),l1(0),l2(0),h1(0),h2(0),dncount(0),upcount(0);
var : li1(0),li2(0),hi1(0),hi2(0);
StoK = StochasticsK(sto1,sto2);
if stok <= 20 Then
upcount = 0;
if stok >= 80 Then
dncount = 0;
if CrossDown(stok,20) Then
{
dncount = dncount+1;
l1 = stok;
l2 = l1[1];
li1 = index;
li2 = li1[1];
}
if stok < 20 Then
{
if stok < l1 Then
l1 = stok;
}
if CrossUp(stok,80) Then
{
upcount = upcount +1;
h1 = stok;
h2 = h1[1];
hi1 = index;
hi2 = hi1[1];
}
if stok > 80 Then
{
if stok > h1 Then
h1 = stok;
}
if crossup(stok,20) and l1 > l2 and
dncount >= 2 and index <= li2+50 and
highest(stok,index-li2) < 60 Then
buy("b");
if CrossDown(stok,80) Then
ExitLong("bx");
if CrossDown(stok,80) and h1 < h2 and
upcount >= 2 and index <= hi2+50 and
Lowest(stok,index-hi2) > 40 Then
sell("s");
if Crossup(stok,20) Then
ExitShort("sx");
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 수식부탁드려요
> -
다음글