커뮤니티
아래 요청사항 중 수식포함 안된 것이 있습니다.
2018-07-02 16:33:12
164
글번호 120220
매수 매도 식이 포함 안되어 있습니다 추가 부탁드림디다
그림 참조하세요
매수: 과열권 평균 plot1(var1)가 상승하고 있고, 과열권 진입시 매수
매도 : 침체권의 평균 plot2(var2)가 하락하고 있고, 침체권 진입시 매도
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수식부탁드립니다.
>
안녕하세요
예스스탁입니다.
1
Input : Period(12), Period1(5), Period2(5);
var : H1(0),L1(0),H2(0),L2(0);
Value1 = StochasticsD(Period,Period1,PEriod2);
Condition1 = value1 > 80;
Condition2 = value1 < 20;
if Condition1 == true and Condition1[1] == false Then{
H1 = H;
L1 = L;
}
if Condition1 == true then
{
if h > H1 Then
H1 = h;
if l < L1 Then
L1 = l;
}
if Condition1 == false and Condition1[1] == true Then
var1 = (H1+L1)/2;
if Condition2 == true and Condition2[1] == false Then{
H2 = H;
L2 = L;
}
if Condition2 == true then
{
if h > H2 Then
H2 = h;
if l < L2 Then
L2 = l;
}
if Condition2 == false and Condition2[1] == true Then
var2 = (H2+L2)/2;
plot1(var1);
plot2(var2);
답변 1
예스스탁 예스스탁 답변
2018-07-02 16:42:28
안녕하세요
예스스탁입니다.
Input : Period(12), Period1(5), Period2(5);
var : H1(0),L1(0),H2(0),L2(0);
Value1 = StochasticsD(Period,Period1,PEriod2);
Condition1 = value1 > 80;
Condition2 = value1 < 20;
if Condition1 == true and Condition1[1] == false Then{
H1 = H;
L1 = L;
}
if Condition1 == true then
{
if h > H1 Then
H1 = h;
if l < L1 Then
L1 = l;
}
if Condition1 == false and Condition1[1] == true Then
{
var1 = (H1+L1)/2;
var11 = var1[1];
}
if Condition2 == true and Condition2[1] == false Then{
H2 = H;
L2 = L;
}
if Condition2 == true then
{
if h > H2 Then
H2 = h;
if l < L2 Then
L2 = l;
}
if Condition2 == false and Condition2[1] == true Then
{
var2 = (H2+L2)/2;
var22 = var2[1];
}
if var1 > var11 and crossup(value1,80) Then
buy();
if var2 < var22 and CrossDown(value1,20) Then
sell();
즐거운 하루되세요
> 라떼처럼 님이 쓴 글입니다.
> 제목 : 아래 요청사항 중 수식포함 안된 것이 있습니다.
> 매수 매도 식이 포함 안되어 있습니다 추가 부탁드림디다
그림 참조하세요
매수: 과열권 평균 plot1(var1)가 상승하고 있고, 과열권 진입시 매수
매도 : 침체권의 평균 plot2(var2)가 하락하고 있고, 침체권 진입시 매도
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 수식부탁드립니다.
>
안녕하세요
예스스탁입니다.
1
Input : Period(12), Period1(5), Period2(5);
var : H1(0),L1(0),H2(0),L2(0);
Value1 = StochasticsD(Period,Period1,PEriod2);
Condition1 = value1 > 80;
Condition2 = value1 < 20;
if Condition1 == true and Condition1[1] == false Then{
H1 = H;
L1 = L;
}
if Condition1 == true then
{
if h > H1 Then
H1 = h;
if l < L1 Then
L1 = l;
}
if Condition1 == false and Condition1[1] == true Then
var1 = (H1+L1)/2;
if Condition2 == true and Condition2[1] == false Then{
H2 = H;
L2 = L;
}
if Condition2 == true then
{
if h > H2 Then
H2 = h;
if l < L2 Then
L2 = l;
}
if Condition2 == false and Condition2[1] == true Then
var2 = (H2+L2)/2;
plot1(var1);
plot2(var2);