Input: P(3),hi(1.2),FR(0.236),mo(100000000000),seed(1000000), ndate(20150101);
var : V1(0);
Condition8 = stime>= 090000 and stime <= 115900 ;
Condition9 = stime>= 120000 and stime <= 151900 ;
if Bdate != Bdate[1] and bdate == ndate Then{
var1 = 0;
var2 = 0;
Condition1 = true;
}
if Bdate != Bdate[1] Then{
var3 = 0;
var4 = 0;
}
var3 = var3+v;
var4 = var4+((H+L+C)/3)*V;
value2 = var4/var3;
#s0오후매수전략
if DayClose(1)*1.2<DayHigh and DayLow*1.1<DayClose
and DayHigh-(DayHigh-DayLow)*0.65<c and Condition9==1 and Var4>mo
Then
buy("b1",AtLimit,DayHigh-(DayHigh-DayLow)*FR,floor(seed/C));
위와같은 수식으로 매수주문 넣는데 하루 매수 횟수를 제한 하고싶습니다 1회혹은 2회
답변 1
예스스탁
예스스탁 답변
2021-08-13 14:59:26
안녕하세요
예스스탁입니다.
Input : P(3),hi(1.2),FR(0.236),mo(100000000000),seed(1000000), ndate(20150101);
input : n(3);
var : V1(0),entry(0);
Condition8 = stime>= 090000 and stime <= 115900 ;
Condition9 = stime>= 120000 and stime <= 151900 ;
if Bdate != Bdate[1] and bdate == ndate Then
{
var1 = 0;
var2 = 0;
Condition1 = true;
}
if Bdate != Bdate[1] Then
{
var3 = 0;
var4 = 0;
entry = 0;
}
var3 = var3+v;
var4 = var4+((H+L+C)/3)*V;
value2 = var4/var3;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
#s0오후매수전략
if entry < n and
DayClose(1)*1.2<DayHigh and DayLow*1.1<DayClose
and DayHigh-(DayHigh-DayLow)*0.65<c and Condition9==1 and Var4>mo
Then
buy("b1",AtLimit,DayHigh-(DayHigh-DayLow)*FR,floor(seed/C));
즐거운 하루되세요
> 하얀머리 님이 쓴 글입니다.
> 제목 : 거래횟수제한
> Input: P(3),hi(1.2),FR(0.236),mo(100000000000),seed(1000000), ndate(20150101);
var : V1(0);
Condition8 = stime>= 090000 and stime <= 115900 ;
Condition9 = stime>= 120000 and stime <= 151900 ;
if Bdate != Bdate[1] and bdate == ndate Then{
var1 = 0;
var2 = 0;
Condition1 = true;
}
if Bdate != Bdate[1] Then{
var3 = 0;
var4 = 0;
}
var3 = var3+v;
var4 = var4+((H+L+C)/3)*V;
value2 = var4/var3;
#s0오후매수전략
if DayClose(1)*1.2<DayHigh and DayLow*1.1<DayClose
and DayHigh-(DayHigh-DayLow)*0.65<c and Condition9==1 and Var4>mo
Then
buy("b1",AtLimit,DayHigh-(DayHigh-DayLow)*FR,floor(seed/C));
위와같은 수식으로 매수주문 넣는데 하루 매수 횟수를 제한 하고싶습니다 1회혹은 2회