안녕하세요. 아래의 수식에서 수식추가를 부탁드립니다.
2가지 시스템으로 해주시면 감사하겠습니다.
[1] 하루 매매횟수(외부변수)
[2] 하루 매매횟수(외부변수)
이평선 2개 추가 (외부변수), 이평선을 이용하여 정배열에서 매도, 역배열에서 매수
감사합니다.
input : N(1);
var : t1(0),t2(0),t3(0),diff(0);
diff = abs(C-O);
if C > O Then
T1 = 1;
else if C < O Then
T1 = -1;
Else
T1 = 0;
if T1 != T1[1] Then
{
T2 = T1[1];
T3 = T2[1];
}
if MarketPosition == 0 and
T1 == 1 and
T2 == 0 and
T3 == -1 and
T1[N+1] == -1 and
countif(T1 == 0,N)[1] == N and
diff > diff[N+1] Then
buy();
if MarketPosition == 0 and
T1 == -1 and
T2 == 0 and
T3 == 1 and
T1[N+1] == 1 and
countif(T1 == 0,N)[1] == N and
diff > diff[N+1] Then
sell();
input : 익절틱수(50),손절틱수(50);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
답변 1
예스스탁
예스스탁 답변
2020-06-11 11:39:34
안녕하세요
예스스탁입니다.
input : N(1),진입횟수(3),p1(5),p2(20);
var : t1(0),t2(0),t3(0),diff(0),entry(0);
var1 = ma(C,p1);
var2 = ma(c,p2);
if bdate != bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
( MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
diff = abs(C-O);
if C > O Then
T1 = 1;
else if C < O Then
T1 = -1;
Else
T1 = 0;
if T1 != T1[1] Then
{
T2 = T1[1];
T3 = T2[1];
}
if MarketPosition == 0 and
entry < 진입횟수 and
var1 < var2 and
T1 == 1 and
T2 == 0 and
T3 == -1 and
T1[N+1] == -1 and
countif(T1 == 0,N)[1] == N and
diff > diff[N+1] Then
buy();
if MarketPosition == 0 and
entry < 진입횟수 and
var1 > var2 and
T1 == -1 and
T2 == 0 and
T3 == 1 and
T1[N+1] == 1 and
countif(T1 == 0,N)[1] == N and
diff > diff[N+1] Then
sell();
input : 익절틱수(50),손절틱수(50);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 대구어린울프 님이 쓴 글입니다.
> 제목 : 수식추가 부탁드립니다.
> 안녕하세요. 아래의 수식에서 수식추가를 부탁드립니다.
2가지 시스템으로 해주시면 감사하겠습니다.
[1] 하루 매매횟수(외부변수)
[2] 하루 매매횟수(외부변수)
이평선 2개 추가 (외부변수), 이평선을 이용하여 정배열에서 매도, 역배열에서 매수
감사합니다.
input : N(1);
var : t1(0),t2(0),t3(0),diff(0);
diff = abs(C-O);
if C > O Then
T1 = 1;
else if C < O Then
T1 = -1;
Else
T1 = 0;
if T1 != T1[1] Then
{
T2 = T1[1];
T3 = T2[1];
}
if MarketPosition == 0 and
T1 == 1 and
T2 == 0 and
T3 == -1 and
T1[N+1] == -1 and
countif(T1 == 0,N)[1] == N and
diff > diff[N+1] Then
buy();
if MarketPosition == 0 and
T1 == -1 and
T2 == 0 and
T3 == 1 and
T1[N+1] == 1 and
countif(T1 == 0,N)[1] == N and
diff > diff[N+1] Then
sell();
input : 익절틱수(50),손절틱수(50);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);